(t *testing.T)
| 2855 | } |
| 2856 | |
| 2857 | func TestMaxNodesDisabled(t *testing.T) { |
| 2858 | code := "" |
| 2859 | for i := 0; i < 2*int(conf.DefaultMaxNodes); i++ { |
| 2860 | code += "1; " |
| 2861 | } |
| 2862 | |
| 2863 | _, err := expr.Compile(code, expr.MaxNodes(0)) |
| 2864 | require.NoError(t, err) |
| 2865 | } |
| 2866 | |
| 2867 | func TestMemoryBudget(t *testing.T) { |
| 2868 | tests := []struct { |