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

Function test_add_root

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

Source from the content-addressed store, hash-verified

763
764 #[test]
765 fn test_add_root() {
766 let graph_op: GraphOp<Hash> = GraphOp::AddRoot {
767 name: test_new_vertex(),
768 inode: test_new_vertex(),
769 };
770
771 assert!(graph_op.is_root_operation());
772 assert!(!graph_op.is_file_operation());
773 assert_eq!(graph_op.path(), None);
774 }
775
776 // Display Tests
777

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected