test(git): Collect tests that use the same body

This commit is contained in:
Ed Page 2024-12-18 10:58:44 -06:00
parent 0200aa0d63
commit 48e8a718ec

View File

@ -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<()> {