lib/covered/statistics.rb in covered-0.19.1 vs lib/covered/statistics.rb in covered-0.20.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2022, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. require_relative 'wrapper' require_relative 'coverage' module Covered @@ -26,9 +26,10 @@ # The number of lines that were executed. attr :executed_count def << coverage @count += 1 + @executable_count += coverage.executable_count @executed_count += coverage.executed_count end include Ratio