gomutatedfile

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Differ

type Differ interface {
	Diff(a, b string, aData, bData []byte) string
}

type GoMutatedFile

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

func New

func New(infectionName, relativePath string, rawSourceContent, rawMutatedContent []byte) *GoMutatedFile

func (*GoMutatedFile) Diff

func (f *GoMutatedFile) Diff(differ Differ) string

func (*GoMutatedFile) Label

func (f *GoMutatedFile) Label() string

func (*GoMutatedFile) String

func (f *GoMutatedFile) String() string

func (*GoMutatedFile) WriteTo

func (f *GoMutatedFile) WriteTo(repository Repository)

type Repository

type Repository interface {
	Overwrite(filePath string, data []byte)
}

Jump to

Keyboard shortcuts

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