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:849–859  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

847
848 #[test]
849 fn test_atom_count_replacement() {
850 let graph_op: GraphOp<Hash> = GraphOp::Replacement {
851 change: test_edge_map(),
852 replacement: test_new_vertex(),
853 local: Local::new("file.rs", 1),
854 encoding: None,
855 };
856
857 assert_eq!(graph_op.atom_count(), 2);
858 assert_eq!(graph_op.atoms().count(), 2);
859 }
860
861 // Serialization Tests
862

Callers

nothing calls this directly

Calls 2

test_edge_mapFunction · 0.85
test_new_vertexFunction · 0.70

Tested by

no test coverage detected