Skip to main content

read_to_under_backwards_bounds_the_older_end

Function read_to_under_backwards_bounds_the_older_end 

pub async fn read_to_under_backwards_bounds_the_older_end<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

Under backwards, to bounds the older end.

ES-16 and VT-29: from remains the starting (higher) bound and to the stopping (lower) one — the two swap roles in position order, not in meaning. from is deliberately left unset so that this rule turns on the swap alone; read_backwards_from_with_limit already owns the other half.

It rejects BackwardsToIsAnUpperBoundStore, which is WHERE position <= ? copied verbatim into the backwards branch. ES-8’s Rejects: describes exactly that shape for from; this is the same mistake one bound over. That store is correct reading forwards, so it passes both rules above and this is the only thing in the suite that sees it — which is what earns this rule its place beside them. ToBoundIgnoredStore, ToIsExclusiveStore and BackwardsIgnoredStore fail it too, from three other directions.