tgrpc

package
v0.0.0-...-33a4775 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCAnyCastAs

func GRPCAnyCastAs[T proto.Message](t *testing.T, in *anypb.Any, v T)

func NewGRPCClient

func NewGRPCClient[T any](t *testing.T, ctx context.Context, in func(cc grpc.ClientConnInterface) T, addr string, opts ...grpc.DialOption) T

Types

type ErrorStatusValidator

type ErrorStatusValidator interface {
	Code(t *testing.T, code codes.Code) ErrorStatusValidator
	Errorf(t *testing.T, msg string, args ...interface{}) ErrorStatusValidator
}

func AsGRPCError

func AsGRPCError(t *testing.T, err error) ErrorStatusValidator

Jump to

Keyboard shortcuts

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