()
| 103 | |
| 104 | #[test] |
| 105 | fn test_insert_error_display() { |
| 106 | let err = InsertError::ChangeNotFound { |
| 107 | hash: "ABC123".to_string(), |
| 108 | }; |
| 109 | assert!(err.to_string().contains("ABC123")); |
| 110 | |
| 111 | let hash1 = Hash::of(b"dep1"); |
| 112 | let err = InsertError::MissingDependencies { |
| 113 | missing: vec![hash1], |
| 114 | }; |
| 115 | let msg = err.to_string(); |
| 116 | assert!(msg.contains("Missing dependencies")); |
| 117 | |
| 118 | let err = InsertError::AlreadyApplied { |
| 119 | hash: "XYZ789".to_string(), |
| 120 | }; |
| 121 | assert!(err.to_string().contains("already applied")); |
| 122 | } |
| 123 | |
| 124 | #[test] |
| 125 | fn test_insert_error_from_local() { |
nothing calls this directly
no outgoing calls
no test coverage detected