History

core: exclude test modules from code coverage

Austin Seipp committed 2 months ago

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

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
133133 }
134134
135135 #[cfg(test)]
136+#[cfg_attr(coverage_nightly, coverage(off))]
136137 mod tests {
137138 use super::*;
138139
core/src/content_hash.rs+1−0
@@ -171,6 +171,7 @@ where · 170 unmodified lines
171171 }
172172
173173 #[cfg(test)]
174+#[cfg_attr(coverage_nightly, coverage(off))]
174175 mod tests {
175176 use std::collections::BTreeMap;
176177 use std::collections::HashMap;
core/src/dag_walk.rs+1−0
@@ -249,6 +249,7 @@ fn to_infallible_iter<T>( · 248 unmodified lines
249249 }
250250
251251 #[cfg(test)]
252+#[cfg_attr(coverage_nightly, coverage(off))]
252253 mod tests {
253254 use assert_matches::assert_matches;
254255 use maplit::hashmap;
core/src/dag_walk_async.rs+1−0
@@ -601,6 +601,7 @@ where · 600 unmodified lines
601601 }
602602
603603 #[cfg(test)]
604+#[cfg_attr(coverage_nightly, coverage(off))]
604605 mod tests {
605606 use std::pin::pin;
606607
core/src/diff.rs+1−0
@@ -1023,6 +1023,7 @@ pub fn diff<'a, T: AsRef<[u8]> + ?Sized + 'a>( · 1022 unmodified lines
10231023 }
10241024
10251025 #[cfg(test)]
1026+#[cfg_attr(coverage_nightly, coverage(off))]
10261027 mod tests {
10271028 use super::*;
10281029
core/src/file_util.rs+1−0
@@ -481,6 +481,7 @@ mod fallback { · 480 unmodified lines
481481 }
482482
483483 #[cfg(test)]
484+#[cfg_attr(coverage_nightly, coverage(off))]
484485 mod tests {
485486 use futures::io::Cursor;
486487 use itertools::Itertools as _;
core/src/graph.rs+1−0
@@ -346,6 +346,7 @@ where · 345 unmodified lines
346346 }
347347
348348 #[cfg(test)]
349+#[cfg_attr(coverage_nightly, coverage(off))]
349350 mod tests {
350351 use std::cell::RefCell;
351352 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
113113 }
114114
115115 #[cfg(test)]
116+#[cfg_attr(coverage_nightly, coverage(off))]
116117 mod tests {
117118 use super::*;
118119
core/src/lib.rs+1−0
@@ -44,6 +44,7 @@ pub mod str_util; · 43 unmodified lines
4444 pub mod symbol_util;
4545
4646 #[cfg(test)]
47+#[cfg_attr(coverage_nightly, coverage(off))]
4748 mod tests {
4849 use tempfile::TempDir;
4950
core/src/matchers.rs+1−0
@@ -596,6 +596,7 @@ impl<M1: Matcher, M2: Matcher> Matcher for IntersectionMatcher<M1, M2> { · 595 unmodified lines
596596 }
597597
598598 #[cfg(test)]
599+#[cfg_attr(coverage_nightly, coverage(off))]
599600 mod tests {
600601 use maplit::hashset;
601602
core/src/merge.rs+1−0
@@ -711,6 +711,7 @@ impl<T> Merge<Merge<T>> { · 710 unmodified lines
711711 }
712712
713713 #[cfg(test)]
714+#[cfg_attr(coverage_nightly, coverage(off))]
714715 mod tests {
715716 use test_case::test_case;
716717
core/src/object_id.rs+1−0
@@ -303,6 +303,7 @@ impl<T: Clone> PrefixResolution<T> { · 302 unmodified lines
303303 }
304304
305305 #[cfg(test)]
306+#[cfg_attr(coverage_nightly, coverage(off))]
306307 mod tests {
307308 use super::*;
308309
core/src/ref_name.rs+1−0
@@ -441,6 +441,7 @@ fn is_safe_identifier(symbol: &str) -> bool { · 440 unmodified lines
441441 }
442442
443443 #[cfg(test)]
444+#[cfg_attr(coverage_nightly, coverage(off))]
444445 mod tests {
445446 use super::*;
446447
core/src/repo_path.rs+1−0
@@ -720,6 +720,7 @@ impl<V: Debug> Debug for RepoPathTree<V> { · 719 unmodified lines
720720 }
721721
722722 #[cfg(test)]
723+#[cfg_attr(coverage_nightly, coverage(off))]
723724 mod tests {
724725 use std::panic;
725726
core/src/str_util.rs+1−0
@@ -586,6 +586,7 @@ impl Debug for StringMatcher { · 585 unmodified lines
586586 }
587587
588588 #[cfg(test)]
589+#[cfg_attr(coverage_nightly, coverage(off))]
589590 mod tests {
590591 use assert_matches::assert_matches;
591592 use itertools::Itertools as _;