testproto

package
v19.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHasJSONNameSetRecursive

func AssertHasJSONNameSetRecursive(t *testing.T, desc protoreflect.MessageDescriptor)

AssertHasJSONNameSetRecursive checks every field of a gitlab.agent.* message reachable from desc: the field must set json_name to its own name.

protoc fills in json_name for every field before code generation, so HasJSONName is true for any generated descriptor, and a field without json_name only fails when its derived JSON name differs from its name.

func VisitFieldsRecursive

func VisitFieldsRecursive(desc protoreflect.MessageDescriptor, v func(field protoreflect.FieldDescriptor))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL