Module: Leftovers::Reporter

Defined in:
lib/leftovers/reporter.rb

Class Method Summary collapse

Class Method Details

.prepareObject



6
# File 'lib/leftovers/reporter.rb', line 6

def prepare; end

.report(collection) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/leftovers/reporter.rb', line 8

def report(collection)
  report_list('Only directly called in tests:', collection.with_tests)
  report_list('Not directly called at all:', collection.without_tests)
  report_instructions

  1
end

.report_successObject



16
17
18
19
20
# File 'lib/leftovers/reporter.rb', line 16

def report_success
  puts green('Everything is used')

  0
end