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

Source from the content-addressed store, hash-verified

1119
1120 #[test]
1121 fn test_atom_count_edit() {
1122 let graph_op: GraphOp<Hash> = GraphOp::Edit {
1123 change: Atom::Insertion(test_new_vertex()),
1124 local: Local::new("file.rs", 1),
1125 encoding: None,
1126 };
1127
1128 assert_eq!(graph_op.atom_count(), 1);
1129 assert_eq!(graph_op.atoms().count(), 1);
1130 }
1131
1132 #[test]
1133 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