prototest

package
v2.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAny

func NewAny(t *testing.T, m proto.Message) *anypb.Any

NewAny creates a new *anypb.Any from a proto.Message with an assert that no error has been thrown.

func NewAnyWithPanic

func NewAnyWithPanic(m proto.Message) *anypb.Any

NewAny creates a new *anypb.Any from a proto.Message with a panic if an error has been thrown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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