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

Function get_external_failure_propagates

atomic-core/src/merge/engine.rs:821–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

819
820 #[test]
821 fn get_external_failure_propagates() {
822 let mut txn = MockTxn::new();
823 txn.fail_external = Some(NodeId::new(99));
824 let store = MemoryChangeStore::new();
825 let engine = SemanticMergeEngine::new(&txn, &store);
826 let vertex = GraphNode::new(
827 NodeId::new(99),
828 ChangePosition::new(0),
829 ChangePosition::new(5),
830 );
831
832 let error = engine
833 .try_merge(&ConflictGroup::new(vec![vertex]))
834 .expect_err("get_external failure must propagate");
835 assert!(matches!(
836 error,
837 SemanticMergeError::Pristine(PristineError::Inconsistent { .. })
838 ));
839 }
840
841 #[test]
842 fn change_store_failure_propagates() {

Callers

nothing calls this directly

Calls 1

try_mergeMethod · 0.45

Tested by

no test coverage detected