Documentation
¶
Overview ¶
Package contract runs the shared envrules fixture through any writer's validation function, so every writer proves the same accept and reject result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct {
Name string `json:"name"`
Set map[string]string `json:"set"`
Existing envrules.Existing `json:"existing"`
Policy json.RawMessage `json:"policy"`
Options envrules.Options `json:"options"`
WantErrors []string `json:"want_errors"`
WantWarnings []string `json:"want_warnings"`
}
Case is one fixture entry.
func (Case) DefaultPolicyOnly ¶
DefaultPolicyOnly is true when the case runs under the seeded default policy.