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.
Click to show internal directories.
Click to hide internal directories.