free_mutant/lib/mutant/reporter/null.rb
Markus Schirp 42e6fe84e5 Add runner with reporter
* Use MethodObject mixin
* Rename Context::Constant to Context::Scope
* Use Mutation class instead of passing around raw nodes
2012-08-16 04:10:54 +02:00

42 lines
640 B
Ruby

module Mutant
class Reporter
# Null reporter
Null = Class.new(self) do
# 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.new.freeze
end
end