class CrudeMutant::Progress

Attributes

run_results[R]
total_runs_to_perform[R]

Public Class Methods

new(total_runs_to_perform, run_results) click to toggle source
# File lib/crude_mutant/progress.rb, line 7
def initialize(total_runs_to_perform, run_results)
  @total_runs_to_perform = total_runs_to_perform
  @run_results = run_results
end

Public Instance Methods

avg_time() click to toggle source
# File lib/crude_mutant/progress.rb, line 12
def avg_time
  return 0.0 if @run_results.size == 0

  @run_results.map(&:time_taken).reduce(0, :+) / @run_results.size
end