testutil

package
v0.20.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Do(app *app.NibiruApp, ctx sdk.Context) (sdk.Context, error)
}

type TestCase

type TestCase struct {
	Name string
	// contains filtered or unexported fields
}

func TC

func TC(name string) TestCase

TC creates a new test case

func (TestCase) Given

func (t TestCase) Given(action ...Action) TestCase

func (TestCase) Then

func (t TestCase) Then(action ...Action) TestCase

func (TestCase) When

func (t TestCase) When(action ...Action) TestCase

type TestCases

type TestCases []TestCase

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

func NewTestSuite

func NewTestSuite(t *testing.T) *TestSuite

func (*TestSuite) Run

func (t *TestSuite) Run()

func (*TestSuite) WithTestCases

func (t *TestSuite) WithTestCases(testCase ...TestCase) *TestSuite

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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