v0.1.3-pre.011-fix.001

This commit is contained in:
2026-08-16 04:44:25 +02:00
parent 274428bd2f
commit 6a13cea614
3 changed files with 46 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-config-lib/unit_tests/environment.rs
// version: 3
// version: 4
#[test]
fn process_environment_wins_over_dotenv_and_fallback_even_when_empty() {
@@ -356,7 +356,7 @@ fn detailed_profile_environment_keeps_global_origin_and_adds_environment_provena
assert_eq!(effective.value()["logs_directory"], serde_json::Value::String("logs".to_owned()));
assert_eq!(effective.safe_value()["logs_directory"], serde_json::Value::String("logs".to_owned()));
assert_eq!(
effective.provenance_at("/logs_directory").and_then(|items| items.last()).and_then(crate::ConfigValueProvenance::variable_name),
effective.provenance_at("/logs_directory").and_then(|items| return items.last()).and_then(crate::ConfigValueProvenance::variable_name),
std::option::Option::Some("KSP_LOGS_DIRECTORY"),
);
}