mock_mockgen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 5 Imported by: 0

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

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

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

Jump to

Keyboard shortcuts

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