MCPcopy Index your code
hub / github.com/expr-lang/expr / TestMaxNodesDisabled

Function TestMaxNodesDisabled

expr_test.go:2857–2865  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2855}
2856
2857func 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
2867func TestMemoryBudget(t *testing.T) {
2868 tests := []struct {

Callers

nothing calls this directly

Calls 3

CompileFunction · 0.92
MaxNodesFunction · 0.92
NoErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…