class SimpleCov::SourceFile

def covered_percent

The coverage for this file in percent. 0 if the file has no coverage lines
def covered_percent
  coverage_statistics[:line]&.percent
end