Skip to content

Commit ab6debc

Browse files
committed
Add exclude coverage
1 parent 4847d76 commit ab6debc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libs/css/src/class_map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ where
2424
F: FnOnce(&HashMap<String, HashMap<String, usize>>) -> R,
2525
{
2626
#[cfg(target_arch = "wasm32")]
27+
#[cfg(not(tarpaulin_include))]
2728
{
2829
GLOBAL_CLASS_MAP.with(|map| f(&map.borrow()))
2930
}
@@ -39,6 +40,7 @@ where
3940
F: FnOnce(&mut HashMap<String, HashMap<String, usize>>) -> R,
4041
{
4142
#[cfg(target_arch = "wasm32")]
43+
#[cfg(not(tarpaulin_include))]
4244
{
4345
GLOBAL_CLASS_MAP.with(|map| f(&mut map.borrow_mut()))
4446
}

libs/css/src/file_map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ where
2424
F: FnOnce(&BiHashMap<String, usize>) -> R,
2525
{
2626
#[cfg(target_arch = "wasm32")]
27+
#[cfg(not(tarpaulin_include))]
2728
{
2829
GLOBAL_FILE_MAP.with(|map| f(&map.borrow()))
2930
}
@@ -39,6 +40,7 @@ where
3940
F: FnOnce(&mut BiHashMap<String, usize>) -> R,
4041
{
4142
#[cfg(target_arch = "wasm32")]
43+
#[cfg(not(tarpaulin_include))]
4244
{
4345
GLOBAL_FILE_MAP.with(|map| f(&mut map.borrow_mut()))
4446
}

0 commit comments

Comments
 (0)