Skip to content

Emit an additional ExcludeFromCodeCoverageAttribute for generated methods #12402

Open
@vzarytovskii

Description

@vzarytovskii

By default, we only emit CompilerGeneratedAttribute for generated methods (CompareTo, Equals, etc.), and since we also generate sequence points for them, VS code analysis shows them in the report:

image

The only user-added method in picture above is Create(int).

We should be emitting an ExcludeFromCodeCoverageAttribute for generated methods, so they can be excluded from the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Debugstepping, debug points, stacks and moreFeature ImprovementTheme-Simple-F#A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions