testutil

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Directory for generated cmd output from sample test proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	Conn *grpc.ClientConn
}

func (*ApiClient) Request

func (s *ApiClient) Request(ctx context.Context, in *testgen.TestGen) (*testgen.TestGen, error)

type CliClient

type CliClient struct {
	BaseArgs []string
	RunOps   []wrapper.RunOp
}

func (*CliClient) Request

func (s *CliClient) Request(ctx context.Context, in *testgen.TestGen) (*testgen.TestGen, error)

type Client

type Client interface {
	TestApiClient
}

type CustomData

type CustomData struct{}

type DummyServer

type DummyServer struct {
	CustomData
	ShowDummyCount   int
	CudNoop          bool
	MidstreamFailChs map[string]chan bool
}

func RegisterDummyServer

func RegisterDummyServer(server *grpc.Server) *DummyServer

func (*DummyServer) DisableMidstreamFailure

func (s *DummyServer) DisableMidstreamFailure(api string)

func (*DummyServer) EnableMidstreamFailure

func (s *DummyServer) EnableMidstreamFailure(api string, syncCh chan bool)

type InternalCUDAPIs

type InternalCUDAPIs interface {
}

type Run

type Run struct {
	Mode string
	Rc   *bool
	// contains filtered or unexported fields
}

duplicate of testutil.Run for sample generator checking.

func (*Run) TestApi_TestGen

func (r *Run) TestApi_TestGen(data *[]testgen.TestGen, dataMap interface{}, dataOut interface{})

type TestApiClient

type TestApiClient interface {
	Request(ctx context.Context, in *testgen.TestGen) (*testgen.TestGen, error)
}

Jump to

Keyboard shortcuts

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