ooze

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

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

func (*Diagnostic) Diff

func (d *Diagnostic) Diff(differ gomutatedfile.Differ) string

func (*Diagnostic) IsOk

func (d *Diagnostic) IsOk() bool

func (*Diagnostic) Label

func (d *Diagnostic) Label() string

type Laboratory

type Laboratory interface {
	Test(repository Repository, file *gomutatedfile.GoMutatedFile) future.Future[result.Result[string]]
}

type Logger

type Logger interface {
	Logf(message string, args ...any)
}

type Ooze

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

func New

func New(repository Repository, laboratory Laboratory, reporter Reporter) *Ooze

func (*Ooze) Release

func (o *Ooze) Release(viri ...viruses.Virus)

type Reporter

type Reporter interface {
	AddDiagnostic(diagnostic *Diagnostic)
	Summarize() result.Result[any]
}

type Repository

type Repository interface {
	ListGoSourceFiles() []*gosourcefile.GoSourceFile
	LinkAllToTemporaryRepository(temporaryPath string) TemporaryRepository
}

type ScoreCalculator

type ScoreCalculator func(total, killed int) float32

type TemporaryRepository

type TemporaryRepository interface {
	Root() string
	Overwrite(filePath string, data []byte)
	Remove()
}

Jump to

Keyboard shortcuts

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