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

Source from the content-addressed store, hash-verified

890
891 #[test]
892 fn test_block_not_found_error() {
893 let pos = make_internal_position(NodeId::new(42), 100);
894 let error = LocalApplyError::BlockNotFound { position: pos };
895
896 match error {
897 LocalApplyError::BlockNotFound { position } => {
898 assert_eq!(position.change, NodeId::new(42));
899 assert_eq!(position.pos, ChangePosition::new(100));
900 }
901 _ => panic!("Wrong error type"),
902 }
903 }
904
905 #[test]
906 fn test_dependency_missing_error() {

Callers

nothing calls this directly

Calls 1

make_internal_positionFunction · 0.70

Tested by

no test coverage detected