0.0.2-alpha.3.fix.1

This commit is contained in:
2026-09-28 22:30:15 +02:00
parent 721e8a6d9c
commit b9508b0228
11 changed files with 538 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/knowledge-git-api/unit_tests/lib.rs
// version: 2
// version: 3
#[derive(Debug, Eq, PartialEq)]
struct FakeGitError;
@@ -40,9 +40,6 @@ fn generic_repository_contract_does_not_require_a_forge() {
Err(_) => return,
};
let snapshot_result = crate::GitRepository::prepare_snapshot(&repository, &source_id, &revision);
assert_eq!(
snapshot_result,
Ok(crate::GitSnapshot::new(revision, std::path::PathBuf::from("/controlled/snapshot")))
);
assert_eq!(snapshot_result, Ok(crate::GitSnapshot::new(revision, std::path::PathBuf::from("/controlled/snapshot"))));
return;
}

View File

@@ -1,5 +1,7 @@
// file: crates/knowledge-git-lib/tests/git_read_path.rs
// version: 1
// version: 2
//! Integration tests for the real generic Git read path using local temporary repositories.
fn test_root(label: &str) -> std::path::PathBuf {
let nanos_result = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH);