mocking

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThrowError = func() error {
	return errors.New("always fails")
}

Functions

func DoSomeStuff

func DoSomeStuff(d DoStuffer) error

Types

type DoStuffer

type DoStuffer interface {
	DoStuff(input string) error
}

type Restorer

type Restorer func()

func Patch

func Patch(dest, value interface{}) Restorer

func (Restorer) Restore

func (r Restorer) Restore()

Jump to

Keyboard shortcuts

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