()
| 123 | |
| 124 | #[test] |
| 125 | fn test_insert_error_from_local() { |
| 126 | let local_err = LocalApplyError::ChangeAlreadyApplied { |
| 127 | hash: Hash::of(b"test"), |
| 128 | }; |
| 129 | let insert_err: InsertError = local_err.into(); |
| 130 | assert!(matches!(insert_err, InsertError::AlreadyApplied { .. })); |
| 131 | |
| 132 | let local_err = LocalApplyError::DependencyMissing { |
| 133 | hash: Hash::of(b"dep"), |
| 134 | }; |
| 135 | let insert_err: InsertError = local_err.into(); |
| 136 | assert!(matches!( |
| 137 | insert_err, |
| 138 | InsertError::MissingDependencies { .. } |
| 139 | )); |
| 140 | } |
| 141 | |
| 142 | // Compute Insert Order Tests |
| 143 |
nothing calls this directly
no outgoing calls
no test coverage detected