Sha256: ef3ea57c2291b2c3b8509d7eb805d5140387f85d64a40c48e6caabad39c4766d

Contents?: true

Size: 452 Bytes

Versions: 9

Compression:

Stored size: 452 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'ruby-prof'
require 'prime'
require 'test_helper'


# --  Tests ----
class PrimeTest < Test::Unit::TestCase
  def test_consistency
    result = RubyProf.profile do
      run_primes
    end
    
    result.threads.values.each do |methods|
      methods.each do |method|
        check_parent_times(method)
        check_parent_calls(method)
        check_child_times(method)   
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jeremy-ruby-prof-0.6.1 test/prime_test.rb
ruby-prof-0.5.2-mswin32 test/prime_test.rb
ruby-prof-0.5.1-mswin32 test/prime_test.rb
ruby-prof-0.5.0-mswin32 test/prime_test.rb
ruby-prof-0.5.2 test/prime_test.rb
ruby-prof-0.6.0 test/prime_test.rb
ruby-prof-0.6.0-x86-mswin32-60 test/prime_test.rb
ruby-prof-0.5.1 test/prime_test.rb
ruby-prof-0.5.0 test/prime_test.rb