Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaV1 = "mm/conformance/v1" PairSchemaV1 = "mm/conformance-pair/v1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPExchange ¶
type HTTPExchange struct {
Request HTTPRequestExpected `json:"request"`
Response HTTPResponse `json:"response"`
}
type HTTPRequestExpected ¶
type HTTPResponse ¶
type PairScenario ¶
type PairScenario struct {
Schema string `json:"schema"`
Name string `json:"name"`
Oracle Scenario `json:"oracle"`
Candidate Scenario `json:"candidate"`
}
func LoadPair ¶
func LoadPair(path string) (PairScenario, error)
type ProcessExpected ¶
type Scenario ¶
type Scenario struct {
Schema string `json:"schema"`
Name string `json:"name"`
Args []string `json:"args"`
Stdin string `json:"stdin,omitempty"`
Timeout *int `json:"timeoutMs,omitempty"`
Env map[string]string `json:"env,omitempty"`
HTTP []HTTPExchange `json:"http,omitempty"`
Expected *ProcessExpected `json:"expected"`
}
Click to show internal directories.
Click to hide internal directories.