Class: Mutant::Isolation::None Private

Inherits:
Mutant::Isolation show all
Defined in:
lib/mutant/isolation/none.rb

Overview

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

Absolutely no isolation

Only useful for debugging.

Instance Method Summary collapse

Instance Method Details

#call(_timeout) ⇒ Result

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.

Call block in no isolation

rubocop:disable Lint/SuppressedException rubocop:disable Metrics/MethodLength ^^ it actually isn not suppressed, it assigns an lvar

Returns:



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/mutant/isolation/none.rb', line 18

def call(_timeout)
  begin
    value = yield
  rescue => exception
  end

  Result.new(
    exception:      exception,
    log:            '',
    process_status: nil,
    timeout:        nil,
    value:          value
  )
end