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.3.4/lib/test/unit/testcase.rb, line 855
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.3.4/lib/test/unit/testcase.rb, line 872
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.3.4/lib/test/unit/testcase.rb, line 877
def have_test_data?
  not @test_data_label.nil?
end
interrupted() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 893
def interrupted
  @interrupted = true
end
interrupted?() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 868
def interrupted?
  @interrupted
end
passed?() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 864
def passed?
  @passed
end
problem_occurred() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 889
def problem_occurred
  @passed = false
end
test_finished() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 885
def test_finished
  @elapsed_time = Time.now - @start_time
end
test_started() click to toggle source
# File test-unit-3.3.4/lib/test/unit/testcase.rb, line 881
def test_started
  @start_time = Time.now
end