Skip to main content

Module testkit

Module testkit 

Source
Expand description

Test-mode GUC framework (v7.38 P0 元机制 D).

Frozen-at-init env-var snapshot that lets tests pin nondeterministic surfaces (cost-based plans, EXPLAIN timing, RNG seeds, …) without resorting to #[ignore] / retry. Production builds default every field to its EnvConfig::default() value — the optimiser can const-fold every if env_cfg.<field> branch away.

Design doc: .claude/notes/v7.38-test-mode-gucs-design.md. Index of acceptors / tests: xtests/sigil/test-mode-gucs.md.

Re-exports§

pub use env_config::ComputeQueryId;
pub use env_config::EnvConfig;
pub use env_config::EnvConfigBuilder;

Modules§

env_config
Test-mode GUC snapshot — frozen at engine init.
injection
v7.38 P0 元机制 A — injection_points framework.