dbtest

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: BlueOak-1.0.0 Imports: 8 Imported by: 0

Documentation

Index

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

func MustCompareAssetBalances(t testKiller, host string, b1, b2 *asset.Balance)

MustCompareAssetBalances ensures the two asset.Balances are identical, calling the Fatalf method of the testKiller if not.

func MustCompareBalances

func MustCompareBalances(t testKiller, b1, b2 *db.Balance)

MustCompareBalances ensures the two BalanceSet are identical, calling the Fatalf method of the testKiller if not.

func MustCompareMatchAuth

func MustCompareMatchAuth(t testKiller, a1, a2 *db.MatchAuth)

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 MustComparePrimaryCredentials added in v0.4.0

func MustComparePrimaryCredentials(t testKiller, c1, c2 *db.PrimaryCredentials)

func MustCompareWallets

func MustCompareWallets(t testKiller, w1, w2 *db.Wallet)

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 RandomBalance

func RandomBalance() *asset.Balance

RandomBalance creates a random balance.

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

func RandomWallet

func RandomWallet() *db.Wallet

RandomWallet creates a random wallet.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL