0.0.3-alpha.3.fix.1

This commit is contained in:
2026-09-29 13:33:00 +02:00
parent c3a825657d
commit aca00e6595
6 changed files with 312 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/knowledge-git-lib/tests/git_write_candidate.rs
// version: 1
// version: 2
//! Integration tests for isolated real Git candidate creation using local temporary repositories.
@@ -250,7 +250,7 @@ fn candidate_commit_applies_exact_mutations_uses_explicit_identity_and_cleans_wo
let source_key = knowledge_git_lib::GitSourceKey::from_source_id(&source_id);
assert!(!backend.config().write_worktrees_path().join(source_key.as_str()).join("candidate").exists());
let snapshot_content = std::fs::read_to_string(snapshot.path().join("content.txt"));
assert_eq!(snapshot_content, Ok(String::from("first\n")));
assert!(matches!(snapshot_content.as_deref(), Ok("first\n")));
assert!(snapshot.path().join("delete.txt").is_file());
let _ = std::fs::remove_dir_all(&root);
return;