Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluationHeader ¶ added in v0.6.0
func EvaluationHeader() (header []string)
EvaluationHeader returns the CSV header for the evaluation CSV.
Types ¶
type EvaluationFile ¶ added in v0.6.0
type EvaluationFile struct {
// Holds the writer where the evaluation CSV is written to.
io.Writer
}
EvaluationFile holds the evaluation CSV file writer.
func NewEvaluationFile ¶ added in v0.6.0
func NewEvaluationFile(writer io.Writer) (evaluationFile *EvaluationFile, err error)
NewEvaluationFile initializes an evaluation file and writes the corresponding CSV header.
func (*EvaluationFile) WriteEvaluationRecord ¶ added in v0.6.0
func (e *EvaluationFile) WriteEvaluationRecord(model model.Model, language language.Language, repositoryName string, run uint, assessmentsPerCasePerTask map[string]map[task.Identifier]metrics.Assessments) (err error)
WriteEvaluationRecord writes the assessments of a task into the evaluation CSV.
func (*EvaluationFile) WriteLines ¶ added in v0.6.0
func (e *EvaluationFile) WriteLines(records [][]string) (err error)
WriteLines takes a slice of raw records and writes them into the evaluation file.
type Markdown ¶
type Markdown struct {
// DateTime holds the timestamp of the evaluation.
DateTime time.Time
// Version holds the version of the evaluation tool.
Version string
// Revision holds the Git revision of the evaluation tool.
Revision string
}
Markdown holds the values for exporting a Markdown report.
func (Markdown) WriteToFile ¶
WriteToFile renders the Markdown to the given file.
Click to show internal directories.
Click to hide internal directories.