Skip to content

Case without default is always flagged #257

@grodowski

Description

@grodowski

With branch coverage enabled a method like

def foo(arg)
  case arg
  when :Foo
    1
  when :Bar
    2
  end
end 

Always gets flagged by undercover with missing branch on the case line (no else). Should this be detected and not flagged, since a mandatory else doesn't always make sense?

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