Skip to content

Commit

Permalink
More adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Oct 19, 2024
1 parent 63d396d commit 476d997
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
run: cargo llvm-cov --locked --features serde,rayon --lcov --output-path lcov.info
- name: Record Rust version
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
- name: Upload to codecov.io
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ features = ["rayon", "serde", "raw"]
[[bench]]
name = "vroom"
harness = false

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage,coverage_nightly)'] }
57 changes: 0 additions & 57 deletions azure-pipelines.yml

This file was deleted.

30 changes: 15 additions & 15 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,7 @@ fn assert_covariance() {
}

#[cfg(test)]
#[cfg(not(tarpaulin_include))] // don't count for coverage
#[cfg_attr(coverage, coverage(off))]
mod test_map {
use super::DefaultHashBuilder;
use super::Entry::{Occupied, Vacant};
Expand Down Expand Up @@ -3603,14 +3603,14 @@ mod test_map {
fn test_lots_of_insertions() {
let mut m = HashMap::new();

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const N: usize = 10;
#[cfg(any(tarpaulin, miri))]
#[cfg(any(coverage, miri))]
const N: usize = 5;

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const M: usize = 1001;
#[cfg(tarpaulin)]
#[cfg(coverage)]
const M: usize = 101;
#[cfg(miri)]
const M: usize = 16;
Expand Down Expand Up @@ -3678,14 +3678,14 @@ mod test_map {
fn test_lots_of_raw_insertions() {
let mut m = HashMap::new();

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const N: usize = 10;
#[cfg(any(tarpaulin, miri))]
#[cfg(any(coverage, miri))]
const N: usize = 5;

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const M: usize = 1001;
#[cfg(tarpaulin)]
#[cfg(coverage)]
const M: usize = 101;
#[cfg(miri)]
const M: usize = 16;
Expand Down Expand Up @@ -3790,9 +3790,9 @@ mod test_map {
fn test_raw_entry_mut_and_modify() {
let mut m = HashMap::new();

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const M: usize = 1001;
#[cfg(tarpaulin)]
#[cfg(coverage)]
const M: usize = 101;
#[cfg(miri)]
const M: usize = 16;
Expand Down Expand Up @@ -4656,16 +4656,16 @@ mod test_map {

#[test]
fn test_raw_occupied_entry_mut() {
#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const M: usize = 1001;
#[cfg(tarpaulin)]
#[cfg(coverage)]
const M: usize = 101;
#[cfg(miri)]
const M: usize = 16;

#[cfg(not(any(tarpaulin, miri)))]
#[cfg(not(any(coverage, miri)))]
const N: usize = 10;
#[cfg(any(tarpaulin, miri))]
#[cfg(any(coverage, miri))]
const N: usize = 5;

let mut m = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ fn assert_covariance() {
}

#[cfg(test)]
#[cfg(not(tarpaulin_include))] // don't count for coverage
#[cfg_attr(coverage, coverage(off))]
mod test_set {
use super::super::map::DefaultHashBuilder;
use super::HashSet;
Expand Down
2 changes: 0 additions & 2 deletions tarpaulin.toml

This file was deleted.

0 comments on commit 476d997

Please sign in to comment.