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

Function test_block_not_found_error

atomic-core/src/apply/insertion.rs:677–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675
676 #[test]
677 fn test_block_not_found_error() {
678 let pos = Position {
679 change: NodeId::new(42),
680 pos: ChangePosition::new(100),
681 };
682 let error = LocalApplyError::BlockNotFound { position: pos };
683
684 match error {
685 LocalApplyError::BlockNotFound { position } => {
686 assert_eq!(position.change, NodeId::new(42));
687 }
688 _ => panic!("Wrong error type"),
689 }
690 }
691}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected