From a287f53132c91eaa3ba8d5e9c2bec80587316aad Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 28 Oct 2025 13:19:24 +0000 Subject: test: refactor to use rstest more efficient test runs Identified high value areas to use rstest that would benefit most and refactored them --- tests/git_remote_nostr/main.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/git_remote_nostr/main.rs') diff --git a/tests/git_remote_nostr/main.rs b/tests/git_remote_nostr/main.rs index fc541f8..4a17934 100644 --- a/tests/git_remote_nostr/main.rs +++ b/tests/git_remote_nostr/main.rs @@ -13,6 +13,19 @@ mod fetch; mod list; mod push; +// Scenario result structs - hold immutable state from expensive setup +// operations + +#[derive(Clone)] +pub struct TwoBranchesScenario { + pub main_commit_id: String, + pub vnext_commit_id: String, + pub main_on_server: bool, + pub vnext_on_server: bool, + pub main_remote_ref_matches: bool, + pub vnext_remote_ref_matches: bool, +} + static NOSTR_REMOTE_NAME: &str = "nostr"; static STATE_KIND: nostr::Kind = Kind::Custom(30618); -- cgit v1.2.3