pub async fn a_read_never_cuts_a_group<F>(
open: impl AsyncFn() -> F,
) -> Result<RuleOutcome, Violation>where
F: IngestFixture,
F::Store: WriteGroupStore,Expand description
SY-39: a read never returns part of a group. It stops before the group
that would take the page past max_events, and returns a first group
whole however large it is.
Appends of two, three and two events. read_groups(None, 4) returns the
first group alone, because the second would take the page to five; then
read_groups(after = its first, 1) returns the three-event group whole.
§Rejects
A store that fills a page by event and cuts the group that crosses it, one that skips a first group larger than the page, and one that resumes above a row position rather than a group’s first, which hands back a group’s tail as if it were a group.
§Errors
A Violation of SY-39 if the store refuses a write or a read, or a
page carries other groups.