- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExprValue (0.09 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/value.go
func (dv *DynValue) SetValue(value interface{}) error { dv.value = value var err error dv.exprValue, dv.declType, err = exprValue(value) return err } // Type returns the CEL type for the given value. func (dv *DynValue) Type() ref.Type { return dv.ExprValue().Type() } func exprValue(value interface{}) (ref.Val, *DeclType, error) { switch v := value.(type) { case bool:
Registered: 2024-06-15 01:39 - Last Modified: 2022-10-10 22:05 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
NewObjectValue(NewObjectType("TestObject", map[string]*DeclField{})), } for i, v := range vals { dv := testValue(t, int64(i), v) if dv.Equal(dv.ExprValue()) != types.True { t.Errorf("got %v, wanted dyn value %v equal to itself", dv.Equal(dv.ExprValue()), dv.ExprValue()) } } } func TestListValueAdd(t *testing.T) { lv := NewListValue() lv.Append(testValue(t, 1, "first")) ov := NewListValue()
Registered: 2024-06-15 01:39 - Last Modified: 2022-10-10 22:05 - 10.4K bytes - Viewed (0)