Class: Mutant::Reporter::Trace

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Mutable
Defined in:
lib/mutant/reporter/trace.rb

Overview

Reporter to trace report calls, used as a spec adapter

Constant Summary collapse

REPORT_DELAY =
0.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newTrace

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return new trace reporter

Returns:



13
14
15
# File 'lib/mutant/reporter/trace.rb', line 13

def self.new
  super(Hash[anima.attribute_names.map { |name| [name, []] }])
end

Instance Method Details

#delayFloat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return report delay

Returns:

  • (Float)


32
33
34
# File 'lib/mutant/reporter/trace.rb', line 32

def delay
  REPORT_DELAY
end