Class: MutatorRails::Statistics

Inherits:
Object
  • Object
show all
Defined in:
lib/mutator_rails/statistics.rb

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/mutator_rails/statistics.rb', line 9

def call
  @content = ListMaker.new.make_list.map(&:details)

  @stats = []
  total_mutations
  fully_mutated
  failures
  fallback_to_j1
  top_10_alive
  top_10_longest
  top_10_total_mutations

  puts " ... storing #{stats_file}"
  puts text
  File.write(stats_file, text)
end