Path: redb/redb.Tests.Integration/Fixtures/ProTestOptions.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Fixtures/ProTestOptions.cs
----
namespace redb.Tests.Integration.Fixtures;
///
/// Knobs the Pro fixtures read from the environment, so the whole suite can be replayed under a
/// different engine configuration without editing code.
///
internal static class ProTestOptions
{
///
/// REDB_PVT_PREFILTER=1|true|on|yes enables the PVT prefilter. Off when the variable is unset,
/// although RedbServiceConfiguration.EnablePvtPrefilter defaults to true: the fixtures set
/// the flag explicitly, so each pass runs the form it names.
///
/// The prefilter is built as a superset and must not change a single result, so BOTH passes are
/// expected to be green and identical. A test that passes with it off and fails with it on is a
/// bug in the prefilter, never a reason to relax the test.
///
public static bool PvtPrefilter =>
(Environment.GetEnvironmentVariable("REDB_PVT_PREFILTER") ?? string.Empty).Trim().ToLowerInvariant()
is "1" or "true" or "on" or "yes";
}