- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewMapValue (0.26 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
} } func TestMapValueNotEqual(t *testing.T) { mv := NewMapValue() name := NewField(1, "name") name.Ref = testValue(t, 2, "alert") priority := NewField(3, "priority") priority.Ref = testValue(t, 4, int64(4)) mv.AddField(name) mv.AddField(priority) mv2 := NewMapValue() mv2.AddField(name) if mv.Equal(mv2) != types.False {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value.go
return o.objectType } // Value returns the Go-native representation of the object. func (o *ObjectValue) Value() interface{} { return o } // NewMapValue returns an empty MapValue. func NewMapValue() *MapValue { return &MapValue{ structValue: newStructValue(), } } // MapValue declares an object with a set of named fields whose values are dynamically typed.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types.go
return &DeclType{ name: "map", KeyType: key, ElemType: elem, MaxElements: maxProperties, celType: cel.MapType(key.CelType(), elem.CelType()), defaultValue: NewMapValue(), // a map can always be represented as {} in JSON, so hardcode the min size // to 2 MinSerializedSize: 2, } } // NewObjectType creates an object type with a qualified name and a set of field declarations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 18K bytes - Viewed (0)