mock_source

package
Version: v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

README

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 definition.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 interface{}) *gomock.Call

F indicates an expected call of F

Source Files

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