(t *testing.T)
| 382 | } |
| 383 | |
| 384 | func TestKeywordDocumentation(t *testing.T) { |
| 385 | // Test that we have documentation for common keywords |
| 386 | keywords := []string{ |
| 387 | "SELECT", "FROM", "WHERE", "JOIN", "INSERT", "UPDATE", "DELETE", |
| 388 | "CREATE", "DROP", "ALTER", "GROUP", "ORDER", "HAVING", "LIMIT", |
| 389 | } |
| 390 | |
| 391 | for _, kw := range keywords { |
| 392 | doc := getKeywordDocumentation(kw) |
| 393 | if doc == "" { |
| 394 | t.Errorf("missing documentation for keyword %s", kw) |
| 395 | } |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | func TestExtractPositionFromError(t *testing.T) { |
| 400 | content := "SELECT *\nFROM users\nWHERE id = 1" |
nothing calls this directly
no test coverage detected