mbj / mutant

Automated code reviews via mutation testing - semantic code coverage.
Other
1.95k stars 153 forks source link

% operator crashes mutant #8

Closed postmodern closed 11 years ago

postmodern commented 11 years ago

Trying to run mutant on ronin-sql and Ronin::SQL::Operators#% appears to crash mutant.

Subject: Ronin::SQL::Operators#%:/vault/1/code/ronin/ronin-sql/lib/ronin/sql/operators.rb:57
/home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/reporter/cli.rb:273:in `%': malformed format string - %: (ArgumentError)
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/reporter/cli.rb:273:in `print_killer'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/reporter/cli.rb:87:in `noop'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/runner.rb:110:in `noop'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/runner.rb:88:in `run_subject'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/runner.rb:75:in `block in run'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/scope_methods.rb:96:in `block in emit_matches'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/method.rb:39:in `block in each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/method.rb:38:in `tap'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/method.rb:38:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/scope_methods.rb:95:in `emit_matches'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/scope_methods.rb:29:in `block in each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/scope_methods.rb:28:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/scope_methods.rb:28:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:81:in `block in emit_scope_matches'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:80:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:80:in `emit_scope_matches'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:42:in `block in each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:109:in `emit_scope'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:95:in `block in scopes'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:94:in `each_object'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:94:in `scopes'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:41:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/matcher/object_space.rb:41:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/runner.rb:73:in `run'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/runner.rb:52:in `initialize'
    from /home/hal/.gem/ruby/1.9.1/gems/adamantium-0.0.5/lib/adamantium/class_methods.rb:15:in `new'
    from /home/hal/.gem/ruby/1.9.1/gems/adamantium-0.0.5/lib/adamantium/class_methods.rb:15:in `new'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/support/method_object.rb:28:in `run'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/lib/mutant/cli.rb:22:in `run'
    from /home/hal/.gem/ruby/1.9.1/gems/mutant-0.2.16/bin/mutant:14:in `'
    from /home/hal/bin/mutant:23:in `load'
    from /home/hal/bin/mutant:23:in `
'
mbj commented 11 years ago

Fixed with merging your PR.