Sha256: 109159729c4817e469ea0e8bb8ba85ca1d6846e448dba5c277ba5400ba83bde5

Contents?: true

Size: 524 Bytes

Versions: 9

Compression:

Stored size: 524 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require "minitest"

module Spoom
  module BacktraceFilter
    class Minitest < ::Minitest::BacktraceFilter
      extend T::Sig

      SORBET_PATHS = T.let(Gem.loaded_specs["sorbet-runtime"].full_require_paths.freeze, T::Array[String])

      sig { override.params(bt: T.nilable(T::Array[String])).returns(T::Array[String]) }
      def filter(bt)
        super.select do |line|
          SORBET_PATHS.none? { |path| line.include?(path) }
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spoom-1.5.0 lib/spoom/backtrace_filter/minitest.rb
spoom-1.4.2 lib/spoom/backtrace_filter/minitest.rb
spoom-1.4.1 lib/spoom/backtrace_filter/minitest.rb
spoom-1.4.0 lib/spoom/backtrace_filter/minitest.rb
spoom-1.3.3 lib/spoom/backtrace_filter/minitest.rb
spoom-1.3.2 lib/spoom/backtrace_filter/minitest.rb
spoom-1.3.1 lib/spoom/backtrace_filter/minitest.rb
spoom-1.3.0 lib/spoom/backtrace_filter/minitest.rb
spoom-1.2.4 lib/spoom/backtrace_filter/minitest.rb