compat

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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