From 336787a3683701a0baa3dc5cf398bb9800660778 Mon Sep 17 00:00:00 2001 From: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz> Date: Mon, 3 Aug 2026 12:45:03 -0400 Subject: [PATCH] test(db): guard EventQuery parity vector coverage Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz> --- crates/buzz-db/src/event.rs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/crates/buzz-db/src/event.rs b/crates/buzz-db/src/event.rs index 47d8f2ebd..3a0b66e34 100644 --- a/crates/buzz-db/src/event.rs +++ b/crates/buzz-db/src/event.rs @@ -141,6 +141,37 @@ pub(crate) struct EventQueryParityFixture { /// Shared EventQuery conformance vectors. Both database backends execute this /// identical filter/cursor/order/count contract against their own fixtures. +/// +/// This exhaustive pattern is intentional: adding an `EventQuery` field fails +/// compilation here until its parity-vector treatment is added or consciously +/// acknowledged. +#[cfg(test)] +#[allow(dead_code)] +fn event_query_parity_vectors_cover_all_fields( + EventQuery { + community_id: _, + channel_id: _, + kinds: _, + pubkey: _, + since: _, + until: _, + limit: _, + offset: _, + p_tag_hex: _, + d_tag: _, + d_tags: _, + before_id: _, + global_only: _, + authors: _, + ids: _, + e_tags: _, + channel_ids: _, + max_limit: _, + shared_gated_reader: _, + }: EventQuery, +) { +} + #[cfg(test)] pub(crate) fn event_query_parity_vectors( community_id: CommunityId,