override

package
v0.0.4-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func() Result

type Override

type Override struct {
	Handler  *interface{}
	Mock     interface{}
	Original interface{}
}

func (Override) Apply

func (o Override) Apply()

func (Override) Remove

func (o Override) Remove()

type Result

type Result struct {
	Output      []byte
	ErrorOutput []byte
	Err         error
}

func WithOverrides

func WithOverrides(action Action, overrides ...Override) Result

Jump to

Keyboard shortcuts

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