errorquotient

package
v0.0.0-...-4cbcc9d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const KEY = "error_quotient"

Variables

This section is empty.

Functions

func CalculateCharDeltaAndLocation

func CalculateCharDeltaAndLocation(log *logger.Logger, filepath string, version1, version2 logger.LogEntry) (charDelta int, location string, err error)

Function to calculate CharDelta by comparing two versions of the same file

func ErrorTypeConversion

func ErrorTypeConversion(errorCode int) int

ErrorTypeConversion would convert the ErrorCode to the ErrType used in the EQ calculation. For the purpose of this example, assume that any ErrorCode != 0 is an error.

Types

type Analyzer

type Analyzer struct {
	ErrorsByParticipant map[string]ErrorQuotientAnalysisResult
}

func (*Analyzer) Analyze

func (e *Analyzer) Analyze(writer analyzer.KVWriter, loaders ...analyzer.LoggerLoader) error

type CompilationEvent

type CompilationEvent struct {
	ErrorType int
	TimeDelta int // This is the 'T' from your description.
	CharDelta int // This is the 'Ch' from your description.
	Location  string
}

type ErrorQuotientAnalysisResult

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

Jump to

Keyboard shortcuts

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