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

Function parse_policy_internal_null

CedarJavaFFI/src/interface.rs:1325–1335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1323 }
1324 #[test]
1325 fn parse_policy_internal_null() {
1326 let mut env = JVM.attach_current_thread().unwrap();
1327 let null_str = JString::from(JObject::null());
1328 let result = parse_policy_internal(&mut env, null_str);
1329 assert!(result.is_ok(), "Expected error on null input");
1330 assert!(
1331 env.exception_check().unwrap(),
1332 "Expected Java exception due to a null input"
1333 );
1334 env.exception_clear().unwrap();
1335 }
1336 #[test]
1337 fn parse_policy_template_valid_test() {
1338 let mut env = JVM.attach_current_thread().unwrap();

Callers

nothing calls this directly

Calls 1

parse_policy_internalFunction · 0.85

Tested by

no test coverage detected