class Test::Unit::SubTestResult - test-unit: Ruby Standard Library Documentation

# class Test::Unit::SubTestResult

### Attributes

stop_tag[RW]

### Public Class Methods

new(parent_test_result) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 12
    def initialize(parent_test_result)
      @parent_test_result = parent_test_result
      @stop_tag = nil
    end

### Public Instance Methods

add_assertion() click to toggle source

Records an individual assertion.

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 26
    def add_assertion
      @parent_test_result.add_assertion
    end

add_error(error) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 30
    def add_error(error)
      @parent_test_result.add_error(error)
    end

add_failure(failure) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 34
    def add_failure(failure)
      @parent_test_result.add_failure(failure)
    end

add_notification(notification) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 46
    def add_notification(notification)
      @parent_test_result.add_notification(notification)
    end

add_omission(omission) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 42
    def add_omission(omission)
      @parent_test_result.add_omission(omission)
    end

add_pass() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 21
    def add_pass
      @parent_test_result.add_pass
    end

add_pending(pending) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 38
    def add_pending(pending)
      @parent_test_result.add_pending(pending)
    end

add_run(result=self) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 17
    def add_run(result=self)
      @parent_test_result.add_run(result)
    end

passed?() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 50
    def passed?
      @parent_test_result.passed?
    end

stop() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/sub-test-result.rb, line 54
    def stop
      throw @stop_tag
    end