example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package example is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	Name string
}

type Foo

type Foo interface {
	Bar(x []A) error
	Baz(msg *testpb.Message) error
	Qux(t *timestamppb.Timestamp) error
}

type MockFoo

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

MockFoo is a mock of Foo interface

func NewMockFoo

func NewMockFoo(ctrl *gomock.Controller) *MockFoo

NewMockFoo creates a new mock instance

func (*MockFoo) Bar

func (m *MockFoo) Bar(x []A) error

Bar mocks base method

func (*MockFoo) Baz

func (m *MockFoo) Baz(msg *testpb.Message) error

Baz mocks base method

func (*MockFoo) EXPECT

func (m *MockFoo) EXPECT() *MockFooMockRecorder

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

func (*MockFoo) Qux

func (m *MockFoo) Qux(t *timestamppb.Timestamp) error

Qux mocks base method

type MockFooMockRecorder

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

MockFooMockRecorder is the mock recorder for MockFoo

func (*MockFooMockRecorder) Bar

func (mr *MockFooMockRecorder) Bar(x interface{}) *gomock.Call

Bar indicates an expected call of Bar

func (*MockFooMockRecorder) Baz

func (mr *MockFooMockRecorder) Baz(msg interface{}) *gomock.Call

Baz indicates an expected call of Baz

func (*MockFooMockRecorder) Qux

func (mr *MockFooMockRecorder) Qux(t interface{}) *gomock.Call

Qux indicates an expected call of Qux

Jump to

Keyboard shortcuts

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