History

core: exclude test modules from code coverage

Austin Seipp committed 2 months ago

Commit f55229d1 parent acded9c15 files · +15 −0Browse files

Showing the changes to core/src (15 of 15 files). Show all

Unified · Split

15 files
  1. core/src/conflict_labels.rs +1 −0
  2. core/src/content_hash.rs +1 −0
  3. core/src/dag_walk.rs +1 −0
  4. core/src/dag_walk_async.rs +1 −0
  5. core/src/diff.rs +1 −0
  6. core/src/file_util.rs +1 −0
  7. core/src/graph.rs +1 −0
  8. core/src/hex_util.rs +1 −0
  9. core/src/lib.rs +1 −0
  10. core/src/matchers.rs +1 −0
  11. core/src/merge.rs +1 −0
  12. core/src/object_id.rs +1 −0
  13. core/src/ref_name.rs +1 −0
  14. core/src/repo_path.rs +1 −0
  15. core/src/str_util.rs +1 −0
core/src/conflict_labels.rs+1−0
@@ -133,6 +133,7 @@ impl fmt::Debug for ConflictLabels { · 132 unmodified lines
133}133}
134 134
135#[cfg(test)]135#[cfg(test)]
136#[cfg_attr(coverage_nightly, coverage(off))]
136mod tests {137mod tests {
137 use super::*;138 use super::*;
138 139
core/src/content_hash.rs+1−0
@@ -171,6 +171,7 @@ where · 170 unmodified lines
171}171}
172 172
173#[cfg(test)]173#[cfg(test)]
174#[cfg_attr(coverage_nightly, coverage(off))]
174mod tests {175mod tests {
175 use std::collections::BTreeMap;176 use std::collections::BTreeMap;
176 use std::collections::HashMap;177 use std::collections::HashMap;
core/src/dag_walk.rs+1−0
@@ -249,6 +249,7 @@ fn to_infallible_iter<T>( · 248 unmodified lines
249}249}
250 250
251#[cfg(test)]251#[cfg(test)]
252#[cfg_attr(coverage_nightly, coverage(off))]
252mod tests {253mod tests {
253 use assert_matches::assert_matches;254 use assert_matches::assert_matches;
254 use maplit::hashmap;255 use maplit::hashmap;
core/src/dag_walk_async.rs+1−0
@@ -601,6 +601,7 @@ where · 600 unmodified lines
601}601}
602 602
603#[cfg(test)]603#[cfg(test)]
604#[cfg_attr(coverage_nightly, coverage(off))]
604mod tests {605mod tests {
605 use std::pin::pin;606 use std::pin::pin;
606 607
core/src/diff.rs+1−0
@@ -1023,6 +1023,7 @@ pub fn diff<'a, T: AsRef<[u8]> + ?Sized + 'a>( · 1022 unmodified lines
1023}1023}
1024 1024
1025#[cfg(test)]1025#[cfg(test)]
1026#[cfg_attr(coverage_nightly, coverage(off))]
1026mod tests {1027mod tests {
1027 use super::*;1028 use super::*;
1028 1029
core/src/file_util.rs+1−0
@@ -481,6 +481,7 @@ mod fallback { · 480 unmodified lines
481}481}
482 482
483#[cfg(test)]483#[cfg(test)]
484#[cfg_attr(coverage_nightly, coverage(off))]
484mod tests {485mod tests {
485 use futures::io::Cursor;486 use futures::io::Cursor;
486 use itertools::Itertools as _;487 use itertools::Itertools as _;
core/src/graph.rs+1−0
@@ -346,6 +346,7 @@ where · 345 unmodified lines
346}346}
347 347
348#[cfg(test)]348#[cfg(test)]
349#[cfg_attr(coverage_nightly, coverage(off))]
349mod tests {350mod tests {
350 use std::cell::RefCell;351 use std::cell::RefCell;
351 use std::convert::Infallible;352 use std::convert::Infallible;
core/src/hex_util.rs+1−0
@@ -113,6 +113,7 @@ pub fn common_hex_len(bytes_a: &[u8], bytes_b: &[u8]) -> usize { · 112 unmodified lines
113}113}
114 114
115#[cfg(test)]115#[cfg(test)]
116#[cfg_attr(coverage_nightly, coverage(off))]
116mod tests {117mod tests {
117 use super::*;118 use super::*;
118 119
core/src/lib.rs+1−0
@@ -44,6 +44,7 @@ pub mod str_util; · 43 unmodified lines
44pub mod symbol_util;44pub mod symbol_util;
45 45
46#[cfg(test)]46#[cfg(test)]
47#[cfg_attr(coverage_nightly, coverage(off))]
47mod tests {48mod tests {
48 use tempfile::TempDir;49 use tempfile::TempDir;
49 50
core/src/matchers.rs+1−0
@@ -596,6 +596,7 @@ impl<M1: Matcher, M2: Matcher> Matcher for IntersectionMatcher<M1, M2> { · 595 unmodified lines
596}596}
597 597
598#[cfg(test)]598#[cfg(test)]
599#[cfg_attr(coverage_nightly, coverage(off))]
599mod tests {600mod tests {
600 use maplit::hashset;601 use maplit::hashset;
601 602
core/src/merge.rs+1−0
@@ -711,6 +711,7 @@ impl<T> Merge<Merge<T>> { · 710 unmodified lines
711}711}
712 712
713#[cfg(test)]713#[cfg(test)]
714#[cfg_attr(coverage_nightly, coverage(off))]
714mod tests {715mod tests {
715 use test_case::test_case;716 use test_case::test_case;
716 717
core/src/object_id.rs+1−0
@@ -303,6 +303,7 @@ impl<T: Clone> PrefixResolution<T> { · 302 unmodified lines
303}303}
304 304
305#[cfg(test)]305#[cfg(test)]
306#[cfg_attr(coverage_nightly, coverage(off))]
306mod tests {307mod tests {
307 use super::*;308 use super::*;
308 309
core/src/ref_name.rs+1−0
@@ -441,6 +441,7 @@ fn is_safe_identifier(symbol: &str) -> bool { · 440 unmodified lines
441}441}
442 442
443#[cfg(test)]443#[cfg(test)]
444#[cfg_attr(coverage_nightly, coverage(off))]
444mod tests {445mod tests {
445 use super::*;446 use super::*;
446 447
core/src/repo_path.rs+1−0
@@ -720,6 +720,7 @@ impl<V: Debug> Debug for RepoPathTree<V> { · 719 unmodified lines
720}720}
721 721
722#[cfg(test)]722#[cfg(test)]
723#[cfg_attr(coverage_nightly, coverage(off))]
723mod tests {724mod tests {
724 use std::panic;725 use std::panic;
725 726
core/src/str_util.rs+1−0
@@ -586,6 +586,7 @@ impl Debug for StringMatcher { · 585 unmodified lines
586}586}
587 587
588#[cfg(test)]588#[cfg(test)]
589#[cfg_attr(coverage_nightly, coverage(off))]
589mod tests {590mod tests {
590 use assert_matches::assert_matches;591 use assert_matches::assert_matches;
591 use itertools::Itertools as _;592 use itertools::Itertools as _;