report

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 SchemaCompareConsoleReport

func SchemaCompareConsoleReport(results []SchemaCompareResult, cogVersion string)

SchemaCompareConsoleReport prints schema comparison results

func SchemaCompareJSONReport

func SchemaCompareJSONReport(results []SchemaCompareResult, cogVersion string) map[string]any

SchemaCompareJSONReport generates JSON report for schema comparison

func WriteJSONReport

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

WriteJSONReport writes a JSON report to a file or stdout

func WriteSchemaCompareJSONReport

func WriteSchemaCompareJSONReport(results []SchemaCompareResult, cogVersion string, w io.Writer) error

WriteSchemaCompareJSONReport writes schema comparison JSON report

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 SchemaCompareResult

type SchemaCompareResult struct {
	Name         string  `json:"name"`
	Passed       bool    `json:"passed"`
	Error        string  `json:"error,omitempty"`
	Diff         string  `json:"diff,omitempty"`
	StaticBuild  float64 `json:"static_build_s"`
	RuntimeBuild float64 `json:"runtime_build_s"`
}

SchemaCompareResult represents schema comparison results

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