package extra_import
import "go.uber.org/mock/mockgen/internal/tests/extra_import"
Package extra_import makes sure output does not import it. See #515.
Package extra_import is a generated GoMock package.
Index ¶
- type Foo
- type Message
- type MockFoo
- func NewMockFoo(ctrl *gomock.Controller) *MockFoo
- func (m *MockFoo) Bar(channels []string, message chan<- Message)
- func (m *MockFoo) EXPECT() *MockFooMockRecorder
- type MockFooMockRecorder
Types ¶
type Foo ¶
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 ¶
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.