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

Function test_add_root

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected