(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestScan_NilAST(t *testing.T) { |
| 54 | scanner := NewScanner() |
| 55 | result := scanner.Scan(nil) |
| 56 | if result == nil { |
| 57 | t.Fatal("Scan returned nil for nil AST") |
| 58 | } |
| 59 | if len(result.Findings) != 0 { |
| 60 | t.Errorf("expected 0 findings for nil AST, got %d", len(result.Findings)) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func TestScan_EmptyAST(t *testing.T) { |
| 65 | scanner := NewScanner() |
nothing calls this directly
no test coverage detected