Documentation
¶
Index ¶
- type AsyncResult
- type MockFunc
- func (w *MockFunc) CalledTimes() int
- func (w *MockFunc) ExpectCalled(msgAndArgs ...interface{})
- func (w *MockFunc) ExpectCalledTimes(called int, msgAndArgs ...interface{})
- func (w *MockFunc) ExpectCalledWith(args ...interface{})
- func (w *MockFunc) Fn() func(...interface{})
- func (w *MockFunc) Reset()
- func (w *MockFunc) WithTimeout(timeout time.Duration) *MockFunc
- type TestingSuite
- type WrapOption
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 (*MockFunc) CalledTimes ¶
func (*MockFunc) ExpectCalled ¶
func (w *MockFunc) ExpectCalled(msgAndArgs ...interface{})
func (*MockFunc) ExpectCalledTimes ¶
func (*MockFunc) ExpectCalledWith ¶
func (w *MockFunc) ExpectCalledWith(args ...interface{})
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
Click to show internal directories.
Click to hide internal directories.