class Test::Unit::TestCase::InternalData

Attributes

elapsed_time[R]
start_time[R]
test_data[R]
test_data_label[R]

Public Class Methods

new() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 894
def initialize
  @start_time = nil
  @elapsed_time = nil
  @passed = true
  @interrupted = false
  @test_data_label = nil
  @test_data = nil
end

Public Instance Methods

assign_test_data(label, data) click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 911
def assign_test_data(label, data)
  @test_data_label = label
  @test_data = data
end
have_test_data?() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 916
def have_test_data?
  not @test_data_label.nil?
end
interrupted() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 932
def interrupted
  @interrupted = true
end
interrupted?() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 907
def interrupted?
  @interrupted
end
passed?() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 903
def passed?
  @passed
end
problem_occurred() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 928
def problem_occurred
  @passed = false
end
test_finished() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 924
def test_finished
  @elapsed_time = Time.now - @start_time
end
test_started() click to toggle source
# File test-unit-3.5.3/lib/test/unit/testcase.rb, line 920
def test_started
  @start_time = Time.now
end