class Test::Unit::TestCase::InternalData
属性
elapsed_time[R]
start_time[R]
test_data[R]
test_data_label[R]
公共类方法
new() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 919 def initialize @start_time = nil @elapsed_time = nil @passed = true @interrupted = false @test_data_label = nil @test_data = nil end
公共实例方法
assign_test_data(label, data) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 936 def assign_test_data(label, data) @test_data_label = label @test_data = data end
have_test_data?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 941 def have_test_data? not @test_data_label.nil? end
interrupted() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 957 def interrupted @interrupted = true end
interrupted?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 932 def interrupted? @interrupted end
passed?() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 928 def passed? @passed end
problem_occurred() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 953 def problem_occurred @passed = false end
test_finished() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 949 def test_finished @elapsed_time = Time.now - @start_time end
test_started() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/testcase.rb, line 945 def test_started @start_time = Time.now end