Documentation ¶
Overview ¶
Package mock_mockgen is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGenerator ¶
type MockGenerator struct {
// contains filtered or unexported fields
}
MockGenerator is a mock of the Generator interface in github.com/JosiahWitt/ensure/cmd/ensure/internal/mockgen.
func NewMockGenerator ¶
func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator
NewMockGenerator creates a new mock instance.
func (*MockGenerator) EXPECT ¶
func (m *MockGenerator) EXPECT() *MockGeneratorMockRecorder
EXPECT returns a struct that allows setting up expectations.
func (*MockGenerator) GenerateMocks ¶
func (m *MockGenerator) GenerateMocks(_pkgs []*ifacereader.Package, _imports *uniqpkg.UniquePackagePaths) ([]*mockgen.PackageMock, error)
GenerateMocks mocks GenerateMocks on Generator.
func (*MockGenerator) NEW ¶
func (*MockGenerator) NEW(ctrl *gomock.Controller) *MockGenerator
NEW creates a MockGenerator. This method is used internally by ensure.
type MockGeneratorMockRecorder ¶
type MockGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockGeneratorMockRecorder is the mock recorder for MockGenerator.
func (*MockGeneratorMockRecorder) GenerateMocks ¶
func (mr *MockGeneratorMockRecorder) GenerateMocks(_pkgs interface{}, _imports interface{}) *gomock.Call
GenerateMocks sets up expectations for calls to GenerateMocks. Calling this method multiple times allows expecting multiple calls to GenerateMocks with a variety of parameters.
Inputs:
pkgs []*ifacereader.Package imports *uniqpkg.UniquePackagePaths
Outputs:
[]*mockgen.PackageMock error