class SimpleCov::SourceFile

def covered_percent(criterion = :line)

default). Returns nil if the criterion was not measured.
The coverage for this file in percent, for the given criterion (line by
def covered_percent(criterion = :line)
  coverage_statistics(criterion)&.percent
end