From 48e8a718ecceb42c6648a2c7ce7efa8d2c37161b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 18 Dec 2024 10:58:44 -0600 Subject: [PATCH] test(git): Collect tests that use the same body --- tests/testsuite/git_shallow.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testsuite/git_shallow.rs b/tests/testsuite/git_shallow.rs index 6a45621e6..df4be1149 100644 --- a/tests/testsuite/git_shallow.rs +++ b/tests/testsuite/git_shallow.rs @@ -14,6 +14,11 @@ fn gitoxide_clones_shallow_two_revs_same_deps() { perform_two_revs_same_deps(true) } +#[cargo_test] +fn two_revs_same_deps() { + perform_two_revs_same_deps(false) +} + fn perform_two_revs_same_deps(shallow: bool) { let bar = git::new("meta-dep", |project| { project @@ -106,11 +111,6 @@ fn perform_two_revs_same_deps(shallow: bool) { foo.process(&foo.bin("foo")).run(); } -#[cargo_test] -fn two_revs_same_deps() { - perform_two_revs_same_deps(false) -} - #[cargo_test] fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch( ) -> anyhow::Result<()> {