Sha256: b5e65f474e05cdf2e9000c4ce1b01e8f56cfeaf0c72b8a1d1702ab86440b9467
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true require 'json' require_relative '../result' require_relative './base' module CircleCIReporter module Reporters class Flow < Base def self.default_dir 'flow-coverage' end def self.default_html_file_name 'index.html' end def self.default_json_file_name 'flow-coverage.json' end private # @param json [String] # @return [Float] def parse_json(json) JSON.parse(json)['percent'].to_f end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
circleci_reporter-1.0.1 | lib/circleci_reporter/reporters/flow.rb |
circleci_reporter-1.0.0 | lib/circleci_reporter/reporters/flow.rb |