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 lib/test/unit/testcase.rb, line 840 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 lib/test/unit/testcase.rb, line 857 def assign_test_data(label, data) @test_data_label = label @test_data = data end
have_test_data?()
click to toggle source
# File lib/test/unit/testcase.rb, line 862 def have_test_data? not @test_data_label.nil? end
interrupted()
click to toggle source
# File lib/test/unit/testcase.rb, line 878 def interrupted @interrupted = true end
interrupted?()
click to toggle source
# File lib/test/unit/testcase.rb, line 853 def interrupted? @interrupted end
passed?()
click to toggle source
# File lib/test/unit/testcase.rb, line 849 def passed? @passed end
problem_occurred()
click to toggle source
# File lib/test/unit/testcase.rb, line 874 def problem_occurred @passed = false end
test_finished()
click to toggle source
# File lib/test/unit/testcase.rb, line 870 def test_finished @elapsed_time = Time.now - @start_time end
test_started()
click to toggle source
# File lib/test/unit/testcase.rb, line 866 def test_started @start_time = Time.now end