diff --git a/config/flog.yml b/config/flog.yml index cd8dbd6a..308404cf 100644 --- a/config/flog.yml +++ b/config/flog.yml @@ -1,2 +1,2 @@ --- -threshold: 16.0 +threshold: 15.6 diff --git a/lib/mutant/mutator/literal/range.rb b/lib/mutant/mutator/literal/range.rb index 12df3b31..fbde25e8 100644 --- a/lib/mutant/mutator/literal/range.rb +++ b/lib/mutant/mutator/literal/range.rb @@ -36,9 +36,30 @@ module Mutant # @api private # def emit_range - start, finish = node.start, node.finish + emit_finish_mutations + eemit_start_mutations + end + + # Emit range start mutations + # + # @return [undefined] + # + # @api private + # + def emit_finish_mutations + finish = node.finish emit_self(negative_infinity, finish) emit_self(nan, finish) + end + + # Emit start mutations + # + # @return [undefined] + # + # @api private + # + def emit_start_mutations + start = node.start emit_self(start, infinity) emit_self(start, nan) end