MCPcopy Create free account
hub / github.com/GCWing/BitFun / create_rotating_writer_creates_expected_files

Function create_rotating_writer_creates_expected_files

src/apps/cli/src/logging.rs:413–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412 #[test]
413 fn create_rotating_writer_creates_expected_files() {
414 let temp = tempfile::tempdir().expect("tempdir");
415 create_rotating_writer(temp.path(), "app").expect("app writer");
416 create_rotating_writer(temp.path(), "ai").expect("ai writer");
417 create_rotating_writer(temp.path(), "flashgrep").expect("flashgrep writer");
418
419 assert!(temp.path().join("app.log").exists());
420 assert!(temp.path().join("ai.log").exists());
421 assert!(temp.path().join("flashgrep.log").exists());
422 }
423
424 #[test]
425 fn target_filter_rules_match_desktop_defaults() {

Callers

nothing calls this directly

Calls 2

create_rotating_writerFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected