diff options
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 | ||