Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 517 Bytes

File metadata and controls

15 lines (9 loc) · 517 Bytes

codeql_lsp_diagnostics/syntax_validation

PURPOSE

Tests that codeql_lsp_diagnostics detects syntax errors in invalid QL code.

INPUTS

  • ql_code: Invalid QL snippet with syntax errors (invalid_type x\nwhere x = "test"\nselect x, "This has syntax errors").

EXPECTED OUTPUTS

  • isValid is false with one or more error diagnostics.
  • The test_query.ql file remains unchanged (identical in before/ and after/).
  • Monitoring state updated to record a successful codeql_lsp_diagnostics call.