assertPosEqual checks that a Location matches expected values.
(t *testing.T, label string, loc models.Location, wantLine, wantCol int)
| 61 | |
| 62 | // assertPosEqual checks that a Location matches expected values. |
| 63 | func assertPosEqual(t *testing.T, label string, loc models.Location, wantLine, wantCol int) { |
| 64 | t.Helper() |
| 65 | if loc.Line != wantLine || loc.Column != wantCol { |
| 66 | t.Errorf("%s: expected line=%d col=%d, got line=%d col=%d", |
| 67 | label, wantLine, wantCol, loc.Line, loc.Column) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // ----------------------------------------------------------------------------- |
| 72 | // TestSelectStatementPosition verifies SELECT statement position |
no test coverage detected