report

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleReport

func ConsoleReport(results []ModelResult, sdkVersion, cogVersion string)

ConsoleReport prints a colored summary to the console

func JSONReport

func JSONReport(results []ModelResult, sdkVersion, cogVersion string) map[string]any

JSONReport generates a JSON report

func SaveResults

func SaveResults(results []ModelResult, sdkVersion, cogVersion string) (string, error)

SaveResults saves results to a JSON file in the results directory

func WriteJSONReport

func WriteJSONReport(results []ModelResult, sdkVersion, cogVersion string, w io.Writer) error

WriteJSONReport writes a JSON report to a file or stdout

Types

type ModelResult

type ModelResult struct {
	Name          string       `json:"name"`
	Passed        bool         `json:"passed"`
	Skipped       bool         `json:"skipped,omitempty"`
	SkipReason    string       `json:"skip_reason,omitempty"`
	GPU           bool         `json:"gpu"`
	Error         string       `json:"error,omitempty"`
	BuildDuration float64      `json:"build_duration_s"`
	TestResults   []TestResult `json:"tests,omitempty"`
	TrainResults  []TestResult `json:"train_tests,omitempty"`
}

ModelResult represents results for a single model

type TestResult

type TestResult struct {
	Description string  `json:"description"`
	Passed      bool    `json:"passed"`
	Message     string  `json:"message"`
	DurationSec float64 `json:"duration_s"`
}

TestResult represents a single test case result

Jump to

Keyboard shortcuts

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