class Test::Unit::TestCase::InternalData - test-unit: Ruby Standard Library Documentation

# 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.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

### Public Instance Methods

assign_test_data(label, data) click to toggle source

    # 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?() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 941
    def have_test_data?
      not @test_data_label.nil?
    end

interrupted() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 957
    def interrupted
      @interrupted = true
    end

interrupted?() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 932
    def interrupted?
      @interrupted
    end

passed?() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 928
    def passed?
      @passed
    end

problem_occurred() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 953
    def problem_occurred
      @passed = false
    end

test_finished() click to toggle source

    # 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() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/testcase.rb, line 945
    def test_started
      @start_time = Time.now
    end