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