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

Function test_atom_count_edit

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

Source from the content-addressed store, hash-verified

1134
1135 #[test]
1136 fn test_atom_count_edit() {
1137 let graph_op: GraphOp<Hash> = GraphOp::Edit {
1138 change: Atom::Insertion(test_new_vertex()),
1139 local: Local::new("file.rs", 1),
1140 encoding: None,
1141 };
1142
1143 assert_eq!(graph_op.atom_count(), 1);
1144 assert_eq!(graph_op.atoms().count(), 1);
1145 }
1146
1147 #[test]
1148 fn test_atom_count_replacement() {

Callers

nothing calls this directly

Calls 2

InsertionClass · 0.85
test_new_vertexFunction · 0.70

Tested by

no test coverage detected