Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Heckle renames the _ "don't care" variable name as a mutation #10

Open
agrimm opened this Issue · 1 comment

2 participants

@agrimm

_ is used as a "don't care" variable name: http://stackoverflow.com/q/10464282/38765

but heckle tries to do the following as a mutation:

-  result = foo.map { |_, _, bar| bar }.join
+  result = foo.map { |_heckle_dummy, _, bar| bar }.join

This mutant will not get killed by a failing test, meaning that heckle will wrongly claim that the code isn't properly unit tested.

@phiggins
Owner

Hmm, I don't think there are any existing tests for this case. Thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.