prototest
package v1.36.11
Go to latest Published: Dec 12, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:12 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package prototest exercises protobuf reflection.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeMessage¶
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(fieldprotoreflect.FullName) (protoreflect.ExtensionType,error)FindExtensionByNumber(messageprotoreflect.FullName, fieldprotoreflect.FieldNumber) (protoreflect.ExtensionType,error)RangeExtensionsByMessage(messageprotoreflect.FullName, f func(protoreflect.ExtensionType)bool)}// UnmarshalOptions are respected for every Unmarshal call this package// does. The Resolver and AllowPartial fields are overridden.UnmarshalOptionsproto.UnmarshalOptions}Message tests a message implementation.
func (Message)Test¶
func (testMessage) Test(ttesting.TB, mtprotoreflect.MessageType)
Test performs tests on aprotoreflect.MessageType implementation.
Click to show internal directories.
Click to hide internal directories.