test

package
v0.0.0-...-a23f37e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncResult

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

func AsyncRun

func AsyncRun(fn interface{}, options ...WrapOption) *AsyncResult

func (*AsyncResult) Finished

func (w *AsyncResult) Finished() bool

func (*AsyncResult) Out

func (w *AsyncResult) Out(i int) interface{}

type MockFunc

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

func NewMockFunc

func NewMockFunc(t *testing.T) *MockFunc

func (*MockFunc) CalledTimes

func (w *MockFunc) CalledTimes() int

func (*MockFunc) ExpectCalled

func (w *MockFunc) ExpectCalled(msgAndArgs ...interface{})

func (*MockFunc) ExpectCalledTimes

func (w *MockFunc) ExpectCalledTimes(called int, msgAndArgs ...interface{})

func (*MockFunc) ExpectCalledWith

func (w *MockFunc) ExpectCalledWith(args ...interface{})

func (*MockFunc) Fn

func (w *MockFunc) Fn() func(...interface{})

func (*MockFunc) Reset

func (w *MockFunc) Reset()

func (*MockFunc) WithTimeout

func (w *MockFunc) WithTimeout(timeout time.Duration) *MockFunc

type TestingSuite

type TestingSuite struct {
	*require.Assertions
	// contains filtered or unexported fields
}

func (*TestingSuite) Assert

func (s *TestingSuite) Assert() *assert.Assertions

func (*TestingSuite) Fn

func (s *TestingSuite) Fn() *MockFunc

func (*TestingSuite) Require

func (s *TestingSuite) Require() *require.Assertions

func (*TestingSuite) SetS

func (s *TestingSuite) SetS(suite suite.TestingSuite)

func (*TestingSuite) SetT

func (s *TestingSuite) SetT(t *testing.T)

func (*TestingSuite) T

func (s *TestingSuite) T() *testing.T

type WrapOption

type WrapOption func(*AsyncResult)

func WithWaitTimeout

func WithWaitTimeout(d time.Duration) WrapOption

Jump to

Keyboard shortcuts

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