MODEL_SEEDSconstno test imports itconst MODEL_SEEDS: readonly [1, 2, 3]The seeds of the model cases the suite runs.
The conformance suite of AnyFS: the cases every backend passes, each needing named capabilities, and the functions that choose and run them. A backend's tests call runConformance with a function that makes a new, empty store, and the suite runs every case whose needs the store has and says which failed and how.
import { runConformance } from "./mod.ts";
// const report = await runConformance(async () => memoryStore())
// report.filter((r) => r.failure !== undefined) // the cases that failedMODEL_SEEDSconstno test imports itconst MODEL_SEEDS: readonly [1, 2, 3]The seeds of the model cases the suite runs.
MODEL_STEPSconstno test imports itconst MODEL_STEPS: 300The operations of each model case.
ALL_CASESconstconst ALL_CASES: readonly Case[]Every case of the suite, the model cases included.
casesForfunctionfunction casesFor(capabilities: Iterable<"append" | "batch" | "cas" | "delete" | "history" | "list" | "lock" | "merge" | "rangeRead" | "read" | "rename" | "search" | "stat" | "watch" | "write">): readonly Case[]The cases a store with these capabilities is held to: those whose needs it has.
CaseReporttypeno test imports ittype CaseReport = { readonly id: string; readonly title: string; readonly failure?: string };What one case did.
runCasefunctionfunction runCase(c: Case, make: Make): Promise<CaseReport>Runs one case against stores made by make: its report, with the failure as a sentence.
runConformancefunctionfunction runConformance(make: () => Promise<Store<"delete" | "list" | "read" | "stat" | "write">>): Promise<readonly CaseReport[]>Runs every case the stores made by make are held to, and reports each.