(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func 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 | |
| 73 | func TestScan_Tautology_NumericEquality(t *testing.T) { |
| 74 | scanner := NewScanner() |
nothing calls this directly
no test coverage detected