Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Codecov status gates. Patch coverage must be at least 90%, and project coverage
# must never drop against the base (0% tolerance) - so a change can only hold or
# raise the line. ci.yml enforces a matching floor via `--fail-under-lines`.
# allows 0.1% tolerance against the base to absorb minor dep or compiler jitter.
# ci.yml enforces a matching floor via fail-under-lines.
coverage:
status:
project:
default:
target: auto
threshold: 0%
threshold: 0.1%
patch:
default:
target: 90%
17 changes: 17 additions & 0 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2981,6 +2981,23 @@ mod tests {
assert!(is_auth_failure(&error));
}

#[tokio::test]
async fn clean_staging_handles_missing_path_and_reports_errors() {
let root = tempfile::tempdir().unwrap();
clean_staging(&root.path().join("missing")).await.unwrap();
let dir = root.path().join("staging");
tokio::fs::create_dir(&dir).await.unwrap();
clean_staging(&dir).await.unwrap();
assert!(!dir.exists());
let file = root.path().join("file");
tokio::fs::write(&file, b"test").await.unwrap();
let err = clean_staging(&file).await.unwrap_err();
assert!(
err.to_string()
.contains("remove upstream clone staging directory")
);
}

#[test]
fn upstream_retry_classifies_transient_diagnostics() {
for message in [
Expand Down
Loading