mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t mockConstructorTestingTNewAPI) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*API) Close

func (_m *API) Close() error

Close provides a mock function with given fields:

func (*API) GetTrace

func (_m *API) GetTrace(_a0 context.Context, _a1 *cloudtrace.TraceQuery) (*trace.Trace, error)

GetTrace provides a mock function with given fields: _a0, _a1

func (*API) ListProjects

func (_m *API) ListProjects(_a0 context.Context) ([]string, error)

ListProjects provides a mock function with given fields: _a0

func (*API) ListTraces

func (_m *API) ListTraces(_a0 context.Context, _a1 *cloudtrace.TracesQuery) ([]*trace.Trace, error)

ListTraces provides a mock function with given fields: _a0, _a1

func (*API) TestConnection

func (_m *API) TestConnection(ctx context.Context, projectID string) error

TestConnection provides a mock function with given fields: ctx, projectID

Jump to

Keyboard shortcuts

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