package bugreport

import "github.com/golang/mock/mockgen/internal/tests/import_embedded_interface"

Package bugreport is a generated GoMock package.

Package bugreport is a generated GoMock package.

Index

Functions

func CallForeignMethod

func CallForeignMethod(s Source)

func CallResponseWriterMethods

func CallResponseWriterMethods(n Net)

Types

type MockNet

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

MockNet is a mock of Net interface.

func NewMockNet

func NewMockNet(ctrl *gomock.Controller) *MockNet

NewMockNet creates a new mock instance.

func (*MockNet) EXPECT

func (m *MockNet) EXPECT() *MockNetMockRecorder

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

func (*MockNet) Header

func (m *MockNet) Header() http.Header

Header mocks base method.

func (*MockNet) Write

func (m *MockNet) Write(arg0 []byte) (int, error)

Write mocks base method.

func (*MockNet) WriteHeader

func (m *MockNet) WriteHeader(statusCode int)

WriteHeader mocks base method.

type MockNetMockRecorder

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

MockNetMockRecorder is the mock recorder for MockNet.

func (*MockNetMockRecorder) Header

func (mr *MockNetMockRecorder) Header() *gomock.Call

Header indicates an expected call of Header.

func (*MockNetMockRecorder) Write

func (mr *MockNetMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write.

func (*MockNetMockRecorder) WriteHeader

func (mr *MockNetMockRecorder) WriteHeader(statusCode interface{}) *gomock.Call

WriteHeader indicates an expected call of WriteHeader.

type MockSource

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

MockSource is a mock of Source interface.

func NewMockSource

func NewMockSource(ctrl *gomock.Controller) *MockSource

NewMockSource creates a new mock instance.

func (*MockSource) EXPECT

func (m *MockSource) EXPECT() *MockSourceMockRecorder

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

func (*MockSource) Error

func (m *MockSource) Error() string

Error mocks base method.

func (*MockSource) Ersatz

func (m *MockSource) Ersatz() ersatz.Return

Ersatz mocks base method.

func (*MockSource) OtherErsatz

func (m *MockSource) OtherErsatz() ersatz0.Return

OtherErsatz mocks base method.

type MockSourceMockRecorder

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

MockSourceMockRecorder is the mock recorder for MockSource.

func (*MockSourceMockRecorder) Error

func (mr *MockSourceMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

func (*MockSourceMockRecorder) Ersatz

func (mr *MockSourceMockRecorder) Ersatz() *gomock.Call

Ersatz indicates an expected call of Ersatz.

func (*MockSourceMockRecorder) OtherErsatz

func (mr *MockSourceMockRecorder) OtherErsatz() *gomock.Call

OtherErsatz indicates an expected call of OtherErsatz.

type Net

type Net interface {
	http.ResponseWriter
}

type Source

type Source interface {
	ersatz.Embedded
	faux.Foreign
	error
}

Source is an interface w/ an embedded foreign interface

Source Files

bugreport.go bugreport_mock.go net.go net_mock.go

Directories

PathSynopsis
mockgen/internal/tests/import_embedded_interface/ersatz
mockgen/internal/tests/import_embedded_interface/faux
mockgen/internal/tests/import_embedded_interface/other
mockgen/internal/tests/import_embedded_interface/other/ersatz
mockgen/internal/tests/import_embedded_interface/other/log
Version
v1.6.0 (latest)
Published
Jun 11, 2021
Platform
linux/amd64
Imports
7 packages
Last checked
5 days ago

Tools for package owners.