diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-05 10:11:25 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-05 10:11:25 +0100 |
| commit | 8e4e3e56a1806ae37941a6498a01f00e5361e9a8 (patch) | |
| tree | 887ce8aabbaaab098931d9d8374de7ae57f09e7f /test_utils/src/lib.rs | |
| parent | 05801e572cad050eeec557643064f7e8aa026aaa (diff) | |
test(remote): run `list for-push` before `push`
because this is how git uses the git remote helper
Diffstat (limited to 'test_utils/src/lib.rs')
| -rw-r--r-- | test_utils/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 2e7a4e8..f463652 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -792,6 +792,17 @@ impl CliTester { | |||
| 792 | Ok(before) | 792 | Ok(before) |
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | pub fn expect_eventually_and_print<S>(&mut self, message: S) -> Result<String> | ||
| 796 | where | ||
| 797 | S: Into<String>, | ||
| 798 | { | ||
| 799 | let message_string = message.into(); | ||
| 800 | let message = message_string.as_str(); | ||
| 801 | let before = self.exp_string(message).context("exp_string failed")?; | ||
| 802 | println!("{before}"); | ||
| 803 | Ok(before) | ||
| 804 | } | ||
| 805 | |||
| 795 | pub fn expect_after_whitespace<S>(&mut self, message: S) -> Result<&mut Self> | 806 | pub fn expect_after_whitespace<S>(&mut self, message: S) -> Result<&mut Self> |
| 796 | where | 807 | where |
| 797 | S: Into<String>, | 808 | S: Into<String>, |