Sha256: df590b5d57fd7908a2dca66197b61ff22e2575a9777ef409cdf3c876cbbf2176
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
# frozen_string_literal: true module Mutant # Module providing isolation class Isolation # Absolutely no isolation # # Only useful for debugging. class None < self # Call block in no isolation # # @return [Result] # # rubocop:disable Lint/SuppressedException # rubocop:disable Metrics/MethodLength # ^^ it actually isn not suppressed, it assigns an lvar def call(_timeout) begin value = yield rescue => exception end Result.new( exception:, log: '', process_status: nil, timeout: nil, value: ) end # rubocop:enable Lint/SuppressedException # rubocop:enable Metrics/MethodLength end # None end # Isolation end # Mutant
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.12.4 | lib/mutant/isolation/none.rb |
mutant-0.12.3 | lib/mutant/isolation/none.rb |