Sha256: 1ad61a6a5903558dffc9d4c8681db801681145f09ca55cf1e25a1e6b0345d927

Contents?: true

Size: 557 Bytes

Versions: 45

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Integration
    # Null integration that has no tests
    class Null < self
      # Available tests for integration
      #
      # @return [Enumerable<Test>]
      def all_tests
        EMPTY_ARRAY
      end

      # Run a collection of tests
      #
      # @param [Enumerable<Mutant::Test>] tests
      #
      # @return [Result::Test]
      def call(_tests)
        Result::Test.new(
          passed:  true,
          runtime: 0.0
        )
      end

    end # Null
  end # Integration
end # Mutant

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
mutant-0.10.24 lib/mutant/integration/null.rb
mutant-0.10.23 lib/mutant/integration/null.rb
mutant-0.10.22 lib/mutant/integration/null.rb
mutant-0.10.21 lib/mutant/integration/null.rb
mutant-0.10.20 lib/mutant/integration/null.rb