MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_root_file

Function test_root_file

atomic-core/src/change/local.rs:468–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467 #[test]
468 fn test_root_file() {
469 let local = Local::new("Cargo.toml", 1);
470 assert_eq!(local.file_name(), Some("Cargo.toml"));
471 // Parent of a root-level file
472 assert_eq!(local.parent(), Some(""));
473 }
474
475 #[test]
476 fn test_deep_path() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected