code

package
Version: v0.0.0-...-ad7f989 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

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

func NewBinding

func NewBinding(pkg string, fppath string, fps []*Failpoint) *Binding

func (*Binding) Write

func (b *Binding) Write(dst io.Writer) error

Write writes the fp.generated.go file for a package.

type Failpoint

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

func ToComments

func ToComments(wdst io.Writer, rsrc io.Reader) (fps []*Failpoint, err error)

ToComments turns all failpoint code into GOFAIL comments. It returns a list of all failpoints it deactivated.

func ToFailpoints

func ToFailpoints(wdst io.Writer, rsrc io.Reader) (fps []*Failpoint, err error)

ToFailpoints turns all gofail comments into failpoint code. Returns a list of all failpoints it activated.

func (*Failpoint) Name

func (fp *Failpoint) Name() string

func (*Failpoint) Runtime

func (fp *Failpoint) Runtime() string

Jump to

Keyboard shortcuts

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