sdktest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	Binary []byte          `json:"binary,omitempty"`
	JSON   json.RawMessage `json:"json,omitempty"`
}

func NewAcntTest

func NewAcntTest(account protocol.Account) *TestCase

func NewTxnTest

func NewTxnTest(env *messaging.Envelope) *TestCase

type TestCaseGroup

type TestCaseGroup struct {
	Name  string      `json:"name,omitempty"`
	Cases []*TestCase `json:"cases,omitempty"`
}

type TestSuite

type TestSuite struct {
	Transactions []*TestCaseGroup `json:"transactions,omitempty"`
	Accounts     []*TestCaseGroup `json:"accounts,omitempty"`
}

func Load

func Load(file string) (*TestSuite, error)

func (*TestSuite) Store

func (ts *TestSuite) Store(file string) error

Jump to

Keyboard shortcuts

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