mutants

package
v0.0.0-...-9a39b94 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DataFileName = "gomutate.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionalsBoundary

type ConditionalsBoundary struct {
}

func (*ConditionalsBoundary) Mutate

func (nc *ConditionalsBoundary) Mutate(node ast.Node) (m Mutation, ok bool)

func (*ConditionalsBoundary) Name

func (nc *ConditionalsBoundary) Name() string

type Data

type Data struct {
	Filename   string `json:"filename"`
	LineNumber int    `json:"line_number"`
	Original   string `json:"original"`
	Mutation   string `json:"mutation"`
	Type       string `json:"type"`
	Killed     bool   `json:"killed"`
}

func (*Data) Load

func (md *Data) Load(path string) error

func (*Data) Save

func (md *Data) Save(path string) error

type Mutation

type Mutation struct {
	OrgStmt string
	NewStmt string
	Reset   func()
}

type Mutator

type Mutator interface {
	Mutate(ast.Node) (Mutation, bool)
	Name() string
}

type NegateConditionals

type NegateConditionals struct {
}

func (*NegateConditionals) Mutate

func (nc *NegateConditionals) Mutate(node ast.Node) (m Mutation, ok bool)

func (*NegateConditionals) Name

func (nc *NegateConditionals) Name() string

Jump to

Keyboard shortcuts

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