tests

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEnum

func ValidateEnum(t *testing.T, e protoreflect.Enum, names EnumNames, values EnumValues)

ValidateEnum performs basic validation of an enum.

func ValidateMessage

func ValidateMessage(t *testing.T, m proto.Message)

ValidateMessage performs basic validation of a message.

func ValidateTag

func ValidateTag(t *testing.T, m proto.Message, field, tag, value string)

ValidateTag performs basic validation of a struct tag.

Types

type EnumNames

type EnumNames = map[int32]string

EnumNames is a type alias for map[int32]string.

type EnumValues

type EnumValues = map[string]int32

EnumValues is a type alias for map[string]int32.

Directories

Path Synopsis
sub

Jump to

Keyboard shortcuts

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