Skip to content

Hash destructuring shows missing coverage? #1092

Open
@mockdeep

Description

  • using RSpec run via rake
  • simplecov (0.22.0)
  • ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]

I'm not able to understand why this line using rightward assignment is reported as missing coverage:

destructuring

It looks like it's treating the line as if it's a conditional without an else case, but as far as I'm aware there is no branching possible here. Ruby will throw an error if any of the properties are missing. You can see the behavior on this project. You should be able to clone it and run bundle && rake to produce coverage results.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions