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

Function test_new_edge_is_deletion

atomic-core/src/apply/edge.rs:503–514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501
502 #[test]
503 fn test_new_edge_is_deletion() {
504 let hash = Hash::of(b"test");
505 let deletion_edge = NewEdge {
506 previous: EdgeFlags::BLOCK,
507 flag: EdgeFlags::BLOCK | EdgeFlags::DELETED,
508 from: make_position(Some(hash), 0),
509 to: make_external_vertex(Some(hash), 10, 20),
510 introduced_by: Some(hash),
511 };
512
513 assert!(deletion_edge.is_deletion());
514 }
515
516 #[test]
517 fn test_new_edge_is_undeletion() {

Callers

nothing calls this directly

Calls 2

make_positionFunction · 0.70
make_external_vertexFunction · 0.70

Tested by

no test coverage detected