class TestFaultLocationDetector::TestSourceLocation::TestOneLine
Public Instance Methods
other_method()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 81 def other_method # body end
test_brace()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 74 def test_brace target_line_number = nil test_case = Class.new(Test::Unit::TestCase) do include AlwaysFailAssertion test("failed") {target_line_number = __LINE__; assert_always_failed} def other_method # body end end fault = run_test_case(test_case) assert_detect(fault, target_line_number) end
test_do_end()
click to toggle source
# File test-unit-3.3.4/test/test-fault-location-detector.rb, line 90 def test_do_end target_line_number = nil test_case = Class.new(Test::Unit::TestCase) do include AlwaysFailAssertion test "failed" do target_line_number = __LINE__; assert_always_failed; end def other_method # body end end fault = run_test_case(test_case) assert_detect(fault, target_line_number) end