Skip to content

coverage: both branches lines taken but only half branch coverage #5623

@hellwolf

Description

@hellwolf

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (ca67d15 2023-08-02T00:16:51.291393754Z)

What command(s) is the bug in?

forge coverage --hardhat --report lcov

Operating System

Linux

Describe the bug

We found sporadically some cases that the lcov reporting from foundry did not make sense to us, since the branch should in all cases be hit, here are some examples:

... etc.

Is there something we could help with to give more diagnostics information about those?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions