Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Feb 22, 2024
1 parent b4173d6 commit 378c152
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov nextest --workspace --exclude malachite-itf --all-features --ignore-run-fail --lcov --output-path lcov.info
run: |
cargo llvm-cov nextest \
--workspace \
--exclude malachite-itf \
--ignore-filename-regex node/bin \
--all-features \
--ignore-run-fail \
--lcov \
--output-path lcov.info
- name: Generate text report
run: cargo llvm-cov report
- name: Upload coverage to Codecov
Expand Down
2 changes: 0 additions & 2 deletions code/node/bin/cli.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg_attr(coverage_nightly, coverage(off))]

use malachite_node::network::PeerId;

pub struct Cli {
Expand Down
2 changes: 0 additions & 2 deletions code/node/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg_attr(coverage_nightly, coverage(off))]

use malachite_node::config::Config;
use malachite_node::util::make_node;
use malachite_test::utils::make_validators;
Expand Down
2 changes: 2 additions & 0 deletions code/node/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub mod config;
pub mod network;
pub mod node;
Expand Down

0 comments on commit 378c152

Please sign in to comment.