Skip to content

Commit cd34fda

Browse files
committed
Exclude coverage
1 parent b04bfd9 commit cd34fda

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

crates/vespera_jni/src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//! class `com.devfive.vespera.bridge.VesperaBridge`.
1313
1414
#![allow(unsafe_code)]
15+
#[cfg(not(tarpaulin_include))]
1516

1617
pub use jni;
1718
pub use vespera_inprocess;
@@ -24,17 +25,13 @@ pub use vespera_inprocess;
2425
#[macro_export]
2526
macro_rules! jni_app {
2627
($factory:expr) => {
27-
#[cfg(not(tarpaulin_include))]
2828
#[unsafe(no_mangle)]
2929
pub extern "system" fn JNI_OnLoad(
3030
_vm: $crate::jni::JavaVM,
3131
_: *mut ::std::ffi::c_void,
3232
) -> $crate::jni::sys::jint {
33-
#[cfg(not(tarpaulin_include))]
34-
{
35-
$crate::vespera_inprocess::register_app($factory);
36-
$crate::jni::sys::JNI_VERSION_1_8
37-
}
33+
$crate::vespera_inprocess::register_app($factory);
34+
$crate::jni::sys::JNI_VERSION_1_8
3835
}
3936
};
4037
}

0 commit comments

Comments
 (0)