grpcxtest

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture struct {
	Timeout    time.Duration
	ServerOpts []grpcx.ServerOption
	Services   []grpcx.Service
	Name       string
	Test       TestFunc
	ClientMeta map[string]string
}

Fixture is a test fixture that runs a test against a grpc client connection pointed at the test server

func (*Fixture) RunTest

func (f *Fixture) RunTest(t *testing.T)

RunTest runs the test against a grpc client connection pointed at the test server

type TestFunc

type TestFunc func(t *testing.T, ctx context.Context, client grpc.ClientConnInterface)

TestFunc is a function that runs a test against a grpc client connection pointed at the test server

Jump to

Keyboard shortcuts

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