MCPcopy Create free account
hub / github.com/douglance/devsql / test_create_backup_path

Function test_create_backup_path

crates/ccql/src/sql/safety.rs:284–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282
283 #[test]
284 fn test_create_backup_path() {
285 let path = PathBuf::from("/data/history.jsonl");
286 let backup = create_backup_path(&path);
287 assert_eq!(backup, PathBuf::from("/data/history.jsonl.bak"));
288
289 let path = PathBuf::from("/data/stats.json");
290 let backup = create_backup_path(&path);
291 assert_eq!(backup, PathBuf::from("/data/stats.json.bak"));
292 }
293}

Callers

nothing calls this directly

Calls 1

create_backup_pathFunction · 0.85

Tested by

no test coverage detected