Enum tests an protoreflect.EnumType implementation.
type Enum struct{}
func (test Enum) Test(t testing.TB, et protoreflect.EnumType)
Message tests a message implementation.
type Message struct { // Resolver is used to determine the list of extension fields to test with. // If nil, this defaults to using protoregistry.GlobalTypes. Resolver interface { FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) } }
func (test Message) Test(t testing.TB, mt protoreflect.MessageType)
Test performs tests on a protoreflect.MessageType implementation.