fake

package
v1.40.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAuthenticator

type FakeAuthenticator struct {
	GetTokenStub func() (*auth.TokenResponse, *errors.ApiError)

	WipeCachedTokensStub func() error
	// contains filtered or unexported fields
}

func (*FakeAuthenticator) GetToken

func (fake *FakeAuthenticator) GetToken() (*auth.TokenResponse, *errors.ApiError)

func (*FakeAuthenticator) GetTokenCallCount

func (fake *FakeAuthenticator) GetTokenCallCount() int

func (*FakeAuthenticator) GetTokenCalls

func (fake *FakeAuthenticator) GetTokenCalls(stub func() (*auth.TokenResponse, *errors.ApiError))

func (*FakeAuthenticator) GetTokenReturns

func (fake *FakeAuthenticator) GetTokenReturns(result1 *auth.TokenResponse, result2 *errors.ApiError)

func (*FakeAuthenticator) GetTokenReturnsOnCall

func (fake *FakeAuthenticator) GetTokenReturnsOnCall(i int, result1 *auth.TokenResponse, result2 *errors.ApiError)

func (*FakeAuthenticator) Invocations

func (fake *FakeAuthenticator) Invocations() map[string][][]interface{}

func (*FakeAuthenticator) WipeCachedTokens

func (fake *FakeAuthenticator) WipeCachedTokens() error

func (*FakeAuthenticator) WipeCachedTokensCallCount

func (fake *FakeAuthenticator) WipeCachedTokensCallCount() int

func (*FakeAuthenticator) WipeCachedTokensCalls

func (fake *FakeAuthenticator) WipeCachedTokensCalls(stub func() error)

func (*FakeAuthenticator) WipeCachedTokensReturns

func (fake *FakeAuthenticator) WipeCachedTokensReturns(result1 error)

func (*FakeAuthenticator) WipeCachedTokensReturnsOnCall

func (fake *FakeAuthenticator) WipeCachedTokensReturnsOnCall(i int, result1 error)

type FakeClient

type FakeClient struct {
	DoRequestStub func(string, string, interface{}) ([]byte, *errors.ApiError)

	DoRequestOutStub func(string, string, interface{}, interface{}) *errors.ApiError
	// contains filtered or unexported fields
}

func (*FakeClient) DoRequest

func (fake *FakeClient) DoRequest(arg1 string, arg2 string, arg3 interface{}) ([]byte, *errors.ApiError)

func (*FakeClient) DoRequestArgsForCall

func (fake *FakeClient) DoRequestArgsForCall(i int) (string, string, interface{})

func (*FakeClient) DoRequestCallCount

func (fake *FakeClient) DoRequestCallCount() int

func (*FakeClient) DoRequestCalls

func (fake *FakeClient) DoRequestCalls(stub func(string, string, interface{}) ([]byte, *errors.ApiError))

func (*FakeClient) DoRequestOut

func (fake *FakeClient) DoRequestOut(arg1 string, arg2 string, arg3 interface{}, arg4 interface{}) *errors.ApiError

func (*FakeClient) DoRequestOutArgsForCall

func (fake *FakeClient) DoRequestOutArgsForCall(i int) (string, string, interface{}, interface{})

func (*FakeClient) DoRequestOutCallCount

func (fake *FakeClient) DoRequestOutCallCount() int

func (*FakeClient) DoRequestOutCalls

func (fake *FakeClient) DoRequestOutCalls(stub func(string, string, interface{}, interface{}) *errors.ApiError)

func (*FakeClient) DoRequestOutReturns

func (fake *FakeClient) DoRequestOutReturns(result1 *errors.ApiError)

func (*FakeClient) DoRequestOutReturnsOnCall

func (fake *FakeClient) DoRequestOutReturnsOnCall(i int, result1 *errors.ApiError)

func (*FakeClient) DoRequestReturns

func (fake *FakeClient) DoRequestReturns(result1 []byte, result2 *errors.ApiError)

func (*FakeClient) DoRequestReturnsOnCall

func (fake *FakeClient) DoRequestReturnsOnCall(i int, result1 []byte, result2 *errors.ApiError)

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

type FakeGraphClient

type FakeGraphClient struct {
	DoRequestStub func(string, interface{}, map[string]interface{}) ([]byte, *errors.ApiError)
	// contains filtered or unexported fields
}

