Sha256: 76b7e428965fd9828397b3d7c1743b58bbb4d79c591e583ed55bc1eda2dc37f5

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require_relative 'spec_to_app_mapping'
require 'memo_wise'

class SimpleCov::Formatter::Terminal::Config < Runger::Config
  prepend MemoWise
  include SimpleCov::Formatter::Terminal::SpecToAppMapping

  module LinesToPrint
    ALL = :all
    UNCOVERED = :uncovered
  end

  attr_config(
    lines_to_print: LinesToPrint::UNCOVERED,
    spec_to_app_file_map:
      SimpleCov::Formatter::Terminal::SpecToAppMapping.default_spec_to_app_map,
    unmappable_spec_regexes:
      SimpleCov::Formatter::Terminal::SpecToAppMapping::DEFAULT_UNMAPPABLE_SPEC_REGEXES,
  )

  memo_wise \
  def write_target_info_file?
    ENV.fetch('SIMPLECOV_WRITE_TARGET_TO_FILE', nil) == '1'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_cov-formatter-terminal-1.4.0 lib/simple_cov/formatter/terminal/config.rb
simple_cov-formatter-terminal-1.3.0 lib/simple_cov/formatter/terminal/config.rb
simple_cov-formatter-terminal-1.2.0 lib/simple_cov/formatter/terminal/config.rb
simple_cov-formatter-terminal-1.1.0 lib/simple_cov/formatter/terminal/config.rb
simple_cov-formatter-terminal-1.0.0 lib/simple_cov/formatter/terminal/config.rb
simple_cov-formatter-terminal-0.3.1 lib/simple_cov/formatter/terminal/config.rb