MODEL_SEEDSconstconst MODEL_SEEDS: readonly [1, 2, 3, 4, 5]The seeds of the model cases the suite runs.
The conformance suite of AnyFS POSIX: the cases every view of a store passes, each needing and lacking named capabilities, and the functions that choose and run them. A test calls runPosixConformance with a function that makes a new world over an empty store, and the suite runs every case whose capabilities the store has and says which failed and how.
import { runPosixConformance } from "./mod.ts";
// const report = await runPosixConformance(async () => ({ posix: posix(memoryStore()) }))
// report.filter((r) => r.failure !== undefined) // the cases that failedMODEL_SEEDSconstconst MODEL_SEEDS: readonly [1, 2, 3, 4, 5]The seeds of the model cases the suite runs.
MODEL_STEPSconstconst MODEL_STEPS: 250The 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">, traced?: boolean): readonly Case[]The cases a store with these capabilities is held to: those whose needs it has and whose lacks it does not, and those that need a trace only where it records one.
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 worlds made by make: its report, with the failure as a sentence.
runPosixConformancefunctionfunction runPosixConformance(make: Make): Promise<readonly CaseReport[]>Runs every case a view is held to: the capabilities and the trace are read from a first world.