Sha256: bae3ac63314c16a971880d2735e4aed196cf91b9ef5fe9efac1f3dec34507433

Contents?: true

Size: 464 Bytes

Versions: 26

Compression:

Stored size: 464 Bytes

Contents

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

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

# Make sure this works with no class or method
result = RubyProf.profile do
  sleep 1
end

methods = result.threads.first.methods
global_method = methods.sort_by {|method| method.full_name}.first
if global_method.full_name != 'Kernel#sleep'
  raise(RuntimeError, "Wrong method name.  Expected: Global#[No method].  Actual: #{global_method.full_name}")
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
ruby-prof-1.5.0-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.5.0 test/no_method_class_test.rb
ruby-prof-1.4.5-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.4.5 test/no_method_class_test.rb
ruby-prof-1.4.4-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.4.4 test/no_method_class_test.rb
ruby-prof-1.4.3-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.4.3 test/no_method_class_test.rb
ruby-prof-1.4.2-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.4.2 test/no_method_class_test.rb
ruby-prof-1.4.1-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.4.1 test/no_method_class_test.rb
ruby-prof-1.4.0-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.4.0 test/no_method_class_test.rb
ruby-prof-1.3.2 test/no_method_class_test.rb
ruby-prof-1.3.1-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.3.1 test/no_method_class_test.rb
ruby-prof-1.3.0-x64-mingw32 test/no_method_class_test.rb
ruby-prof-1.3.0 test/no_method_class_test.rb
ruby-prof-1.2.0 test/no_method_class_test.rb