class SimpleCov::CoverageStatistics

def initialize(covered:, missed:, total_strength: 0.0)

Other values are computed by this class.

Requires only covered, missed and strength to be initialized.
def initialize(covered:, missed:, total_strength: 0.0)
  @covered  = covered
  @missed   = missed
  @total    = covered + missed
  @percent  = compute_percent(covered, missed, total)
  @strength = compute_strength(total_strength, total)
end