forked from TrueCloudLab/frostfs-api-go
e0ac55c526
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
14 lines
250 B
Go
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
|
|
}
|