Skip to content

Commit fbca21b

Browse files
authored
test(git): Clean up shallow fetch tests (#15002)
### What does this PR try to resolve? When looking to add shallow fetch for the git CLI, I found it hard to tell what we test. This tries to clean up the tests and make it easier to add new ones. My hope is to later generalize the test bodies so we can more easily test any git backend in any combination of shallow or deep fetches. This is part of #13285. ### How should we test and review this PR? ### Additional information
2 parents 0200aa0 + 2438807 commit fbca21b

File tree

2 files changed

+207
-215
lines changed

2 files changed

+207
-215
lines changed

crates/cargo-test-support/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,12 @@ impl ArgLineCommandExt for &mut ProcessBuilder {
15241524
}
15251525
}
15261526

1527+
impl ArgLineCommandExt for &mut Execs {
1528+
fn arg<S: AsRef<std::ffi::OsStr>>(self, s: S) -> Self {
1529+
self.arg(s)
1530+
}
1531+
}
1532+
15271533
impl ArgLineCommandExt for snapbox::cmd::Command {
15281534
fn arg<S: AsRef<std::ffi::OsStr>>(self, s: S) -> Self {
15291535
self.arg(s)

0 commit comments

Comments
 (0)