123456789_123456789_123456789_123456789_123456789_

Class: Test::Unit::TestCase::InternalData

Relationships & Source Files
Inherits: Object
Defined in: lib/test/unit/testcase.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newInternalData

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 787

def initialize
  @start_time = nil
  @elapsed_time = nil
  @passed = true
  @interrupted = false
  @test_data_label = nil
  @test_data = nil
end

Instance Attribute Details

#elapsed_time (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 785

attr_reader :start_time, :elapsed_time

#have_test_data?Boolean (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 809

def have_test_data?
  not @test_data_label.nil?
end

#interrupted?Boolean (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 800

def interrupted?
  @interrupted
end

#passed?Boolean (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 796

def passed?
  @passed
end

#start_time (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 785

attr_reader :start_time, :elapsed_time

#test_data (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 786

attr_reader :test_data_label, :test_data

#test_data_label (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 786

attr_reader :test_data_label, :test_data

Instance Method Details

#assign_test_data(label, data)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 804

def assign_test_data(label, data)
  @test_data_label = label
  @test_data = data
end

#interrupted (readonly)

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 825

def interrupted
  @interrupted = true
end

#problem_occurred

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 821

def problem_occurred
  @passed = false
end

#test_finished

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 817

def test_finished
  @elapsed_time = Time.now - @start_time
end

#test_started

[ GitHub ]

  
# File 'lib/test/unit/testcase.rb', line 813

def test_started
  @start_time = Time.now
end