Skip to content

Commit

Permalink
grcov: test doesn't help... trying recommended grcov flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeevab committed May 26, 2024
1 parent 28be28f commit f58a7aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code
-Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
RUSTDOCFLAGS: >-
-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code
-Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
-Cpanic=abort
run: cargo test --all-features
- name: Install grcov
run: |
Expand Down
14 changes: 0 additions & 14 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,3 @@ impl From<std::io::Error> for Error {
}
}
}

#[cfg(test)]
mod test {
use super::Error;

#[test]
fn test_error() {
let err: Error = std::io::Error::from(std::io::ErrorKind::UnexpectedEof).into();
match err {
Error::TooShort => (),
_ => panic!("Unexpected error: not TooShort"),
}
}
}

0 comments on commit f58a7aa

Please sign in to comment.