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

Function assert_authorization_success

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

Source from the content-addressed store, hash-verified

37
38#[track_caller]
39fn assert_authorization_success(result: &str) {
40 let result: AuthorizationAnswer = serde_json::from_str(result).unwrap();
41 assert_matches!(result, AuthorizationAnswer::Success { .. });
42}
43
44#[track_caller]
45fn assert_authorization_failure(result: &str) {

Calls

no outgoing calls

Tested by

no test coverage detected