mock_testctx

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_testctx is a generated GoMock package.

Index

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

NEW creates a MockContext. This method is used internally by ensure.

func (*MockContext) Run

func (m *MockContext) Run(_name string, _fn func(testctx.Context))

Run mocks Run on Context.

func (*MockContext) T

func (m *MockContext) T() testctx.T

T mocks T on Context.

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

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 NewMockT

func NewMockT(ctrl *gomock.Controller) *MockT

NewMockT creates a new mock instance.

func (*MockT) Cleanup

func (m *MockT) Cleanup(_arg0 func())

Cleanup mocks Cleanup on T.

func (*MockT) EXPECT

func (m *MockT) EXPECT() *MockTMockRecorder

EXPECT returns a struct that allows setting up expectations.

func (*MockT) Errorf

func (m *MockT) Errorf(_format string, _args ...interface{})

Errorf mocks Errorf on T.

func (*MockT) Fatalf

func (m *MockT) Fatalf(_format string, _args ...interface{})

Fatalf mocks Fatalf on T.

func (*MockT) Helper

func (m *MockT) Helper()

Helper mocks Helper on T.

func (*MockT) Logf

func (m *MockT) Logf(_format string, _args ...interface{})

Logf mocks Logf on T.

func (*MockT) NEW

func (*MockT) NEW(ctrl *gomock.Controller) *MockT

NEW creates a MockT. This method is used internally by ensure.

func (*MockT) Parallel added in v0.4.3

func (m *MockT) Parallel()

Parallel mocks Parallel on T.

func (*MockT) Run

func (m *MockT) Run(_name string, _f func(t *testing.T)) bool

Run mocks Run on T.

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

Jump to

Keyboard shortcuts

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