(t *testing.T)
| 175 | } |
| 176 | |
| 177 | func TestPutExpression(t *testing.T) { |
| 178 | // Test putting nil expression |
| 179 | PutExpression(nil) |
| 180 | |
| 181 | // Test putting Identifier |
| 182 | ident := &Identifier{Name: "test"} |
| 183 | PutExpression(ident) |
| 184 | |
| 185 | // Test putting BinaryExpression |
| 186 | binExpr := &BinaryExpression{ |
| 187 | Left: &Identifier{Name: "id"}, |
| 188 | Operator: "=", |
| 189 | Right: &Identifier{Name: "1"}, |
| 190 | } |
| 191 | PutExpression(binExpr) |
| 192 | } |
nothing calls this directly
no test coverage detected