Class: Mutant::Reporter::Trace

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

Overview

Reporter to trace report calls, used as a spec adapter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newTracer

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:

  • (Tracer)


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

def self.new
  super([], [])
end

Instance Method Details

#progress(object) ⇒ self

Report new progress on object

Parameters:

  • object (Object)

Returns:

  • (self)


34
35
36
37
# File 'lib/mutant/reporter/trace.rb', line 34

def progress(object)
  progress_calls << object
  self
end

#report(object) ⇒ self

Report object

Parameters:

  • object (Object)

Returns:

  • (self)


23
24
25
26
# File 'lib/mutant/reporter/trace.rb', line 23

def report(object)
  report_calls << object
  self
end