mocks

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleAuthClient

type GoogleAuthClient struct {
	mock.Mock
}

GoogleAuthClient is an autogenerated mock type for the GoogleAuthClient type

func NewGoogleAuthClient

func NewGoogleAuthClient(t testing.TB) *GoogleAuthClient

NewGoogleAuthClient creates a new instance of GoogleAuthClient. It also registers a cleanup function to assert the mocks expectations.

func (*GoogleAuthClient) RetrieveAccessToken

func (_m *GoogleAuthClient) RetrieveAccessToken(ctx context.Context, code string) (*service.GoogleAuthResponse, error)

RetrieveAccessToken provides a mock function with given fields: ctx, code

func (*GoogleAuthClient) RetrieveUserInfo

func (_m *GoogleAuthClient) RetrieveUserInfo(ctx context.Context, googleAuthResponse *service.GoogleAuthResponse) (*service.GoogleUserInfo, error)

RetrieveUserInfo provides a mock function with given fields: ctx, googleAuthResponse

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t testing.TB) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a cleanup function to assert the mocks expectations.

func (*Transaction) Do

Do provides a mock function with given fields: ctx, fn

Jump to

Keyboard shortcuts

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