mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test(git): Collect tests that use the same body
This commit is contained in:
parent
0200aa0d63
commit
48e8a718ec
@ -14,6 +14,11 @@ fn gitoxide_clones_shallow_two_revs_same_deps() {
|
|||||||
perform_two_revs_same_deps(true)
|
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) {
|
fn perform_two_revs_same_deps(shallow: bool) {
|
||||||
let bar = git::new("meta-dep", |project| {
|
let bar = git::new("meta-dep", |project| {
|
||||||
project
|
project
|
||||||
@ -106,11 +111,6 @@ fn perform_two_revs_same_deps(shallow: bool) {
|
|||||||
foo.process(&foo.bin("foo")).run();
|
foo.process(&foo.bin("foo")).run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cargo_test]
|
|
||||||
fn two_revs_same_deps() {
|
|
||||||
perform_two_revs_same_deps(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch(
|
fn gitoxide_clones_registry_with_shallow_protocol_and_follow_up_with_git2_fetch(
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user