func (*FakeGraphClient) DoRequest

func (fake *FakeGraphClient) DoRequest(arg1 string, arg2 interface{}, arg3 map[string]interface{}) ([]byte, *errors.ApiError)

func (*FakeGraphClient) DoRequestArgsForCall

func (fake *FakeGraphClient) DoRequestArgsForCall(i int) (string, interface{}, map[string]interface{})

func (*FakeGraphClient) DoRequestCallCount

func (fake *FakeGraphClient) DoRequestCallCount() int

func (*FakeGraphClient) DoRequestCalls

func (fake *FakeGraphClient) DoRequestCalls(stub func(string, interface{}, map[string]interface{}) ([]byte, *errors.ApiError))

func (*FakeGraphClient) DoRequestReturns

func (fake *FakeGraphClient) DoRequestReturns(result1 []byte, result2 *errors.ApiError)

func (*FakeGraphClient) DoRequestReturnsOnCall

func (fake *FakeGraphClient) DoRequestReturnsOnCall(i int, result1 []byte, result2 *errors.ApiError)

func (*FakeGraphClient) Invocations

func (fake *FakeGraphClient) Invocations() map[string][][]interface{}

type FakeOutClient

type FakeOutClient struct {
	FailStub func(error)

	FailEStub func(*errors.ApiError)

	FailFStub func(string, ...interface{})

	FailSStub func(string)

	WriteResponseStub func([]byte, *errors.ApiError)
	// contains filtered or unexported fields
}

func (*FakeOutClient) Fail

func (fake *FakeOutClient) Fail(arg1 error)

func (*FakeOutClient) FailArgsForCall

func (fake *FakeOutClient) FailArgsForCall(i int) error

func (*FakeOutClient) FailCallCount

func (fake *FakeOutClient) FailCallCount() int

func (*FakeOutClient) FailCalls

func (fake *FakeOutClient) FailCalls(stub func(error))

func (*FakeOutClient) FailE

func (fake *FakeOutClient) FailE(arg1 *errors.ApiError)

func (*FakeOutClient) FailEArgsForCall

func (fake *FakeOutClient) FailEArgsForCall(i int) *errors.ApiError

func (*FakeOutClient) FailECallCount

func (fake *FakeOutClient) FailECallCount() int

func (*FakeOutClient) FailECalls

func (fake *FakeOutClient) FailECalls(stub func(*errors.ApiError))

func (*FakeOutClient) FailF

func (fake *FakeOutClient) FailF(arg1 string, arg2 ...interface{})

func (*FakeOutClient) FailFArgsForCall

func (fake *FakeOutClient) FailFArgsForCall(i int) (string, []interface{})

func (*FakeOutClient) FailFCallCount

func (fake *FakeOutClient) FailFCallCount() int

func (*FakeOutClient) FailFCalls

func (fake *FakeOutClient) FailFCalls(stub func(string, ...interface{}))

func (*FakeOutClient) FailS

func (fake *FakeOutClient) FailS(arg1 string)

func (*FakeOutClient) FailSArgsForCall

func (fake *FakeOutClient) FailSArgsForCall(i int) string

func (*FakeOutClient) FailSCallCount

func (fake *FakeOutClient) FailSCallCount() int

func (*FakeOutClient) FailSCalls

func (fake *FakeOutClient) FailSCalls(stub func(string))

func (*FakeOutClient) Invocations

func (fake *FakeOutClient) Invocations() map[string][][]interface{}

func (*FakeOutClient) WriteResponse

func (fake *FakeOutClient) WriteResponse(arg1 []byte, arg2 *errors.ApiError)

func (*FakeOutClient) WriteResponseArgsForCall

func (fake *FakeOutClient) WriteResponseArgsForCall(i int) ([]byte, *errors.ApiError)

func (*FakeOutClient) WriteResponseCallCount

func (fake *FakeOutClient) WriteResponseCallCount() int

func (*FakeOutClient) WriteResponseCalls

func (fake *FakeOutClient) WriteResponseCalls(stub func([]byte, *errors.ApiError))

type FakeStore

