class TestFaultLocationDetector::TestMethodName
Public Class Methods
target_line_number()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 114 def target_line_number @@target_line_number end
target_line_number=(line_number)
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 118 def target_line_number=(line_number) @@target_line_number = line_number end
Public Instance Methods
test_detected()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 109 def test_detected test_case = Class.new(Test::Unit::TestCase) do include AlwaysFailAssertion class << self def target_line_number @@target_line_number end def target_line_number=(line_number) @@target_line_number = line_number end end def test_failed self.class.target_line_number = __LINE__; assert_always_failed end end fault = run_test_case(test_case) assert_detect(fault, test_case.target_line_number) end
test_failed()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 123 def test_failed self.class.target_line_number = __LINE__; assert_always_failed end