- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ConvertToObject (0.25 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
mv1 := NewMapValue() mv1.AddField(name) mv1.AddField(priority) obj1 := mv1.ConvertToObject(objType) if obj1.Equal(obj1) != types.True { t.Errorf("obj1.Equal(obj1) failed, got: %v", obj1.Equal(obj1)) } mv2 := NewMapValue() mv2.AddField(name) mv2.AddField(priority) mv2.AddField(message) obj2 := mv2.ConvertToObject(objType) if obj1.Equal(obj2) == types.True {
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
type MapValue struct { *structValue } // ConvertToObject produces an ObjectValue from the MapValue with the associated schema type. // // The conversion is shallow and the memory shared between the Object and Map as all references // to the map are expected to be replaced with the Object reference. func (m *MapValue) ConvertToObject(declType *DeclType) *ObjectValue { return &ObjectValue{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 20.5K bytes - Viewed (0)