Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZebedeeClientMock ¶
type ZebedeeClientMock struct { // GetWithHeadersFunc mocks the GetWithHeaders method. GetWithHeadersFunc func(ctx context.Context, userAccessToken string, path string) ([]byte, http.Header, error) // contains filtered or unexported fields }
ZebedeeClientMock is a mock implementation of allRoutes.ZebedeeClient.
func TestSomethingThatUsesZebedeeClient(t *testing.T) { // make and configure a mocked allRoutes.ZebedeeClient mockedZebedeeClient := &ZebedeeClientMock{ GetWithHeadersFunc: func(ctx context.Context, userAccessToken string, path string) ([]byte, http.Header, error) { panic("mock out the GetWithHeaders method") }, } // use mockedZebedeeClient in code that requires allRoutes.ZebedeeClient // and then make assertions. }
func (*ZebedeeClientMock) GetWithHeaders ¶
func (mock *ZebedeeClientMock) GetWithHeaders(ctx context.Context, userAccessToken string, path string) ([]byte, http.Header, error)
GetWithHeaders calls GetWithHeadersFunc.
func (*ZebedeeClientMock) GetWithHeadersCalls ¶
func (mock *ZebedeeClientMock) GetWithHeadersCalls() []struct { Ctx context.Context UserAccessToken string Path string }
GetWithHeadersCalls gets all the calls that were made to GetWithHeaders. Check the length with:
len(mockedZebedeeClient.GetWithHeadersCalls())
Click to show internal directories.
Click to hide internal directories.