internal

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutation

type Mutation struct {
	Type   string `json:"type"`
	Status string `json:"status"`
	Line   int    `json:"line"`
	Column int    `json:"column"`
}

Mutation represents a single mutation in the OutputResult data structure.

type MutatorType

type MutatorType struct {
	ArithmeticBase              int `json:"arithmetic_base,omitempty"`
	ConditionalsNegation        int `json:"conditionals_negation,omitempty"`
	ConditionalsBoundary        int `json:"conditionals_boundary,omitempty"`
	IncrementDecrement          int `json:"increment_decrement,omitempty"`
	InvertAssignments           int `json:"invert_assignments,omitempty"`
	InvertBitwise               int `json:"invert_bitwise,omitempty"`
	InvertBitwiseAssignments    int `json:"invert_bitwise_assignments,omitempty"`
	InvertLogical               int `json:"invert_logical,omitempty"`
	InvertLoopCtrl              int `json:"invert_loop_ctrl,omitempty"`
	InvertNegatives             int `json:"invert_negatives,omitempty"`
	RemoveSelfAssignments       int `json:"remove_self_assignments,omitempty"`
	RemoveBinaryExpressionLeft  int `json:"remove_binary_expression_left,omitempty"`
	RemoveBinaryExpressionRight int `json:"remove_binary_expression_right,omitempty"`
	RemoveStatement             int `json:"remove_statement"`
}

MutatorType contains the list of all supported mutator types.

type OutputFile

type OutputFile struct {
	Filename  string     `json:"file_name"`
	Mutations []Mutation `json:"mutations"`
}

OutputFile represents a single file in the OutputResult data structure.

type OutputResult

type OutputResult struct {
	GoModule          string       `json:"go_module"`
	Files             []OutputFile `json:"files"`
	TestEfficacy      float64      `json:"test_efficacy"`
	MutationsCoverage float64      `json:"mutations_coverage"`
	MutantsTotal      int          `json:"mutants_total"`
	MutantsKilled     int          `json:"mutants_killed"`
	MutantsLived      int          `json:"mutants_lived"`
	MutantsNotViable  int          `json:"mutants_not_viable"`
	MutantsNotCovered int          `json:"mutants_not_covered"`
	ElapsedTime       float64      `json:"elapsed_time"`
	MutatorStatistics MutatorType  `json:"mutator_statistics"`
}

OutputResult is the data structure for the Gremlins file output format.

Jump to

Keyboard shortcuts

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