Sha256: 7dcff43529532220465624df5191e65d201073ca2474679ab627c40a928400b1

Contents?: true

Size: 887 Bytes

Versions: 12

Compression:

Stored size: 887 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Minitest
  module Distributed
    module Filters
      # A filter proc is a callable object that changes the list of runnables that will
      # be executed during the test run. For every runnable, it should return an
      # array of runnables.
      #
      # - If it returns an empty array, the runnable will not be run.
      # - If it returns a single element array with the passed ion runnable to make no changes.
      # - It can return an array of enumerables to expand the number of runnables in this test run,
      #   We use this for grinding tests, for instance.
      module FilterInterface
        extend T::Sig
        extend T::Helpers
        interface!

        sig { abstract.params(runnable: Minitest::Runnable).returns(T::Array[Minitest::Runnable]) }
        def call(runnable); end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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