mockgithub.com/golang/mock/mockgen/internal/tests/generated_identifier_conflict Index | Files

package bugreport

import "github.com/golang/mock/mockgen/internal/tests/generated_identifier_conflict"

Package bugreport is a generated GoMock package.

Index

Types

type Example

type Example interface {
	// _m and _mr were used by the buggy code: the '_' prefix was there hoping
	// that no one will use method argument names starting with '_' reducing
	// the chance of collision with generated identifiers.
	// m and mr are used by the bugfixed new code, the '_' prefix has been
	// removed because the new code generator changes the names of the
	// generated identifiers in case they would collide with identifiers
	// coming from argument names.
	Method(_m, _mr, m, mr int)

	VarargMethod(_s, _x, a, ret int, varargs ...int)
}

type MockExample

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

MockExample is a mock of Example interface.

func NewMockExample

func NewMockExample(ctrl *gomock.Controller) *MockExample

NewMockExample creates a new mock instance.

func (*MockExample) EXPECT

func (m *MockExample) EXPECT() *MockExampleMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExample) Method

func (m_2 *MockExample) Method(_m, _mr, m, mr int)

Method mocks base method.

func (*MockExample) VarargMethod

func (m *MockExample) VarargMethod(_s, _x, a, ret int, varargs ...int)

VarargMethod mocks base method.

type MockExampleMockRecorder

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

MockExampleMockRecorder is the mock recorder for MockExample.

func (*MockExampleMockRecorder) Method

func (mr_2 *MockExampleMockRecorder) Method(_m, _mr, m, mr interface{}) *gomock.Call

Method indicates an expected call of Method.

func (*MockExampleMockRecorder) VarargMethod

func (mr *MockExampleMockRecorder) VarargMethod(_s, _x, a, ret interface{}, varargs ...interface{}) *gomock.Call

VarargMethod indicates an expected call of VarargMethod.

Source Files

bugreport.go bugreport_mock.go

Version
v1.6.0 (latest)
Published
Jun 11, 2021
Platform
linux/amd64
Imports
2 packages
Last checked
5 days ago

Tools for package owners.