laboratory

package
v0.0.0-...-a2a1f02 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package laboratory is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlyAway

func FlyAway(canfly Creatures) string

FlyAway - I only know about Creatures

func Greet

func Greet(c Creatures) string

Greet - I only know about Creatures

Types

type Creatures

type Creatures interface {
	Kind() string
	Fly() bool
	Sound() string
}

Creatures describe Behavior of creatures

type MockCreatures

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

MockCreatures is a mock of Creatures interface

func NewMockCreatures

func NewMockCreatures(ctrl *gomock.Controller) *MockCreatures

NewMockCreatures creates a new mock instance

func (*MockCreatures) EXPECT

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

func (*MockCreatures) Fly

func (m *MockCreatures) Fly() bool

Fly mocks base method

func (*MockCreatures) Kind

func (m *MockCreatures) Kind() string

Kind mocks base method

func (*MockCreatures) Sound

func (m *MockCreatures) Sound() string

Sound mocks base method

type MockCreaturesMockRecorder

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

MockCreaturesMockRecorder is the mock recorder for MockCreatures

func (*MockCreaturesMockRecorder) Fly

Fly indicates an expected call of Fly

func (*MockCreaturesMockRecorder) Kind

Kind indicates an expected call of Kind

func (*MockCreaturesMockRecorder) Sound

func (mr *MockCreaturesMockRecorder) Sound() *gomock.Call

Sound indicates an expected call of Sound

Jump to

Keyboard shortcuts

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