123456789_123456789_123456789_123456789_123456789_

Class: Test::Unit::SubTestResult

Relationships & Source Files
Inherits: Object
Defined in: lib/test/unit/sub-test-result.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(parent_test_result) ⇒ SubTestResult

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 12

def initialize(parent_test_result)
  @parent_test_result = parent_test_result
  @stop_tag = nil
end

Instance Attribute Details

#passed?Boolean (readonly)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 42

def passed?
  @parent_test_result.passed?
end

#stop_tag (rw)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 10

attr_accessor :stop_tag

Instance Method Details

#add_assertion

Records an individual assertion.

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 26

def add_assertion
  @parent_test_result.add_assertion
end

#add_error(error)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 30

def add_error(error)
  @parent_test_result.add_error(error)
end

#add_failure(failure)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 34

def add_failure(failure)
  @parent_test_result.add_failure(failure)
end

#add_omission(omission)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 38

def add_omission(omission)
  @parent_test_result.add_omission(omission)
end

#add_pass

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 21

def add_pass
  @parent_test_result.add_pass
end

#add_run(result = self)

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 17

def add_run(result=self)
  @parent_test_result.add_run(result)
end

#stop

[ GitHub ]

  
# File 'lib/test/unit/sub-test-result.rb', line 46

def stop
  throw @stop_tag
end