Files
ngit-grasp/tests/common/mod.rs
T
DanConwayDev 0984acc93e test(nip09): dedupe helpers into common, consolidate basic tests
Extract the duplicated publish_served_repo, announcement_served_by_coordinate,
announcement_coordinate and build_deletion helpers (~250 lines copied verbatim
across both NIP-09 suites) into tests/common/nip09_helpers.rs.

Move the normal_mode_honours_deletion baseline from nip09_disrespector.rs into
nip09_validation.rs so all basic NIP-09 validation tests live together; the
disrespector suite now owns only the disrespector-specific behaviour
(accept-but-ignore, NIP-11 advertisement).
2026-06-17 09:59:09 +00:00

20 lines
572 B
Rust

//! Common test utilities
#![allow(dead_code)] // Test helpers may not be used in all test configurations
#![allow(unused_imports)] // Re-exports may not be used in all test configurations
pub mod git_server;
pub mod mock_relay;
pub mod nip09_helpers;
pub mod port;
pub mod purgatory_helpers;
pub mod relay;
pub mod sync_helpers;
pub use git_server::{SimpleGitServer, SmartGitServer};
pub use mock_relay::MockRelay;
pub use nip09_helpers::*;
pub use port::{reserve_port, PortReservation};
pub use purgatory_helpers::*;
pub use relay::TestRelay;
pub use sync_helpers::*;