Sha256: abc7b8f5479342f72c0e899c8f684a5f63260b57298925fd7d6a86d47d30d075

Contents?: true

Size: 819 Bytes

Versions: 4

Compression:

Stored size: 819 Bytes

Contents

# =========================================================================
#   Unity - A Test Framework for C
#   ThrowTheSwitch.org
#   Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
#   SPDX-License-Identifier: MIT
# =========================================================================

require_relative 'yaml_helper'

module RakefileHelpers
  class TestFileFilter
    def initialize(all_files = false)
      @all_files = all_files

      return unless @all_files

      file = 'test_file_filter.yml'
      return unless File.exist?(file)

      filters = YamlHelper.load_file(file)
      @all_files = filters[:all_files]
      @only_files = filters[:only_files]
      @exclude_files = filters[:exclude_files]
    end

    attr_accessor :all_files, :only_files, :exclude_files
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 vendor/cmock/vendor/unity/auto/test_file_filter.rb
ceedling-1.0.1 vendor/unity/auto/test_file_filter.rb
ceedling-1.0.0 vendor/cmock/vendor/unity/auto/test_file_filter.rb
ceedling-1.0.0 vendor/unity/auto/test_file_filter.rb