test(db): guard EventQuery parity vector coverage

Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh
2026-08-10 12:43:27 -04:00
committed by Brother Darryl
parent 236539c502
commit 336787a368
+31
View File
@@ -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,