Documentation
¶
Index ¶
- func ConsoleReport(results []ModelResult, sdkVersion, cogVersion string)
- func JSONReport(results []ModelResult, sdkVersion, cogVersion string) map[string]any
- func SaveResults(results []ModelResult, sdkVersion, cogVersion string) (string, error)
- func SchemaCompareConsoleReport(results []SchemaCompareResult, cogVersion string)
- func SchemaCompareJSONReport(results []SchemaCompareResult, cogVersion string) map[string]any
- func WriteJSONReport(results []ModelResult, sdkVersion, cogVersion string, w io.Writer) error
- func WriteSchemaCompareJSONReport(results []SchemaCompareResult, cogVersion string, w io.Writer) error
- type ModelResult
- type SchemaCompareResult
- type TestResult
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
Click to show internal directories.
Click to hide internal directories.