(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>)
| 647 | |
| 648 | #[jni_fn("com.cedarpolicy.model.policy.PolicySet")] |
| 649 | pub fn parsePoliciesJni<'a>(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>) -> jvalue { |
| 650 | match parse_policies_internal(&mut env, policies_jstr) { |
| 651 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 652 | Ok(policies_set) => policies_set.as_jni(), |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | fn parse_policies_internal<'a>( |
| 657 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected