Documentation ¶
Index ¶
- func MustCompareAccountInfo(t testKiller, a1, a2 *db.AccountInfo)
- func MustCompareAssetBalances(t testKiller, host string, b1, b2 *asset.Balance)
- func MustCompareBalances(t testKiller, b1, b2 *db.Balance)
- func MustCompareMatchAuth(t testKiller, a1, a2 *db.MatchAuth)
- func MustCompareMatchMetaData(t testKiller, m1, m2 *db.MatchMetaData)
- func MustCompareMatchProof(t testKiller, m1, m2 *db.MatchProof)
- func MustCompareNotifications(t testKiller, n1, n2 *db.Notification)
- func MustCompareOrderProof(t testKiller, p1, p2 *db.OrderProof)
- func MustCompareWallets(t testKiller, w1, w2 *db.Wallet)
- func RandomAccountInfo() *db.AccountInfo
- func RandomBalance() *asset.Balance
- func RandomMatchProof(sparsity float64) *db.MatchProof
- func RandomNotification(maxTime uint64) *db.Notification
- func RandomPrimaryCredentials() *db.PrimaryCredentials
- func RandomWallet() *db.Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCompareAccountInfo ¶
func MustCompareAccountInfo(t testKiller, a1, a2 *db.AccountInfo)
MustCompareAccountInfo ensures the two AccountInfo are identical, calling the Fatalf method of the testKiller if not.
func MustCompareAssetBalances ¶
MustCompareAssetBalances ensures the two asset.Balances are identical, calling the Fatalf method of the testKiller if not.
func MustCompareBalances ¶
MustCompareBalances ensures the two BalanceSet are identical, calling the Fatalf method of the testKiller if not.
func MustCompareMatchAuth ¶
MustCompareMatchAuth ensures the two MatchAuth are identical, calling the Fatalf method of the testKiller if not.
func MustCompareMatchMetaData ¶
func MustCompareMatchMetaData(t testKiller, m1, m2 *db.MatchMetaData)
MustCompareMatchMetaData ensure the two MatchMetaData are identical, calling the Fatalf method of the testKiller if not.
func MustCompareMatchProof ¶
func MustCompareMatchProof(t testKiller, m1, m2 *db.MatchProof)
MustCompareMatchProof ensures the two MatchProof are identical, calling the Fatalf method of the testKiller if not.
func MustCompareNotifications ¶
func MustCompareNotifications(t testKiller, n1, n2 *db.Notification)
func MustCompareOrderProof ¶
func MustCompareOrderProof(t testKiller, p1, p2 *db.OrderProof)
MustCompareOrderProof ensures the two OrderProof are identical, calling the Fatalf method of the testKiller if not.
func MustCompareWallets ¶
MustCompareWallets ensures the two Wallet are identical, calling the Fatalf method of the testKiller if not.
func RandomAccountInfo ¶
func RandomAccountInfo() *db.AccountInfo
RandomAccountInfo creates an AccountInfo with random values.
func RandomMatchProof ¶
func RandomMatchProof(sparsity float64) *db.MatchProof
RandomMatchProof creates a match proof with random values. Set the sparsity to change how many fields are populated, with some variation around the ratio supplied. 0 < sparsity < 1.
func RandomNotification ¶
func RandomNotification(maxTime uint64) *db.Notification
func RandomPrimaryCredentials ¶ added in v0.4.0
func RandomPrimaryCredentials() *db.PrimaryCredentials
Types ¶
This section is empty.