mock

package
v0.0.0-...-b9e5ada Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invocation

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

func (*Invocation) Match

func (i *Invocation) Match(input []any) ([]any, bool)

func (*Invocation) SetCallCount

func (i *Invocation) SetCallCount(count int)

func (*Invocation) SetReturnValues

func (i *Invocation) SetReturnValues(values []any)

func (*Invocation) SetStub

func (i *Invocation) SetStub(stub any)

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Invoke

func (r *Registry) Invoke(name string, input []any) []any

func (*Registry) Match

func (r *Registry) Match(name string, matchFunc any) *Invocation

Jump to

Keyboard shortcuts

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