metricstesting

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssessmentsWithProcessingTime = metrics.Assessments{
	metrics.AssessmentKeyProcessingTime: 1,
}

AssessmentsWithProcessingTime is an empty assessment collection with positive processing time.

Functions

func AssertAssessmentsEqual

func AssertAssessmentsEqual(t *testing.T, expected metrics.Assessments, actual metrics.Assessments)

AssertAssessmentsEqual checks if the given assessments are equal ignoring default and nondeterministic values.

func AssertTaskAssessmentsEqual added in v0.6.0

func AssertTaskAssessmentsEqual(t *testing.T, expected map[task.Identifier]metrics.Assessments, actual map[task.Identifier]metrics.Assessments)

AssertTaskAssessmentsEqual checks if the given assessments per task are equal ignoring default and nondeterministic values.

Types

type AssessmentTuple added in v0.6.0

type AssessmentTuple struct {
	Model          model.Model
	Language       language.Language
	RepositoryPath string
	Task           task.Identifier
	Assessment     metrics.Assessments
}

AssessmentTuple holds all parameters uniquely defining to which run an assessment belongs to.

type AssessmentTuples added in v0.6.0

type AssessmentTuples []*AssessmentTuple

func (AssessmentTuples) ToMap added in v0.6.0

func (at AssessmentTuples) ToMap() (lookup map[model.Model]map[language.Language]map[string]map[task.Identifier]metrics.Assessments)

Jump to

Keyboard shortcuts

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