Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    func TestLazyMapType(t *testing.T) {
    	env, variablesType, err := buildTestEnv()
    	if err != nil {
    		t.Fatal(err)
    	}
    	variablesMap := NewMapValue(variablesType)
    	activation := &testActivation{variables: variablesMap}
    
    	// add foo as a string
    	variablesType.Fields["foo"] = apiservercel.NewDeclField("foo", apiservercel.StringType, true, nil, nil)
    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