MCPcopy Create free account
hub / github.com/clawshell/clawshell / test_log_file_path

Function test_log_file_path

src/process.rs:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71 #[test]
72 fn test_log_file_path() {
73 let path = log_file_path();
74 let path_str = path.to_str().unwrap();
75 assert!(path_str.contains("clawshell.log"));
76 assert!(
77 path_str.starts_with("/var/log/"),
78 "Log path should be under /var/log, got: {}",
79 path_str
80 );
81 }
82
83 #[test]
84 fn test_default_config_path() {

Callers

nothing calls this directly

Calls 1

log_file_pathFunction · 0.70

Tested by

no test coverage detected