Skip to content

False coverage for C# fixed statement #529

Open
@mbenningfield1

Description

@mbenningfield1

The following code:

byte[] b = Encoding.GetBytes(s);
fixed (byte* pb = b) {
  interop_call(pb, 4);
}

is cited as a 50% covered branch in the Cobertura.xml coverage results, on the line number of the fixed statement, and it shows yellow in the coverage margin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions