(t *testing.T)
| 1285 | } |
| 1286 | |
| 1287 | func TestNodeBudgetDisabled(t *testing.T) { |
| 1288 | config := conf.CreateNew() |
| 1289 | config.MaxNodes = 0 // Disable node budget |
| 1290 | |
| 1291 | expr := strings.Repeat("a + ", 1000) + "b" |
| 1292 | _, err := parser.ParseWithConfig(expr, config) |
| 1293 | |
| 1294 | if err != nil && strings.Contains(err.Error(), "exceeds maximum allowed nodes") { |
| 1295 | t.Error("Node budget check should be disabled when MaxNodes is 0") |
| 1296 | } |
| 1297 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…