mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
test(db): guard EventQuery parity vector coverage
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
parent
236539c502
commit
336787a368
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user