Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

test

v1.51.4
github.com/lfch/grpc/admin/test

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

6 matches

Top ↑

Package test contains test only functions for package admin. It's used by admin/admin_test.go and admin/test/admin_test.go.

Functions

RunCSDS

func RunCSDS(conn *grpc.ClientConn) error

RunCSDS makes a CSDS RPC.

RunChannelz

func RunChannelz(conn *grpc.ClientConn) error

RunChannelz makes a channelz RPC.

RunRegisterTests

func RunRegisterTests(t *testing.T, ec ExpectedStatusCodes)

RunRegisterTests makes a client, runs the RPCs, and compares the status codes.

Types

ExpectedStatusCodes

type ExpectedStatusCodes struct {
	ChannelzCode codes.Code
	CSDSCode     codes.Code
}

ExpectedStatusCodes contains the expected status code for each RPC (can be OK).

Dependency graph