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

Function assert_success

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

Source from the content-addressed store, hash-verified

31
32#[track_caller]
33fn assert_success(result: &str) {
34 let result: Answer = serde_json::from_str(result).unwrap();
35 assert_matches!(result, Answer::Success { .. });
36}
37
38#[track_caller]
39fn assert_authorization_success(result: &str) {

Calls

no outgoing calls

Tested by

no test coverage detected