frostfs-api-go/pkg/accounting/test/decimal.go
Leonard Lyubich e0ac55c526 [#293] pkg/accounting: Implement and use generator of Decimal
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-08 18:59:15 +03:00

14 lines
250 B
Go

package accountingtest
import (
"github.com/nspcc-dev/neofs-api-go/pkg/accounting"
)
// Generate returns random accounting.Decimal.
func Generate() *accounting.Decimal {
d := accounting.NewDecimal()
d.SetValue(1)
d.SetPrecision(2)
return d
}