MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / to_json_internal_null

Function to_json_internal_null

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

Source from the content-addressed store, hash-verified

1534 }
1535 #[test]
1536 fn to_json_internal_null() {
1537 let mut env = JVM.attach_current_thread().unwrap();
1538 let null_str = JString::from(JObject::null());
1539 let result = to_json_internal(&mut env, null_str);
1540 assert!(result.is_ok(), "Expected error on null input");
1541 assert!(
1542 env.exception_check().unwrap(),
1543 "Expected Java exception due to a null input"
1544 );
1545 env.exception_clear().unwrap();
1546 }
1547 #[test]
1548 fn template_effect_jni_internal_permit_test() {
1549 let mut env = JVM.attach_current_thread().unwrap();

Callers

nothing calls this directly

Calls 1

to_json_internalFunction · 0.85

Tested by

no test coverage detected