Last active
December 15, 2015 21:59
-
-
Save cstorey/5329832 to your computer and use it in GitHub Desktop.
Mutant crash on 39cd9d72d of cstorey/srsrb.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mutant configuration: | |
Matcher: #<Mutant::Matcher::Method::Instance identification="SRSRB::CardEditorApp#card_models_as_dictionary"> | |
Filter: Mutant::Mutation::Filter::ALL | |
Strategy: #<Mutant::Strategy::Rspec::Full> | |
Subject: SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110 | |
Alive: rspec:noop:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:24ec0 (0.71s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:3e242 (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:5d14b (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:3aca1 (0.42s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:d8c97 (0.45s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:1b433 (0.45s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:d8768 (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:14378 (0.42s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:b1a82 (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:20cbc (0.44s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:03787 (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:d6f09 (0.44s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:4f860 (0.42s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:79784 (0.41s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:b1010 (0.42s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:64cc2 (0.43s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:692e1 (0.41s) | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:376b1 (0.42s) | |
/Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/registry.rb:43:in `block in lookup': No mutator to handle: NilClass (ArgumentError) | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/registry.rb:42:in `fetch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/registry.rb:42:in `lookup' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send/binary_operator_method.rb:53:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send/binary_operator_method.rb:53:in `emit_right_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send/binary_operator_method.rb:19:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:192:in `run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send/with_arguments.rb:23:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node.rb:103:in `emit_attribute_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/iter_19.rb:16:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node.rb:103:in `emit_attribute_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send.rb:45:in `emit_block_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send.rb:22:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:45:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:45:in `block in dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:43:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:43:in `each_with_index' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:43:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:192:in `run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/util/array.rb:63:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node.rb:103:in `emit_attribute_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/block.rb:19:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node.rb:103:in `emit_attribute_mutations' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/define.rb:18:in `dispatch' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:70:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/abstract_type-0.0.5/lib/abstract_type.rb:40:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator.rb:17:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/subject.rb:42:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/runner.rb:89:in `run_subject' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/runner.rb:75:in `block in run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/matcher/method.rb:39:in `block in each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/matcher/method.rb:38:in `tap' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/matcher/method.rb:38:in `each' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/runner.rb:73:in `run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/runner.rb:52:in `initialize' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/adamantium-0.0.7/lib/adamantium/class_methods.rb:17:in `new' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/support/method_object.rb:28:in `run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/cli.rb:22:in `run' | |
from /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/bin/mutant:14:in `<top (required)>' | |
from bin/mutant:16:in `load' | |
from bin/mutant:16:in `<main>' | |
Killed: rspec:SRSRB::CardEditorApp#card_models_as_dictionary:/Users/cez/projects/srs-rb/lib/srsrb/rackapp.rb:110:86219 (0.42s) | |
#<Mutant::Mutator::Node::Send::BinaryOperatorMethod:0x007fd2c5b0bc48 @block=#<Method: Mutant::Mutator::Node::Send::WithArguments(Mutant::Mutator)#emit>, @input=#<Rubinius::AST::SendWithArguments:0x007fd2c5fc2a70 @line=113, @receiver=#<Rubinius::AST::ToplevelConstant:0x007fd2c5fc2ae8 @line=113, @name=:Hash>, @name=:[], @privately=false, @block=nil, @check_for_local=false, @vcall_style=false, @arguments=#<Rubinius::AST::ActualArguments:0x007fd2c5fc2a48 @line=113, @splat=#<Rubinius::AST::SplatValue:0x007fd2c5fc2a98 @line=113, @value=#<Rubinius::AST::LocalVariableAccess:0x007fd2c5fc2ac0 @line=113, @name=:kvs, @variable=nil>>, @array=[]>>, @seen=#<Set: {"::Hash[*kvs]"}>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant-0.2.20/lib/mutant/mutator/node/send/binary_operator_method.rb | |
--- lib/mutant/mutator/node/send/binary_operator_method.rb 2013-04-07 11:10:48.000000000 +0100 | |
+++ /Users/cez/.gem/ruby/1.9.3/gems/mutant-0.2.20/lib/mutant/mutator/node/send/binary_operator_method.rb 2013-04-07 11:11:20.000000000 +0100 | |
@@ -16,8 +16,15 @@ | |
# | |
def dispatch | |
emit_left_mutations | |
- emit_right_mutations | |
- emit(right) | |
+ if right | |
+ emit_right_mutations | |
+ emit(right) | |
+ else | |
+ emit(node.arguments) | |
+ end | |
+ rescue ArgumentError | |
+ puts self.inspect | |
+ raise | |
end | |
# Emit left mutations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment