(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>)
| 621 | |
| 622 | #[jni_fn("com.cedarpolicy.model.policy.PolicySet")] |
| 623 | pub fn policySetToJson<'a>(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>) -> jvalue { |
| 624 | match policy_set_to_json_internal(&mut env, policies_jstr) { |
| 625 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 626 | Ok(policies_set) => policies_set.as_jni(), |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | fn policy_set_to_json_internal<'a>( |
| 631 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected