free_mutant/lib/mutant/reporter/null.rb

43 lines
640 B
Ruby
Raw Normal View History

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