Sha256: 1cf759d32a91b6e5c739005dfe69c680163437bafd3170decdebeffff43a155f

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 IncludeFileFilter < 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/include_file_filter.rb
minitest-distributed-0.2.10 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.9 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.8 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.7 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.6 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.5 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.2 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.4 lib/minitest/distributed/filters/include_file_filter.rb
minitest-distributed-0.2.3 lib/minitest/distributed/filters/include_file_filter.rb