add_generate_directive

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Code generated by MockGen. DO NOT EDIT. Source: go.uber.org/mock/mockgen/internal/tests/add_generate_directive (interfaces: Foo)

Generated by this command:

mockgen -write_generate_directive -destination mock.go -package add_generate_directive . Foo

Package add_generate_directive is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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(arg0 []string, arg1 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(arg0, arg1 any) *gomock.Call

Bar indicates an expected call of Bar.

Jump to

Keyboard shortcuts

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