Sha256: 71038030aa79c8ccec2e73a80e9a5b08c61044179b198a72c2a4bd7c71fba4cb
Contents?: true
Size: 492 Bytes
Versions: 6
Compression:
Stored size: 492 Bytes
Contents
# Reads and writes external coverage files as BINARY module MetricFu class RCovTestCoverageClient def initialize(coverage_file) @file_path = Pathname(coverage_file) @file_path.dirname.mkpath end def post_results(payload) mf_log "Saving coverage payload to #{@file_path}" dump(payload) end def load File.binread(@file_path) end def dump(payload) File.open(@file_path, 'wb') {|file| file.write(payload) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems