Documentation ¶
Overview ¶
Package mock_testctx is a generated GoMock package.
Index ¶
- type MockContext
- func (m *MockContext) EXPECT() *MockContextMockRecorder
- func (m *MockContext) Ensure() interface{}
- func (m *MockContext) GoMockController() *gomock.Controller
- func (*MockContext) NEW(ctrl *gomock.Controller) *MockContext
- func (m *MockContext) Run(_name string, _fn func(testctx.Context))
- func (m *MockContext) T() testctx.T
- type MockContextMockRecorder
- type MockT
- func (m *MockT) Cleanup(_arg0 func())
- func (m *MockT) EXPECT() *MockTMockRecorder
- func (m *MockT) Errorf(_format string, _args ...interface{})
- func (m *MockT) Fatalf(_format string, _args ...interface{})
- func (m *MockT) Helper()
- func (m *MockT) Logf(_format string, _args ...interface{})
- func (*MockT) NEW(ctrl *gomock.Controller) *MockT
- func (m *MockT) Parallel()
- func (m *MockT) Run(_name string, _f func(t *testing.T)) bool
- type MockTMockRecorder
- func (mr *MockTMockRecorder) Cleanup(_arg0 interface{}) *gomock.Call
- func (mr *MockTMockRecorder) Errorf(_format interface{}, _args ...interface{}) *gomock.Call
- func (mr *MockTMockRecorder) Fatalf(_format interface{}, _args ...interface{}) *gomock.Call
- func (mr *MockTMockRecorder) Helper() *gomock.Call
- func (mr *MockTMockRecorder) Logf(_format interface{}, _args ...interface{}) *gomock.Call
- func (mr *MockTMockRecorder) Parallel() *gomock.Call
- func (mr *MockTMockRecorder) Run(_name interface{}, _f interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext is a mock of the Context interface in github.com/JosiahWitt/ensure/internal/testctx.
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
NewMockContext creates a new mock instance.
func (*MockContext) EXPECT ¶
func (m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns a struct that allows setting up expectations.
func (*MockContext) Ensure ¶ added in v0.4.1
func (m *MockContext) Ensure() interface{}
Ensure mocks Ensure on Context.
func (*MockContext) GoMockController ¶
func (m *MockContext) GoMockController() *gomock.Controller
GoMockController mocks GoMockController on Context.
func (*MockContext) NEW ¶
func (*MockContext) NEW(ctrl *gomock.Controller) *MockContext
NEW creates a MockContext. This method is used internally by ensure.
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext.
func (*MockContextMockRecorder) Ensure ¶ added in v0.4.1
func (mr *MockContextMockRecorder) Ensure() *gomock.Call
Ensure sets up expectations for calls to Ensure. Calling this method multiple times allows expecting multiple calls to Ensure with a variety of parameters.
Inputs:
none
Outputs:
interface{}
func (*MockContextMockRecorder) GoMockController ¶
func (mr *MockContextMockRecorder) GoMockController() *gomock.Call
GoMockController sets up expectations for calls to GoMockController. Calling this method multiple times allows expecting multiple calls to GoMockController with a variety of parameters.
Inputs:
none
Outputs:
*gomock.Controller
func (*MockContextMockRecorder) Run ¶
func (mr *MockContextMockRecorder) Run(_name interface{}, _fn interface{}) *gomock.Call
Run sets up expectations for calls to Run. Calling this method multiple times allows expecting multiple calls to Run with a variety of parameters.
Inputs:
name string fn func(testctx.Context)
Outputs:
none
func (*MockContextMockRecorder) T ¶
func (mr *MockContextMockRecorder) T() *gomock.Call
T sets up expectations for calls to T. Calling this method multiple times allows expecting multiple calls to T with a variety of parameters.
Inputs:
none
Outputs:
testctx.T
type MockT ¶
type MockT struct {
// contains filtered or unexported fields
}
MockT is a mock of the T interface in github.com/JosiahWitt/ensure/internal/testctx.
func (*MockT) EXPECT ¶
func (m *MockT) EXPECT() *MockTMockRecorder
EXPECT returns a struct that allows setting up expectations.
type MockTMockRecorder ¶
type MockTMockRecorder struct {
// contains filtered or unexported fields
}
MockTMockRecorder is the mock recorder for MockT.
func (*MockTMockRecorder) Cleanup ¶
func (mr *MockTMockRecorder) Cleanup(_arg0 interface{}) *gomock.Call
Cleanup sets up expectations for calls to Cleanup. Calling this method multiple times allows expecting multiple calls to Cleanup with a variety of parameters.
Inputs:
func()
Outputs:
none
func (*MockTMockRecorder) Errorf ¶
func (mr *MockTMockRecorder) Errorf(_format interface{}, _args ...interface{}) *gomock.Call
Errorf sets up expectations for calls to Errorf. Calling this method multiple times allows expecting multiple calls to Errorf with a variety of parameters.
Inputs:
format string args ...interface{}
Outputs:
none
func (*MockTMockRecorder) Fatalf ¶
func (mr *MockTMockRecorder) Fatalf(_format interface{}, _args ...interface{}) *gomock.Call
Fatalf sets up expectations for calls to Fatalf. Calling this method multiple times allows expecting multiple calls to Fatalf with a variety of parameters.
Inputs:
format string args ...interface{}
Outputs:
none
func (*MockTMockRecorder) Helper ¶
func (mr *MockTMockRecorder) Helper() *gomock.Call
Helper sets up expectations for calls to Helper. Calling this method multiple times allows expecting multiple calls to Helper with a variety of parameters.
Inputs:
none
Outputs:
none
func (*MockTMockRecorder) Logf ¶
func (mr *MockTMockRecorder) Logf(_format interface{}, _args ...interface{}) *gomock.Call
Logf sets up expectations for calls to Logf. Calling this method multiple times allows expecting multiple calls to Logf with a variety of parameters.
Inputs:
format string args ...interface{}
Outputs:
none
func (*MockTMockRecorder) Parallel ¶ added in v0.4.3
func (mr *MockTMockRecorder) Parallel() *gomock.Call
Parallel sets up expectations for calls to Parallel. Calling this method multiple times allows expecting multiple calls to Parallel with a variety of parameters.
Inputs:
none
Outputs:
none
func (*MockTMockRecorder) Run ¶
func (mr *MockTMockRecorder) Run(_name interface{}, _f interface{}) *gomock.Call
Run sets up expectations for calls to Run. Calling this method multiple times allows expecting multiple calls to Run with a variety of parameters.
Inputs:
name string f func(t *testing.T)
Outputs:
bool