Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 Changes in this version + const DefaultT2Timeout + const TestMnemonic + const TestPubKey0Hex + const TestPubKey1Hex + func InitRpcServer(node *partition.Node, nodeName string, cfg *abrpc.ServerConfiguration, ...) (*http.Server, error) + func SetupNetwork(t *testing.T, genesisConfig *testutil.MoneyGenesisConfig, ...) (string, *testpartition.AlphabillNetwork) + func StartPartitionGRPCServers(t *testing.T, partition *testpartition.NodePartition) + func StartRpcServer(t *testing.T, node *partition.Node, nodeName string, ...) string + func StartRpcServers(t *testing.T, partition *testpartition.NodePartition) + func TestPubKey0Hash(t *testing.T) []byte + func TestPubKey1Hash(t *testing.T) []byte + type Option func(*Options) + func WithDefaultMnemonic() Option + func WithNumberOfAccounts(numberOfAccounts int) Option + type Options struct v0.3.0 Feb 28, 2024 Changes in this version + var DefaultInitialBillID = money.NewBillID(nil, []byte{ ... }) + var FCRID = money.NewFeeCreditRecordID(nil, []byte{ ... }) + 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 struct + Lines []string + func (w *TestConsoleWriter) Print(a ...any) + func (w *TestConsoleWriter) Println(a ...any) + func (w *TestConsoleWriter) String() string