cargo-llvm-cov icon indicating copy to clipboard operation
cargo-llvm-cov copied to clipboard

warning: N functions have mismatched data

Open mattgathu opened this issue 1 year ago • 4 comments

Hello 👋🏾

I'm running some coverage check locally and I got a warning about mismatched data.

❯ cargo llvm-cov --open

running 5 tests
test mime::tests::check_mime_str ... ok
...

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

warning: 1 functions have mismatched data

How can I find out the function with mismatched data?

I tried running in verbose mode but it didn't help.

Thanks

mattgathu avatar Dec 26 '23 05:12 mattgathu

There is no way to show the affected code at this time, but the warning here probably has been fixed in v0.6.7 (https://github.com/taiki-e/cargo-llvm-cov/pull/354). Could you recheck this with v0.6.7?

taiki-e avatar Mar 10 '24 11:03 taiki-e

Hey! thanks first of all for this nice tool. I have the same issue here after running:

cargo llvm-cov --all-features --workspace --html --output-dir=target/llvm-cov/html 

Error:

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 89.12s

warning: 4 functions have mismatched data

    Finished report saved to target/llvm-cov/html/html

I am using the recent version.

cargo llvm-cov --version                                                                            
cargo-llvm-cov 0.6.7

Thanks!

0xisk avatar Mar 13 '24 05:03 0xisk