Sha256: 47fb125dc5da7aa1e0e1cd8f29b6558c9ee9abf1343670c0b7ba659f3deb23f8

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require_relative 'spec_to_app_mapping'
require 'memo_wise'

class SimpleCov::Formatter::Terminal::Config < Anyway::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

1 entries across 1 versions & 1 rubygems

Version Path
simple_cov-formatter-terminal-0.3.0 lib/simple_cov/formatter/terminal/config.rb