mocks

package
v0.0.0-...-e080771 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

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

func (*Client) Session

func (_m *Client) Session(actor string, emulator string) (providermetadata.Session, error)

Session provides a mock function with given fields: actor, emulator

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession

func NewSession(t mockConstructorTestingTNewSession) *Session

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

func (*Session) Create

func (_m *Session) Create(ctx context.Context, provider service.ProviderModel) (common.ID, error)

Create provides a mock function with given fields: ctx, provider

func (*Session) Delete

Delete provides a mock function with given fields: ctx, id

func (*Session) Get

func (_m *Session) Get(ctx context.Context, id common.ID) (*service.ProviderModel, error)

Get provides a mock function with given fields: ctx, id

func (*Session) List

func (_m *Session) List(ctx context.Context) ([]service.ProviderModel, error)

List provides a mock function with given fields: ctx

func (*Session) Update

func (_m *Session) Update(ctx context.Context, provider service.ProviderModel) error

Update provides a mock function with given fields: ctx, provider

Jump to

Keyboard shortcuts

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