free_mutant/lib/mutant/reporter/null.rb
Markus Schirp 40d5230c68 Introduce noop mutation guards and argument mutators
* Sorry for not splitting up into smaller commit
2012-12-11 00:17:19 +01:00

44 lines
604 B
Ruby

module Mutant
class Reporter
class Null < self
# Report subject
#
# @param [Subject] subject
#
# @return [self]
#
# @api private
#
def subject(*)
self
end
# Report mutation
#
# @param [Mutation] mutation
#
# @return [self]
#
# @api private
#
def mutation(*)
self
end
# Report killer
#
# @param [Killer] killer
#
# @return [self]
#
# @api private
#
def killer(*)
self
end
end
end
end