Documentation
¶
Overview ¶
Package selftest runs isolated local checks included in the Engram binary.
Index ¶
Constants ¶
View Source
const ( SuiteAll = "all" SuiteReliability = "reliability" SuitePerformance = "performance" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
SchemaVersion string `json:"schema_version"`
Suite string `json:"suite"`
Quick bool `json:"quick"`
Passed bool `json:"passed"`
DurationMS int64 `json:"duration_ms"`
Scenarios []Scenario `json:"scenarios"`
}
Report is the stable top-level JSON shape emitted by `engram test --json`.
type Scenario ¶
type Scenario struct {
Name string `json:"name"`
Suite string `json:"suite"`
Passed bool `json:"passed"`
DurationMS int64 `json:"duration_ms"`
Error string `json:"error,omitempty"`
Metrics map[string]float64 `json:"metrics,omitempty"`
}
Scenario records one self-test result. Performance scenarios include their operation count and throughput in Metrics; no timing threshold determines pass or fail.
Click to show internal directories.
Click to hide internal directories.