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

Function test_atom_count_replacement

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

Source from the content-addressed store, hash-verified

1131
1132 #[test]
1133 fn test_atom_count_replacement() {
1134 let graph_op: GraphOp<Hash> = GraphOp::Replacement {
1135 change: test_edge_map(),
1136 replacement: test_new_vertex(),
1137 local: Local::new("file.rs", 1),
1138 encoding: None,
1139 };
1140
1141 assert_eq!(graph_op.atom_count(), 2);
1142 assert_eq!(graph_op.atoms().count(), 2);
1143 }
1144
1145 // Serialization Tests
1146

Callers

nothing calls this directly

Calls 2

test_edge_mapFunction · 0.85
test_new_vertexFunction · 0.70

Tested by

no test coverage detected