Class: Polyrun::Coverage::Formatter::LcovFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/polyrun/coverage/formatter.rb

Instance Method Summary collapse

Methods inherited from Base

#format, #initialize

Constructor Details

This class inherits a constructor from Polyrun::Coverage::Formatter::Base

Instance Method Details

#write_files(result, output_dir, basename) ⇒ Object



84
85
86
87
88
# File 'lib/polyrun/coverage/formatter.rb', line 84

def write_files(result, output_dir, basename)
  path = File.join(output_dir, "#{basename}.lcov")
  File.write(path, Merge.emit_lcov(result.coverage_blob))
  {lcov: path}
end