mockgo.uber.org/mock/mockgen/internal/tests/add_generate_directive Index | Files

package add_generate_directive

import "go.uber.org/mock/mockgen/internal/tests/add_generate_directive"

Package add_generate_directive makes sure output places the go:generate command as a directive in the generated code.

Package add_generate_directive is a generated GoMock package.

Index

Types

type Foo

type Foo interface {
	Bar(channels []string, message chan<- Message)
}

type Message

type Message struct {
	Text string
}

type MockFoo

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

MockFoo is a mock of Foo interface.

func NewMockFoo

func NewMockFoo(ctrl *gomock.Controller) *MockFoo

NewMockFoo creates a new mock instance.

func (*MockFoo) Bar

func (m *MockFoo) Bar(channels []string, message chan<- Message)

Bar mocks base method.

func (*MockFoo) EXPECT

func (m *MockFoo) EXPECT() *MockFooMockRecorder

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

type MockFooMockRecorder

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

MockFooMockRecorder is the mock recorder for MockFoo.

func (*MockFooMockRecorder) Bar

func (mr *MockFooMockRecorder) Bar(channels, message any) *gomock.Call

Bar indicates an expected call of Bar.

Source Files

import.go mock.go

Version
v0.5.2 (latest)
Published
Apr 28, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.