0.0.2-alpha.2.fix.2

This commit is contained in:
2026-09-28 17:06:45 +02:00
parent ffb47214af
commit 38025266b9
7 changed files with 376 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/knowledge-git-lib/unit_tests/backend.rs
// version: 2
// version: 3
#[derive(Clone)]
struct RecordingRunner {
@@ -82,7 +82,7 @@ fn source_key_never_interpolates_raw_source_identifier_as_a_path() {
};
let key = crate::GitSourceKey::from_source_id(&source_id);
assert!(key.as_str().starts_with("source-"));
assert!(key.as_str().chars().all(|character| character.is_ascii_alphanumeric() || character == '-'));
assert!(key.as_str().chars().all(|character| return character.is_ascii_alphanumeric() || character == '-'));
assert!(!key.as_str().contains("pgr"));
assert!(!key.as_str().contains(".."));
return;