(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestFilterEmptyStatements(t *testing.T) { |
| 20 | statements := []Statement{ |
| 21 | {Text: "SELECT 1", Empty: false}, |
| 22 | {Text: "", Empty: true}, |
| 23 | {Text: "SELECT 2", Empty: false}, |
| 24 | {Text: "-- comment", Empty: true}, |
| 25 | } |
| 26 | |
| 27 | result := FilterEmptyStatements(statements) |
| 28 | |
| 29 | require.Len(t, result, 2) |
| 30 | require.Equal(t, "SELECT 1", result[0].Text) |
| 31 | require.Equal(t, "SELECT 2", result[1].Text) |
| 32 | } |
| 33 | |
| 34 | func TestExtractASTs(t *testing.T) { |
| 35 | ast1 := &testAST{start: &storepb.Position{Line: 1}} |
nothing calls this directly
no test coverage detected