Sha256: ea95202a136feb3c5233c4b892bbba4ce4f6ea0f19907a4c12e370e4338f4f78

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

#! /usr/bin/env ruby
require File.dirname(__FILE__) + '/test_helper.rb'
require '_test-util'

class MonitorTest < Test::Unit::TestCase
  include TestUtil

  def foo
    1
  end

  def test_monitor
    monitor = Gonzui::PerformanceMonitor.new
    assert(monitor.empty?)
    assert_equal("", monitor.format([MonitorTest, :foo]))
    monitor.profile(self, :foo)
    assert(!monitor.empty?)
    summary = monitor.format([MonitorTest, :foo],
                             [MonitorTest, :foo])
    assert(summary.is_a?(String))
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gonzui-1.2-x86-mswin32-60 test/test_monitor.rb
gonzui-1.2 test/test_monitor.rb