mutest_rs

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectionMatrix

type DetectionMatrix struct {
	OverallDetections string `json:"overall_detections"`
}

type Evaluation

type Evaluation struct {
	MutationRuns []*MutationRuns `json:"mutation_runs"`
}

Evaluation marshals to evaluation.json from the mutest output data

type Location

type Location struct {
	Path  string `json:"path"`
	Begin []int  `json:"begin"`
	End   []int  `json:"end"`
}

type Mutation

type Mutation struct {
	MutationID    int             `json:"mutation_id"`
	Location      *Location       `json:"origin_span"`
	MutationOp    string          `json:"mutation_op"`
	DisplayName   string          `json:"display_name"`
	Substitutions []*Substitution `json:"substs"`
}

type MutationRuns

type MutationRuns struct {
	DetectionMatrix *DetectionMatrix `json:"mutation_detection_matrix"`
}

type Mutations

type Mutations struct {
	Mutations []*Mutation `json:"mutations"`
}

Mutations marshals to mutations.json from the mutest output data

type MutestRS

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

MutestRS wraps the evaluation.json and mutations.json objects into a single struct.

func NewMutestRS

func NewMutestRS() *MutestRS

func (*MutestRS) LoadResults

func (m *MutestRS) LoadResults() error

func (*MutestRS) Meta

func (m *MutestRS) Meta() *fwlib.Meta

func (*MutestRS) Mutations

func (m *MutestRS) Mutations() mutations.Mutations

func (*MutestRS) ReadLines

func (m *MutestRS) ReadLines(file string) ([]string, error)

func (*MutestRS) TransformResults

func (m *MutestRS) TransformResults() error

func (*MutestRS) Yaml

func (m *MutestRS) Yaml() fwlib.FWConfig

type Substitute

type Substitute struct {
	Replacement string `json:"replacement"`
}

type Substitution

type Substitution struct {
	Substitution *Substitute `json:"substitute"`
}

type YamlConfig

type YamlConfig struct {
	Run     string `yaml:"run"`
	Src     string `yaml:"src"`
	JsonDir string `yaml:"json-dir"`
}

YamlConfig represents Mutest-RS yml config data.

type YamlWrapper

type YamlWrapper struct {
	Cfg *YamlConfig `yaml:"mutest-rs"`
}

YamlWrapper used to load the mutest-rs configuration from the .marv.yml file.

func (*YamlWrapper) Init

func (y *YamlWrapper) Init() interface{}

func (*YamlWrapper) Load

func (y *YamlWrapper) Load(yml []byte) (bool, error)

Jump to

Keyboard shortcuts

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