MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestScan_EmptyAST

Function TestScan_EmptyAST

pkg/sql/security/scanner_test.go:64–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestScan_EmptyAST(t *testing.T) {
65 scanner := NewScanner()
66 tree := &ast.AST{Statements: []ast.Statement{}}
67 result := scanner.Scan(tree)
68 if len(result.Findings) != 0 {
69 t.Errorf("expected 0 findings for empty AST, got %d", len(result.Findings))
70 }
71}
72
73func TestScan_Tautology_NumericEquality(t *testing.T) {
74 scanner := NewScanner()

Callers

nothing calls this directly

Calls 3

ScanMethod · 0.95
NewScannerFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected