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

mock

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func On

func On(fpname string) interface{}

On inject a failpoint

func Reset

func Reset(fpname string) error

Reset disable failpoint and remove mock value

Types

type Finalizer

type Finalizer func()

Finalizer represent the function that clean a mock point

func With

func With(fpname string, value interface{}) Finalizer

With enable failpoint and provide a value

Jump to

Keyboard shortcuts

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