mock_ensuring

package
v0.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_ensuring is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockT

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

MockT is a mock of the T interface in github.com/JosiahWitt/ensure/ensuring.

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) 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) 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