Sha256: 286865294fe74d705f57235c9db174b9536c2a67d9f8435d7740d331cc29ba0a

Contents?: true

Size: 443 Bytes

Versions: 10

Compression:

Stored size: 443 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Minitest
  module Distributed
    module Filters
      class ExcludeFileFilter < FileFilterBase
        extend T::Sig
        include FilterInterface

        sig { override.params(runnable: Minitest::Runnable).returns(T::Array[Runnable]) }
        def call(runnable)
          tests.include?(DefinedRunnable.identifier(runnable)) ? [] : [runnable]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
minitest-distributed-0.2.11 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.10 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.9 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.8 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.7 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.6 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.5 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.2 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.4 lib/minitest/distributed/filters/exclude_file_filter.rb
minitest-distributed-0.2.3 lib/minitest/distributed/filters/exclude_file_filter.rb