module Covered::Ratio
def complete?
Whether all executable lines were executed.
def complete? executed_count == executable_count end
def percentage
The coverage ratio as a percentage.
def percentage ratio * 100 end
def ratio
The fraction of executable lines that were executed.
def ratio return 1.0 if executable_count.zero? Rational(executed_count, executable_count) end