MCPcopy
hub / github.com/protocolbuffers/protobuf-go / zeroList

Struct zeroList

internal/reflection_test/reflection_test.go:532–535  ·  view source on GitHub ↗

testList implements protoreflect.List over a concrete slice of values.

Source from the content-addressed store, hash-verified

530
531// testList implements protoreflect.List over a concrete slice of values.
532type zeroList struct {
533 typ reflect.Type
534 fd protoreflect.FieldDescriptor
535}
536
537func (x *zeroList) Len() int { return 0 }
538func (x *zeroList) Get(n int) protoreflect.Value { panic("get on zero list") }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected