Help us shape the future of Go! Take the 2026 Go Developer Survey

mockmodules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPassiveModule

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

MockPassiveModule is a slightly more user-friendly wrapper around gomock_modules.MockPassiveModule.

func NewMockPassiveModule

func NewMockPassiveModule(ctrl *gomock.Controller) *MockPassiveModule

func (*MockPassiveModule) ApplyEvents

func (m *MockPassiveModule) ApplyEvents(events *events.EventList) (*events.EventList, error)

ApplyEvents applies a list of input events to the module, making it advance its state and returns a (potentially empty) list of output events that the application of the input events results in.

func (*MockPassiveModule) EXPECT

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

func (*MockPassiveModule) ImplementsModule

func (m *MockPassiveModule) ImplementsModule()

ImplementsModule only serves the purpose of indicating that this is a Module and must not be called.

Directories

Path Synopsis
mock_internal
Package mock_internal is a generated GoMock package.
Package mock_internal is a generated GoMock package.

Jump to

Keyboard shortcuts

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