Documentation ¶
Index ¶
- Variables
- func AddFeeCredit(t *testing.T, amount uint64, systemID types.SystemID, ...)
- func CreateMoneyPartition(t *testing.T, genesisConfig *testutil.MoneyGenesisConfig, nodeCount uint8) *testpartition.NodePartition
- func CreateNewTestWallet(t *testing.T) string
- func CreateNewTokenWallet(t *testing.T, addr string) (*tokenswallet.Wallet, string)
- func CreateNewWallet(t *testing.T) (account.Manager, string)
- func CreateTokensPartition(t *testing.T) *testpartition.NodePartition
- func SetupTestHomeDir(t *testing.T, dir string) string
- func SpendInitialBillWithFeeCredits(t *testing.T, abNet *testpartition.AlphabillNetwork, initialBillValue uint64, ...) uint64
- func StartAlphabill(t *testing.T, partitions []*testpartition.NodePartition) *testpartition.AlphabillNetwork
- func StartMoneyBackend(t *testing.T, moneyPart *testpartition.NodePartition, ...) (string, *moneyclient.MoneyBackendClient)
- func StartPartitionRPCServers(t *testing.T, partition *testpartition.NodePartition)
- func StartTokensBackend(t *testing.T, nodeAddr string) (srvUri string, restApi *tokenclient.TokenBackend)
- func VerifyStdout(t *testing.T, consoleWriter *TestConsoleWriter, expectedLines ...string)
- func VerifyStdoutEventually(t *testing.T, exec func() *TestConsoleWriter, expectedLines ...string)
- func VerifyStdoutEventuallyWithTimeout(t *testing.T, exec func() *TestConsoleWriter, waitFor time.Duration, ...)
- func VerifyStdoutNotExists(t *testing.T, consoleWriter *TestConsoleWriter, expectedLines ...string)
- type TestConsoleWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultInitialBillID = money.NewBillID(nil, []byte{1}) FCRID = money.NewFeeCreditRecordID(nil, []byte{1}) )
Functions ¶
func AddFeeCredit ¶
func AddFeeCredit(t *testing.T, amount uint64, systemID types.SystemID, accountKey *account.AccountKey, unitID, unitBacklink []byte, fcrID, fcrBacklink []byte, node *testpartition.NodePartition)
func CreateMoneyPartition ¶
func CreateMoneyPartition(t *testing.T, genesisConfig *testutil.MoneyGenesisConfig, nodeCount uint8) *testpartition.NodePartition
func CreateNewTestWallet ¶
func CreateNewTokenWallet ¶
func CreateTokensPartition ¶
func CreateTokensPartition(t *testing.T) *testpartition.NodePartition
func SpendInitialBillWithFeeCredits ¶
func SpendInitialBillWithFeeCredits(t *testing.T, abNet *testpartition.AlphabillNetwork, initialBillValue uint64, pk []byte) uint64
func StartAlphabill ¶
func StartAlphabill(t *testing.T, partitions []*testpartition.NodePartition) *testpartition.AlphabillNetwork
func StartMoneyBackend ¶
func StartMoneyBackend(t *testing.T, moneyPart *testpartition.NodePartition, genesisConfig *testutil.MoneyGenesisConfig) (string, *moneyclient.MoneyBackendClient)
func StartPartitionRPCServers ¶
func StartPartitionRPCServers(t *testing.T, partition *testpartition.NodePartition)
func StartTokensBackend ¶
func StartTokensBackend(t *testing.T, nodeAddr string) (srvUri string, restApi *tokenclient.TokenBackend)
func VerifyStdout ¶
func VerifyStdout(t *testing.T, consoleWriter *TestConsoleWriter, expectedLines ...string)
func VerifyStdoutEventually ¶
func VerifyStdoutEventually(t *testing.T, exec func() *TestConsoleWriter, expectedLines ...string)
func VerifyStdoutNotExists ¶
func VerifyStdoutNotExists(t *testing.T, consoleWriter *TestConsoleWriter, expectedLines ...string)
Types ¶
type TestConsoleWriter ¶
type TestConsoleWriter struct {
Lines []string
}
func (*TestConsoleWriter) Print ¶
func (w *TestConsoleWriter) Print(a ...any)
func (*TestConsoleWriter) Println ¶
func (w *TestConsoleWriter) Println(a ...any)
func (*TestConsoleWriter) String ¶
func (w *TestConsoleWriter) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.