mock_source

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Import Source

Test the case where the generated code uses a type defined in the source package (in source mode). There are two test cases:

  • the output is in a new package
  • the output is in the same package as the input

Documentation

Overview

Package mock_source is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockS

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

MockS is a mock of S interface.

func NewMockS

func NewMockS(ctrl *gomock.Controller) *MockS

NewMockS creates a new mock instance.

func (*MockS) EXPECT

func (m *MockS) EXPECT() *MockSMockRecorder

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

func (*MockS) F

func (m *MockS) F(arg0 source.X)

F mocks base method.

type MockSMockRecorder

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

MockSMockRecorder is the mock recorder for MockS.

func (*MockSMockRecorder) F

func (mr *MockSMockRecorder) F(arg0 any) *gomock.Call

F indicates an expected call of F.

Directories

Path Synopsis
Package source is a generated GoMock package.
Package source is a generated GoMock package.

Jump to

Keyboard shortcuts

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