Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteReport ¶
func WriteReport(report *CompatReport, path string) error
WriteReport serialises report as indented JSON and writes it to path.
Types ¶
type CompatReport ¶
type CompatReport struct {
GeneratedAt string `json:"generated_at"`
CloudMockVer string `json:"cloudmock_version"`
TotalOps int `json:"total_ops"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Skipped int `json:"skipped"`
CompatPct float64 `json:"compat_pct"`
Services map[string]*ServiceCompat `json:"services"`
}
CompatReport is the top-level compatibility report.
func GenerateFromBenchmark ¶
func GenerateFromBenchmark(benchPath string) (*CompatReport, error)
GenerateFromBenchmark creates a compat report from a benchmark results JSON file.
type OpCompat ¶
type OpCompat struct {
Name string `json:"name"`
Status string `json:"status"` // "pass", "fail", "skip"
CMStatus int `json:"cm_status,omitempty"`
ErrorDetail string `json:"error_detail,omitempty"`
}
OpCompat holds per-operation compatibility data.
type ServiceCompat ¶
type ServiceCompat struct {
Service string `json:"service"`
TotalOps int `json:"total_ops"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Skipped int `json:"skipped"`
CompatPct float64 `json:"compat_pct"`
Operations []OpCompat `json:"operations"`
}
ServiceCompat holds per-service compatibility data.
Click to show internal directories.
Click to hide internal directories.