Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: N functions have mismatched data #329

Open
mattgathu opened this issue Dec 26, 2023 · 2 comments
Open

warning: N functions have mismatched data #329

mattgathu opened this issue Dec 26, 2023 · 2 comments
Labels
S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.

Comments

@mattgathu
Copy link

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

@taiki-e
Copy link
Owner

taiki-e commented Mar 10, 2024

There is no way to show the affected code at this time, but the warning here probably has been fixed in v0.6.7 (#354). Could you recheck this with v0.6.7?

@0xisk
Copy link

0xisk commented Mar 13, 2024

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!

@taiki-e taiki-e changed the title How to display code affected by warnings warning: N functions have mismatched data Mar 13, 2024
@taiki-e taiki-e added the needs-mcve Call for participation: This issue needs a Minimal Complete and Verifiable Example label Mar 13, 2024
@taiki-e taiki-e added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-mcve Call for participation: This issue needs a Minimal Complete and Verifiable Example labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.
Projects
None yet
Development

No branches or pull requests

3 participants