Fix warning

This commit is contained in:
Mikayla Maki 2023-06-07 16:45:36 -07:00
parent 5f143f689f
commit 9d58c4526d
No known key found for this signature in database

View file

@ -5409,31 +5409,31 @@ mod tests {
panic!();
check_propagated_statuses(
&snapshot,
&[
(Path::new("a/b"), Some(GitFileStatus::Added)),
(Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)),
(Path::new("a/b/c2.txt"), None),
(Path::new("a/d"), Some(GitFileStatus::Modified)),
(Path::new("a/d/e1.txt"), None),
(Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)),
(Path::new("f"), None),
(Path::new("f/no-status.txt"), None),
(Path::new("g"), Some(GitFileStatus::Conflict)),
],
);
// check_propagated_statuses(
// &snapshot,
// &[
// (Path::new("a/b"), Some(GitFileStatus::Added)),
// (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)),
// (Path::new("a/b/c2.txt"), None),
// (Path::new("a/d"), Some(GitFileStatus::Modified)),
// (Path::new("a/d/e1.txt"), None),
// (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)),
// (Path::new("f"), None),
// (Path::new("f/no-status.txt"), None),
// (Path::new("g"), Some(GitFileStatus::Conflict)),
// ],
// );
check_propagated_statuses(
&snapshot,
&[
(Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)),
(Path::new("a/b/c2.txt"), None),
(Path::new("a/d/e1.txt"), None),
(Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)),
(Path::new("f/no-status.txt"), None),
],
);
// check_propagated_statuses(
// &snapshot,
// &[
// (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)),
// (Path::new("a/b/c2.txt"), None),
// (Path::new("a/d/e1.txt"), None),
// (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)),
// (Path::new("f/no-status.txt"), None),
// ],
// );
#[track_caller]
fn check_propagated_statuses(