Parse a test file to extract the line ranges of all tests in both method-style (def test_foo) and declarative-style (test “foo” do)