ggrpctest

package
v0.0.0-...-40b18d3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 9 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 {
	Server *ggrpc.GordianGRPC
	Client ggrpc.GordianGRPCClient

	// TODO: either pull up the rest of the necessary fields from GRPCServerConfig
	// or just outright expose GRPCServerConfig.
	FinalizationStore *tmmemstore.FinalizationStore
	MirrorStore       *tmmemstore.MirrorStore
	TxStore           *txmemstore.Store
}

Fixture contains a gRPC server and client, ready to use for testing the gRPC services.

func NewFixture

func NewFixture(t *testing.T, ctx context.Context) Fixture

NewFixture returns a new fixture whose lifecycle is associated with the given context. It registers cleanup through t.Cleanup. The caller must be sure to defer context cancellation in order for the fixture to shut down properly.

Jump to

Keyboard shortcuts

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