The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
test(logs): the level names round-trip
Jareerdc7a925587ed
diff --git a/src/crates/concat-host/src/logs.rs b/src/crates/concat-host/src/logs.rsindex e05d39c7..99f485ce 100644--- a/src/crates/concat-host/src/logs.rs+++ b/src/crates/concat-host/src/logs.rs@@ -465,4 +465,23 @@ mod tests {let dirs = AppDirs::under(Path::new("/tmp/concat-test"));assert_eq!(folder(&dirs), Path::new("/tmp/concat-test/logs"));}++ /// Every level the sheet offers reads back under the name it is kept+ /// as, in any case, and a name that is no level is None.+ #[test]+ fn level_names_round_trip() {+ for level in [+ log::LevelFilter::Error,+ log::LevelFilter::Warn,+ log::LevelFilter::Info,+ log::LevelFilter::Debug,+ log::LevelFilter::Trace,+ log::LevelFilter::Off,+ ] {+ assert_eq!(level_named(level_name(level)), Some(level));+ }+ assert_eq!(level_named(" DEBUG "), Some(log::LevelFilter::Debug));+ assert_eq!(level_named("loud"), None);+ assert_eq!(level_named(""), None);+ }}