Documentation
¶
Overview ¶
package: tests/matrix / conformance type: test job: the cross-backend agreement matrix — build one deterministic archive into every available backend, run the shared RQL corpus against each, and assert every backend's answer matches the reference's limits: correctness only, never timing (-> tests/performance); it asks whether an answer is right, never how a backend produced it — routing, lowering, and cache tiers are the backend's business
Two backends must answer a query identically; a divergence is a conformance bug in at least one. Run it over your own rows with matrix.Run(t, Config{Rows: ...}).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseFixtures ¶
func CloseFixtures()
CloseFixtures releases every shared archive. TestMain calls it once the run is over: the instances outlive the tests that built them, so no test can close them.
func Each ¶
Each runs check over every row this run asks for, against the archive r builds — the package's one row iteration.
func Opens ¶
func Opens() int
Opens counts the backends opened for fixtures so far. A test asserts on it, so a change that reopens a row per test shows up as a number rather than as minutes.
Types ¶
type Config ¶
type Config struct {
// Reference is the engine every row is compared against; the zero value is
// backends.Reference(), the in-memory store on the reference executor.
Reference *backends.Backend
// Rows are the backends under test; nil means the set the run asks for. The row
// named like the reference drops out — nothing is compared to itself.
Rows []backends.Backend
// Size is the generator size knob; 0 means defaultSize.
Size int
// Only narrows the run to the one corpus entry with this name — the focus
// mode for isolating a single divergence. Empty runs the whole corpus.
Only string
}
Config parameterises an agreement run.