(mut env: JNIEnv<'a>, _: JClass, policy_jstr: JString<'a>)
| 594 | |
| 595 | #[jni_fn("com.cedarpolicy.model.policy.Policy")] |
| 596 | pub fn parsePolicyJni<'a>(mut env: JNIEnv<'a>, _: JClass, policy_jstr: JString<'a>) -> jvalue { |
| 597 | match parse_policy_internal(&mut env, policy_jstr) { |
| 598 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 599 | Ok(policy_text) => policy_text.as_jni(), |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | fn parse_policy_internal<'a>( |
| 604 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected