Skip to main content

assert_state_matches

Function assert_state_matches 

Source
pub fn assert_state_matches(verification: &Value)
Expand description

Assert that state verification passed with no divergences.

§Panics

Panics if the verification reports any divergences.

§Examples

use serde_json::json;

let verification = json!({"passed": true, "divergences": []});
victauri_test::assert_state_matches(&verification);