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.11.28 lib/mutant/integration/null.rb
mutant-0.11.27 lib/mutant/integration/null.rb
mutant-0.11.26 lib/mutant/integration/null.rb
mutant-0.11.25 lib/mutant/integration/null.rb
mutant-0.11.24 lib/mutant/integration/null.rb
mutant-0.11.23 lib/mutant/integration/null.rb
mutant-0.11.22 lib/mutant/integration/null.rb
mutant-0.11.21 lib/mutant/integration/null.rb
mutant-0.11.20 lib/mutant/integration/null.rb
mutant-0.11.19 lib/mutant/integration/null.rb
mutant-0.11.18 lib/mutant/integration/null.rb
mutant-0.11.17 lib/mutant/integration/null.rb
mutant-0.11.16 lib/mutant/integration/null.rb
mutant-0.11.15 lib/mutant/integration/null.rb
mutant-0.11.14 lib/mutant/integration/null.rb
mutant-0.11.13 lib/mutant/integration/null.rb
mutant-0.11.12 lib/mutant/integration/null.rb
mutant-0.11.11 lib/mutant/integration/null.rb
mutant-0.11.10 lib/mutant/integration/null.rb
mutant-0.11.9 lib/mutant/integration/null.rb