Class: Mutant::Integration::Null

Inherits:
Mutant::Integration show all
Defined in:
lib/mutant/integration.rb

Overview

Null integration that never kills a mutation

Constant Summary

Constants inherited from Mutant::Integration

REGISTRY

Instance Method Summary collapse

Methods inherited from Mutant::Integration

lookup, setup, #setup

Instance Method Details

#all_testsEnumerable<Test>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return all tests

Returns:

  • (Enumerable<Test>)


89
90
91
# File 'lib/mutant/integration.rb', line 89

def all_tests
  EMPTY_ARRAY
end

#call(tests) ⇒ Result::Test

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return report for test

Parameters:

Returns:



101
102
103
104
105
106
107
108
# File 'lib/mutant/integration.rb', line 101

def call(tests)
  Result::Test.new(
    tests:   tests,
    output:  '',
    runtime: 0.0,
    passed:  true
  )
end