Skip to content

Commit

Permalink
coverall: Let's just ignore 2 lines which are definitely covered
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeevab committed May 26, 2024
1 parent 28ee03e commit e3067fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
mkdir coverage
./grcov ./target/debug/ -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" \
--excl-line '#\[|=> panic!|unreachable!|Io\(std::io::Error\)|//!|///|^[ }]*$' \
--excl-line '#\[|=> panic!|unreachable!|Io\(std::io::Error\)|//!|///|^[ }]*$| +TooShort,|impl From' \
--excl-br-line '#\[|=> panic!|unreachable!|assert_..!|//!|///' -o ./coverage/lcov.info
- name: Send to Coveralls
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ mod test {

match cocoon.parse(&mut file) {
Err(e) => match e {
Error::TooShort => println!("As expected: {:?}", Error::TooShort),
Error::TooShort => (),
_ => panic!("TooShort is expected for an empty file"),
},
_ => panic!("Success is not expected"),
Expand Down

0 comments on commit e3067fb

Please sign in to comment.