kubernetes/staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go

type mockTypeResolver

type mockTypeRef

func newMockTypeRef(resolver common.TypeResolver, name string) *mockTypeRef {}

func (m *mockTypeRef) HasTrait(trait int) bool {}

func (m *mockTypeRef) TypeName() string {}

func (m *mockTypeRef) CELType() *types.Type {}

func (m *mockTypeRef) Field(name string) (*types.FieldType, bool) {}

func (m *mockTypeRef) Val(fields map[string]ref.Val) ref.Val {}

func (m *mockTypeResolver) Resolve(name string) (common.TypeRef, bool) {}

type mockTypeResolverForOptional

type mockTypeRefForOptional

// Field returns a mock FieldType, or false if the field should not exist.
func (m *mockTypeRefForOptional) Field(name string) (*types.FieldType, bool) {}

func (m *mockTypeResolverForOptional) Resolve(name string) (common.TypeRef, bool) {}