model

package
v0.0.0-...-b2493da Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutant

type Mutant struct {
	ID            string
	RuleName      string
	Point         MutationPoint
	WorkDir       string
	TempDir       string
	OverlayPath   string
	OverlayTmpDir string
	MutantFile    string
	ReplaceMap    map[string]string
	SelectedTests SelectedTests
}

type MutantExecResult

type MutantExecResult struct {
	Mutant         Mutant
	Status         MutantStatus
	Reason         string
	ExecutedPkgs   map[string]string
	FailedCommand  []string
	Stdout         string
	Stderr         string
	TimedOut       bool
	ElapsedNsec    int64
	InternalErrMsg string
}

type MutantStatus

type MutantStatus int
const (
	MutantKilled MutantStatus = iota
	MutantSurvived
	MutantUnsupported
	MutantErrored
)

type MutationPoint

type MutationPoint struct {
	PkgID          string
	PkgImportPath  string
	File           *ast.File
	FilePath       string
	Node           ast.Node
	Path           []ast.Node
	Pos            token.Position
	EnclosingFunc  *ast.FuncDecl
	PackageName    string
	CompiledGoFile string
}

type Package

type Package struct {
	ID              string
	ImportPath      string
	Dir             string
	GoFiles         []string
	CompiledGoFiles []string
	Imports         []string
	Fset            *token.FileSet
	Syntax          []*ast.File
	SyntaxByPath    map[string]*ast.File
	TypesInfo       *types.Info
	Raw             *packages.Package
}

type Project

type Project struct {
	Packages     []*Package
	ByID         map[string]*Package
	ByImportPath map[string]*Package
}

type SelectedTests

type SelectedTests struct {
	ByImportPath map[string][]string
}

type TestRef

type TestRef struct {
	PkgID       string
	ImportPath  string
	Name        string
	FilePath    string
	PackageName string
}

Jump to

Keyboard shortcuts

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