testing

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromConn

func ClientFromConn(conn *grpc.ClientConn) func(_ *cobra.Command) (client.Client, error)

func CreateTestCobraCommandWithFlagValue

func CreateTestCobraCommandWithFlagValue(t *testing.T, flagAndValues ...any) *cobra.Command

func NewTestServer

func NewTestServer(ctx context.Context, t *testing.T) server.RunnableServer

Types

type BoolFlag

type BoolFlag struct {
	FlagName  string
	FlagValue bool
	Changed   bool
}

type DurationFlag

type DurationFlag struct {
	FlagName  string
	FlagValue time.Duration
	Changed   bool
}

type IntFlag

type IntFlag struct {
	FlagName  string
	FlagValue int
	Changed   bool
}

type StringFlag

type StringFlag struct {
	FlagName  string
	FlagValue string
	Changed   bool
}

type UintFlag

type UintFlag struct {
	FlagName  string
	FlagValue uint
	Changed   bool
}

type UintFlag32

type UintFlag32 struct {
	FlagName  string
	FlagValue uint32
	Changed   bool
}

Jump to

Keyboard shortcuts

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