Skip to content

llvm-cov [rust] Coverage Source code not covered when rust code is across multiple lines #143541

Open
@Ryang20718

Description

@Ryang20718

I tried this code:

    log::info!(
        "hello world {} 12323123123123123123123123123123123123123123123123",
        "Testing"
    );

I expected all lines to be covered. However, only the first line is covered

log::info!(

All other lines are not covered

Version

LLVM (http://llvm.org/):
  LLVM version 19.1.7-rust-1.86.0-stable
  Optimized build.

might be related?

#82259
#54579

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions