Skip to content

Commit

Permalink
Codecov: ignored Display and Debug for coverage
Browse files Browse the repository at this point in the history
- also some changes for tarpaulin and codecov to only execute relevant codes
  • Loading branch information
Amjad50 committed Jul 21, 2020
1 parent 813ac76 commit d143108
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .codecov.yml
@@ -1,10 +1,8 @@
codecov:
ci:
- cirrus-ci.com
coverage:
range: 70...100
ignore:
- "nes_test"
- "tests.rs"
- "**/tests.rs"
- "tests"
- "**/tests"
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Expand Up @@ -31,5 +31,5 @@ jobs:
# - name: Run tests
# run: cargo test --verbose
- name: Run test cargo-tarpaulin
run: cargo tarpaulin --workspace -v --lib -o Xml
run: cargo tarpaulin --workspace -e nes_test -v -o Html
- uses: codecov/codecov-action@v1.0.11
2 changes: 2 additions & 0 deletions cpu6502/src/instruction.rs
Expand Up @@ -316,6 +316,7 @@ impl Instruction {
}
}

#[cfg(not(tarpaulin_include))]
impl Display for Opcode {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
use Opcode::*;
Expand Down Expand Up @@ -391,6 +392,7 @@ impl Display for Opcode {
}
}

#[cfg(not(tarpaulin_include))]
impl Display for Instruction {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
use AddressingMode::*;
Expand Down

0 comments on commit d143108

Please sign in to comment.