Sha256: e994f63a9215fb5deba35e17c6cbe3dbdfbffa031b4a2a3a100ed47734b9e407

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

module Koine
  class TestRunner
    class Adapters
      class BaseRegexp < BaseAdapter
        def initialize(file_pattern:)
          @file_pattern = file_pattern.is_a?(Regexp) ? file_pattern : Regexp.new(file_pattern)
        end

        private

        def accept?(config)
          !@file_pattern.match(config.file_path).nil?
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
koine-test_runner-0.4.0 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.3.0 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.2.4 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.2.3 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.2.2 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.2.1 lib/koine/test_runner/adapters/base_regexp.rb
koine-test_runner-0.2.0 lib/koine/test_runner/adapters/base_regexp.rb