v0.1.4-pre.015-fix.003
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-config-lib/unit_tests/logging.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
#[test]
|
||||
fn fixture_logging_profile_maps_complete_runtime_contract() {
|
||||
@@ -316,29 +316,6 @@ fn resolved_logging_debug_uses_safe_effective_view() {
|
||||
}
|
||||
}
|
||||
|
||||
fn assert_file(
|
||||
file: &ksp_logging_lib::FileSettings,
|
||||
output_id: &str,
|
||||
directory: &std::path::Path,
|
||||
file_name: &str,
|
||||
rotation: ksp_logging_lib::FileRotation,
|
||||
format: ksp_logging_lib::LogFormat,
|
||||
level: ksp_logging_lib::LogFilterLevel,
|
||||
targets: &[&str],
|
||||
domains: &[&str],
|
||||
) {
|
||||
assert_eq!(file.output_id(), output_id);
|
||||
assert!(file.enabled());
|
||||
assert_eq!(file.directory(), directory);
|
||||
assert_eq!(file.file_name_prefix(), file_name);
|
||||
assert_eq!(file.rotation(), rotation);
|
||||
assert_eq!(file.format(), format);
|
||||
assert!(!file.ansi());
|
||||
assert_eq!(file.filter().level(), level);
|
||||
assert_eq!(file.filter().targets().iter().map(String::as_str).collect::<std::vec::Vec<&str>>(), targets.to_vec());
|
||||
assert_eq!(file.filter().domains().iter().map(String::as_str).collect::<std::vec::Vec<&str>>(), domains.to_vec());
|
||||
}
|
||||
|
||||
fn fixture_engine() -> ksp_core_lib::Result<crate::ConfigDocumentEngine> {
|
||||
let workspace = workspace_root();
|
||||
let fixture_root = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("unit_tests/fixtures");
|
||||
|
||||
Reference in New Issue
Block a user