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

Function test_add_root

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

Source from the content-addressed store, hash-verified

1046
1047 #[test]
1048 fn test_add_root() {
1049 let graph_op: GraphOp<Hash> = GraphOp::AddRoot {
1050 name: test_new_vertex(),
1051 inode: test_new_vertex(),
1052 };
1053
1054 assert!(graph_op.is_root_operation());
1055 assert!(!graph_op.is_file_operation());
1056 assert_eq!(graph_op.path(), None);
1057 }
1058
1059 // Display Tests
1060

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected