Skip to content

Branch coverage issue with AsyncEnumerable Extension (yield return) #1335

Open
@manuelamateo

Description

@manuelamateo

When testing an AsyncEnumerable extension that transforms an AsyncEnumerable in an nested form of well sized batches, I get a high percentage of uncovered branches. There aren't any obvious branches to cover and I can't figure out how to fix it. It may be a bug.

See reproduction https://github.com/meggima/coverlet-reproductions AsyncEnumerableBatchExtensionReproduction.cs & AsyncEnumerableBatchExtensionReproductionFixture.cs (Version coverlet.msbuild 3.1.2)

Thanks for looking into it.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaletenet-coverageIssue related to possible incorrect coveragewith reproIssue with repro

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions