Back to godoc.org

Package source

v1.4.4
Latest Go to latest

The latest major version is .

Published: Jul 28, 2020 | License: Apache-2.0 | Module: github.com/golang/mock

Overview

go:generate mockgen -destination ../source_mock.go -source=source.go go:generate mockgen -package source -destination source_mock.go -source=source.go

Package source is a generated GoMock package.

Index

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 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

type S

type S interface {
	F(X)
}

type X

type X struct{}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier