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

Function test_zombie_conflict_add_changes

atomic-core/src/apply/conflict.rs:501–510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499
500 #[test]
501 fn test_zombie_conflict_add_changes() {
502 let node = make_vertex(42, 0, 10);
503 let mut zombie = ZombieConflict::new(node);
504
505 zombie.add_deleted_by(NodeId::new(100));
506 zombie.add_connected_by(NodeId::new(200));
507
508 assert_eq!(zombie.deleted_by.len(), 1);
509 assert_eq!(zombie.connected_by.len(), 1);
510 }
511
512 #[test]
513 fn test_zombie_conflict_no_duplicates() {

Callers

nothing calls this directly

Calls 3

add_deleted_byMethod · 0.80
add_connected_byMethod · 0.80
make_vertexFunction · 0.70

Tested by

no test coverage detected