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

Function assert_inconsistent

atomic-core/src/output/alive/retrieve/tests.rs:178–189  ·  view source on GitHub ↗
(
    result: Result<RetrieveResult, PristineError>,
    expected_message: &'static str,
)

Source from the content-addressed store, hash-verified

176}
177
178fn assert_inconsistent(
179 result: Result<RetrieveResult, PristineError>,
180 expected_message: &'static str,
181) {
182 match result {
183 Err(PristineError::Inconsistent { message }) => {
184 assert_eq!(message, expected_message);
185 }
186 Err(other) => panic!("expected Inconsistent({expected_message:?}), got {other:?}"),
187 Ok(_) => panic!("expected Inconsistent({expected_message:?}), got success"),
188 }
189}
190
191fn add_dead_walk_prefix(
192 txn: &mut FaultGraphTxn,

Calls

no outgoing calls

Tested by

no test coverage detected