typed_inorder

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: 2 Imported by: 0

Documentation

Overview

Package typed_inorder is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interact

func Interact(a Animal, food string) (string, error)

Types

type Animal

type Animal interface {
	GetSound() string
	Feed(string) error
}

type MockAnimal

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

MockAnimal is a mock of Animal interface.

func NewMockAnimal

func NewMockAnimal(ctrl *gomock.Controller) *MockAnimal

NewMockAnimal creates a new mock instance.

func (*MockAnimal) EXPECT

func (m *MockAnimal) EXPECT() *MockAnimalMockRecorder

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

func (*MockAnimal) Feed

func (m *MockAnimal) Feed(arg0 string) error

Feed mocks base method.

func (*MockAnimal) GetSound

func (m *MockAnimal) GetSound() string

GetSound mocks base method.

type MockAnimalFeedCall

type MockAnimalFeedCall struct {
	*gomock.Call
}

MockAnimalFeedCall wrap *gomock.Call

func (*MockAnimalFeedCall) Do

Do rewrite *gomock.Call.Do

func (*MockAnimalFeedCall) DoAndReturn

func (c *MockAnimalFeedCall) DoAndReturn(f func(string) error) *MockAnimalFeedCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAnimalFeedCall) Return

func (c *MockAnimalFeedCall) Return(arg0 error) *MockAnimalFeedCall

Return rewrite *gomock.Call.Return

type MockAnimalGetSoundCall

type MockAnimalGetSoundCall struct {
	*gomock.Call
}

MockAnimalGetSoundCall wrap *gomock.Call

func (*MockAnimalGetSoundCall) Do

Do rewrite *gomock.Call.Do

func (*MockAnimalGetSoundCall) DoAndReturn

func (c *MockAnimalGetSoundCall) DoAndReturn(f func() string) *MockAnimalGetSoundCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAnimalGetSoundCall) Return

Return rewrite *gomock.Call.Return

type MockAnimalMockRecorder

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

MockAnimalMockRecorder is the mock recorder for MockAnimal.

func (*MockAnimalMockRecorder) Feed

Feed indicates an expected call of Feed.

func (*MockAnimalMockRecorder) GetSound

GetSound indicates an expected call of GetSound.

Jump to

Keyboard shortcuts

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