Documentation
¶
Overview ¶
Package testgen generates test cases for protocol schemas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatGoTest ¶
FormatGoTest generates Go test code from test cases.
Types ¶
type TestCase ¶
type TestCase struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"` // "boundary", "equivalence", "roundtrip", "property"
Input map[string]any `json:"input"`
Expected string `json:"expected"` // "success", "error"
}
TestCase represents a generated test case.
Click to show internal directories.
Click to hide internal directories.