(t *testing.T)
| 249 | } |
| 250 | |
| 251 | func TestTSQL_BracketIdentifierValid(t *testing.T) { |
| 252 | tkz := newSQLServerTokenizer(t) |
| 253 | tokens := tokenize(t, tkz, "[My Column]") |
| 254 | if len(tokens) != 1 { |
| 255 | t.Fatalf("expected 1 token, got %d", len(tokens)) |
| 256 | } |
| 257 | if tokens[0].Token.Type != models.TokenTypeIdentifier { |
| 258 | t.Errorf("expected TokenTypeIdentifier, got %v", tokens[0].Token.Type) |
| 259 | } |
| 260 | if tokens[0].Token.Value != "My Column" { |
| 261 | t.Errorf("expected value 'My Column', got %q", tokens[0].Token.Value) |
| 262 | } |
| 263 | } |
nothing calls this directly
no test coverage detected