Expand description
conformance checks for external adapter executables.
Structs§
- Builtins
- which built-in checks to run. the writing ones are off by default: a conformance run is not asked to touch the operator’s backend.
- Case
- an adapter-specific test case: a full request and what to expect back.
- Expect
- the expectation for a case;
result/errorare optional. a stray key is rejected: a typo there silently removes the assertion the case exists for. - Failure
- why a check failed, with the diagnostics needed to debug the adapter.
- Outcome
- the result of one conformance check;
failureisNonewhen it passed.
Functions§
- load_
cases - load cases from a
.jsonfile or a directory of.jsonfiles (sorted). a path yielding no cases returns an empty vec; the caller decides what that means. - run_
builtin - run the backend-independent protocol checks that do not write. see
Builtins. - run_
builtin_ with - the built-ins, with the writing ones selectable. see
Builtins. - run_
cases - run adapter-specific cases against the adapter command.