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

Function test_internal_error_structure

atomic-core/src/apply/position.rs:562–573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560
561 #[test]
562 fn test_internal_error_structure() {
563 let error = LocalApplyError::Internal {
564 message: "Test error message".to_string(),
565 };
566
567 match error {
568 LocalApplyError::Internal { message } => {
569 assert!(message.contains("Test error"));
570 }
571 _ => panic!("Wrong error type"),
572 }
573 }
574}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected