Method: ATP::Processors::PostCleaner#process

Defined in:
lib/atp/processors/post_cleaner.rb

#process(node) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/atp/processors/post_cleaner.rb', line 23

def process(node)
  # On first call extract the test_result nodes from the given AST,
  # then process as normal thereafter
  if @first_call_done
    result = super
  else
    @first_call_done = true
    t = ExtractTestIDs.new
    t.process(node)
    @ids = t.results || {}
    result = super
    @first_call_done = false
  end
  result
end