MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / assert_failure

Function assert_failure

CedarJavaFFI/src/tests.rs:27–30  ·  view source on GitHub ↗
(result: &str)

Source from the content-addressed store, hash-verified

25
26#[track_caller]
27fn assert_failure(result: &str) {
28 let result: Answer = serde_json::from_str(result).unwrap();
29 assert_matches!(result, Answer::Failure { .. });
30}
31
32#[track_caller]
33fn assert_success(result: &str) {

Calls

no outgoing calls

Tested by

no test coverage detected