diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-28 13:19:24 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-10-28 13:19:24 +0000 |
| commit | a287f53132c91eaa3ba8d5e9c2bec80587316aad (patch) | |
| tree | 54a3237486b435f4f798d1af01d6340c8a626bb4 /tests/git_remote_nostr/main.rs | |
| parent | dcbe6f9d9e14290c856b0118ab17f3be804ac14e (diff) | |
test: refactor to use rstest more efficient test runs
Identified high value areas to use rstest that would benefit most and
refactored them
Diffstat (limited to 'tests/git_remote_nostr/main.rs')
| -rw-r--r-- | tests/git_remote_nostr/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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; | |||
| 13 | mod list; | 13 | mod list; |
| 14 | mod push; | 14 | mod push; |
| 15 | 15 | ||
| 16 | // Scenario result structs - hold immutable state from expensive setup | ||
| 17 | // operations | ||
| 18 | |||
| 19 | #[derive(Clone)] | ||
| 20 | pub struct TwoBranchesScenario { | ||
| 21 | pub main_commit_id: String, | ||
| 22 | pub vnext_commit_id: String, | ||
| 23 | pub main_on_server: bool, | ||
| 24 | pub vnext_on_server: bool, | ||
| 25 | pub main_remote_ref_matches: bool, | ||
| 26 | pub vnext_remote_ref_matches: bool, | ||
| 27 | } | ||
| 28 | |||
| 16 | static NOSTR_REMOTE_NAME: &str = "nostr"; | 29 | static NOSTR_REMOTE_NAME: &str = "nostr"; |
| 17 | static STATE_KIND: nostr::Kind = Kind::Custom(30618); | 30 | static STATE_KIND: nostr::Kind = Kind::Custom(30618); |
| 18 | 31 | ||