43 lines
640 B
Ruby
43 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
|