type FakeStore struct {
	DeleteStub func(string) error

	GetStub func(string, any) error

	ListStub func(string) ([]string, error)

	StoreStub func(string, any) error

	StoreStringStub func(string, string) error

	WipeStub func(string) error
	// contains filtered or unexported fields
}

func (*FakeStore) Delete

func (fake *FakeStore) Delete(arg1 string) error

func (*FakeStore) DeleteArgsForCall

func (fake *FakeStore) DeleteArgsForCall(i int) string

func (*FakeStore) DeleteCallCount

func (fake *FakeStore) DeleteCallCount() int

func (*FakeStore) DeleteCalls

func (fake *FakeStore) DeleteCalls(stub func(string) error)

func (*FakeStore) DeleteReturns

func (fake *FakeStore) DeleteReturns(result1 error)

func (*FakeStore) DeleteReturnsOnCall

func (fake *FakeStore) DeleteReturnsOnCall(i int, result1 error)

func (*FakeStore) Get

func (fake *FakeStore) Get(arg1 string, arg2 any) error

func (*FakeStore) GetArgsForCall

func (fake *FakeStore) GetArgsForCall(i int) (string, any)

func (*FakeStore) GetCallCount

func (fake *FakeStore) GetCallCount() int

func (*FakeStore) GetCalls

func (fake *FakeStore) GetCalls(stub func(string, any) error)

func (*FakeStore) GetReturns

func (fake *FakeStore) GetReturns(result1 error)

func (*FakeStore) GetReturnsOnCall

func (fake *FakeStore) GetReturnsOnCall(i int, result1 error)

func (*FakeStore) Invocations

func (fake *FakeStore) Invocations() map[string][][]interface{}

func (*FakeStore) List

func (fake *FakeStore) List(arg1 string) ([]string, error)

func (*FakeStore) ListArgsForCall

func (fake *FakeStore) ListArgsForCall(i int) string

func (*FakeStore) ListCallCount

func (fake *FakeStore) ListCallCount() int

func (*FakeStore) ListCalls

func (fake *FakeStore) ListCalls(stub func(string) ([]string, error))

func (*FakeStore) ListReturns

func (fake *FakeStore) ListReturns(result1 []string, result2 error)

func (*FakeStore) ListReturnsOnCall

func (fake *FakeStore) ListReturnsOnCall(i int, result1 []string, result2 error)

func (*FakeStore) Store

func (fake *FakeStore) Store(arg1 string, arg2 any) error

func (*FakeStore) StoreArgsForCall

func (fake *FakeStore) StoreArgsForCall(i int) (string, any)

func (*FakeStore) StoreCallCount

func (fake *FakeStore) StoreCallCount() int

func (*FakeStore) StoreCalls

func (fake *FakeStore) StoreCalls(stub func(string, any) error)

func (*FakeStore) StoreReturns

func (fake *FakeStore) StoreReturns(result1 error)

func (*FakeStore) StoreReturnsOnCall

func (fake *FakeStore) StoreReturnsOnCall(i int, result1 error)

func (*FakeStore) StoreString

func (fake *FakeStore) StoreString(arg1 string, arg2 string) error

func (*FakeStore) StoreStringArgsForCall

func (fake *FakeStore) StoreStringArgsForCall(i int) (string, string)

func (*FakeStore) StoreStringCallCount

func (fake *FakeStore) StoreStringCallCount() int

func (*FakeStore) StoreStringCalls

func (fake *FakeStore) StoreStringCalls(stub func(string, string) error)

func (*FakeStore) StoreStringReturns

func (fake *FakeStore) StoreStringReturns(result1 error)

func (*FakeStore) StoreStringReturnsOnCall

func (fake *FakeStore) StoreStringReturnsOnCall(i int, result1 error)

func (*FakeStore) Wipe

func (fake *FakeStore) Wipe(arg1 string) error

func (*FakeStore) WipeArgsForCall

func (fake *FakeStore) WipeArgsForCall(i int) string

func (*FakeStore) WipeCallCount

func (fake *FakeStore) WipeCallCount() int

func (*FakeStore) WipeCalls

func (fake *FakeStore) WipeCalls(stub func(string) error)

func (*FakeStore) WipeReturns

func (fake *FakeStore) WipeReturns(result1 error)

func (*FakeStore) WipeReturnsOnCall

func (fake *FakeStore) WipeReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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