testing

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package testing provides utility methods for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(t *testing.T) context.Context

NewContext returns a context appropriate for calling a gRPC service that is not hosted on a cluster or in Minimatch, (ie: tests not in test/e2e/). For those tests use OM.Context() method.

func NewGRPCDialOptions added in v0.9.0

func NewGRPCDialOptions(grpcLogger *logrus.Entry) []grpc.DialOption

NewGRPCDialOptions returns the grpc DialOptions for testing internal grpc clients with loadbalancing, tracing, and logging setups

func NewGRPCServerOptions added in v0.9.0

func NewGRPCServerOptions(grpcLogger *logrus.Entry) []grpc.ServerOption

NewGRPCServerOptions returns the grpc testing DialOptions for internal grpc servers with loadbalancing, tracing, and logging setups

Types

This section is empty.

Jump to

Keyboard shortcuts

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