Sha256: d7f7bcf39f32e11134846ba7c9cd342a0d7c37045c4f1410e9c324b2768a2c50

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

module SimpleCovLcov
  class Configuration
    attr_writer :report_with_single_file
    attr_writer :output_directory
    attr_writer :lcov_file_name

    def report_with_single_file?
      !!@report_with_single_file
    end

    def output_directory
      @output_directory || File.join(SimpleCov.coverage_path, 'lcov')
    end

    def single_report_path=(new_path)
      self.output_directory = File.dirname(new_path)
      @single_report_path = new_path
    end

    def single_report_path
      @single_report_path || File.join(output_directory, lcov_file_name)
    end

    def lcov_file_name
      @lcov_file_name || "#{Pathname.new(SimpleCov.root).basename}.lcov"
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/simplecov-lcov-0.8.0/lib/simple_cov_lcov/configuration.rb
simplecov-lcov-0.8.0 lib/simple_cov_lcov/configuration.rb
simplecov-lcov-0.7.0 lib/simple_cov_lcov/configuration.rb