mock

package
v0.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResourceClient

type MockResourceClient struct {
	// contains filtered or unexported fields
}

MockResourceClient is a mock of ResourceClient interface.

func NewMockResourceClient

func NewMockResourceClient(ctrl *gomock.Controller) *MockResourceClient

NewMockResourceClient creates a new mock instance.

func (*MockResourceClient) Download

func (m *MockResourceClient) Download(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (io.ReadCloser, error)

Download mocks base method.

func (*MockResourceClient) DownloadWithResponseHeader

func (m *MockResourceClient) DownloadWithResponseHeader(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (io.ReadCloser, source.ResponseHeader, error)

DownloadWithResponseHeader mocks base method.

func (*MockResourceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResourceClient) GetContentLength

func (m *MockResourceClient) GetContentLength(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (int64, error)

GetContentLength mocks base method.

func (*MockResourceClient) GetLastModifiedMillis

func (m *MockResourceClient) GetLastModifiedMillis(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (int64, error)

GetLastModifiedMillis mocks base method.

func (*MockResourceClient) IsExpired

func (m *MockResourceClient) IsExpired(arg0 context.Context, arg1 string, arg2 source.RequestHeader, arg3 map[string]string) (bool, error)

IsExpired mocks base method.

func (*MockResourceClient) IsSupportRange

func (m *MockResourceClient) IsSupportRange(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (bool, error)

IsSupportRange mocks base method.

type MockResourceClientMockRecorder

type MockResourceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockResourceClientMockRecorder is the mock recorder for MockResourceClient.

func (*MockResourceClientMockRecorder) Download

func (mr *MockResourceClientMockRecorder) Download(arg0, arg1, arg2 interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockResourceClientMockRecorder) DownloadWithResponseHeader

func (mr *MockResourceClientMockRecorder) DownloadWithResponseHeader(arg0, arg1, arg2 interface{}) *gomock.Call

DownloadWithResponseHeader indicates an expected call of DownloadWithResponseHeader.

func (*MockResourceClientMockRecorder) GetContentLength

func (mr *MockResourceClientMockRecorder) GetContentLength(arg0, arg1, arg2 interface{}) *gomock.Call

GetContentLength indicates an expected call of GetContentLength.

func (*MockResourceClientMockRecorder) GetLastModifiedMillis

func (mr *MockResourceClientMockRecorder) GetLastModifiedMillis(arg0, arg1, arg2 interface{}) *gomock.Call

GetLastModifiedMillis indicates an expected call of GetLastModifiedMillis.

func (*MockResourceClientMockRecorder) IsExpired

func (mr *MockResourceClientMockRecorder) IsExpired(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IsExpired indicates an expected call of IsExpired.

func (*MockResourceClientMockRecorder) IsSupportRange

func (mr *MockResourceClientMockRecorder) IsSupportRange(arg0, arg1, arg2 interface{}) *gomock.Call

IsSupportRange indicates an expected call of IsSupportRange.

Jump to

Keyboard shortcuts

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