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

Function test_empty_path

atomic-core/src/change/graph_op.rs:1210–1220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1208
1209 #[test]
1210 fn test_empty_path() {
1211 let graph_op: GraphOp<Hash> = GraphOp::FileAdd {
1212 add_name: test_new_vertex(),
1213 add_inode: test_new_vertex(),
1214 contents: None,
1215 path: String::new(),
1216 encoding: None,
1217 };
1218
1219 assert_eq!(graph_op.path(), Some(""));
1220 }
1221
1222 #[test]
1223 fn test_deep_path() {

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected