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

Function test_block_not_found_error

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

Source from the content-addressed store, hash-verified

712
713 #[test]
714 fn test_block_not_found_error() {
715 let pos = make_internal_position(NodeId::new(42), 100);
716 let error = LocalApplyError::BlockNotFound { position: pos };
717
718 match error {
719 LocalApplyError::BlockNotFound { position } => {
720 assert_eq!(position.change, NodeId::new(42));
721 assert_eq!(position.pos, ChangePosition::new(100));
722 }
723 _ => panic!("Wrong error type"),
724 }
725 }
726
727 #[test]
728 fn test_dependency_missing_error() {

Callers

nothing calls this directly

Calls 1

make_internal_positionFunction · 0.70

Tested by

no test coverage detected