Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for compileAndRun (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    	variablesMap.Append("dict", func(_ *MapValue) ref.Val {
    		evalCounter++
    		v, err := compileAndRun(env, activation, `{"a": "a"}`)
    		if err != nil {
    			return types.NewErr(err.Error())
    		}
    		return v
    	})
    
    	// iterate the map with .all
    	exp = `variables.all(n, n != "")`
    	v, err = compileAndRun(env, activation, exp)
    	if err != nil {
    		t.Fatalf("%q: %v", exp, err)
    	}
    	if v.Value().(bool) != true {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top