Sha256: 4fb6574de1334299d2334ae607accf4c0b10fc9e0f6a435a7276dc484b352357

Contents?: true

Size: 563 Bytes

Versions: 12

Compression:

Stored size: 563 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

require File.expand_path('../test_helper', __FILE__)

class AbstractPrinterTest < TestCase
  def setup
    super
    @result = {}
    @printer = RubyProf::AbstractPrinter.new(@result)
    @options = {}
    @printer.setup_options(@options)
  end

  private

  def with_const_stubbed(name, value)
    old_verbose, $VERBOSE = $VERBOSE, nil
    old_value = Object.const_get(name)

    Object.const_set(name, value)
    yield
    Object.const_set(name, old_value)

    $VERBOSE = old_verbose
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ruby-prof-1.7.1-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.7.1 test/abstract_printer_test.rb
ruby-prof-1.7.0-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.7.0 test/abstract_printer_test.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/abstract_printer_test.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/abstract_printer_test.rb
ruby-prof-1.6.3-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.6.3 test/abstract_printer_test.rb
ruby-prof-1.6.2-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.6.2 test/abstract_printer_test.rb
ruby-prof-1.6.1 test/abstract_printer_test.rb
ruby-prof-1.6.1-x64-mingw-ucrt test/abstract_printer_test.rb