mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-06 07:28:23 +00:00
Add tests/common/purgatory_helpers.rs with utilities for purgatory sync integration tests: - Git repository setup helpers (create_test_repo_with_commit, add_commit_to_repo, create_branch) for deterministic test commits - State event creation (create_state_event) for kind 30618 events with refs/heads/*, refs/tags/*, and HEAD tags - PR event creation (create_pr_event) for kind 1618 events with a and c tags - Purgatory state inspection helpers (wait_for_event_served, verify_event_not_served) for polling event availability - Git ref verification (check_ref_at_commit) for validating remote refs - Push helper (push_to_relay) for pushing local repos to relay All helpers include comprehensive unit tests verifying correct tag structure and git operations.
12 lines
336 B
Rust
12 lines
336 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 purgatory_helpers;
|
|
pub mod relay;
|
|
pub mod sync_helpers;
|
|
|
|
pub use purgatory_helpers::*;
|
|
pub use relay::TestRelay;
|
|
pub use sync_helpers::*;
|