mock

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 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 MockOriginHTTPClient

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

MockOriginHTTPClient is a mock of OriginHTTPClient interface

func NewMockOriginHTTPClient

func NewMockOriginHTTPClient(ctrl *gomock.Controller) *MockOriginHTTPClient

NewMockOriginHTTPClient creates a new mock instance

func (*MockOriginHTTPClient) Download

func (m *MockOriginHTTPClient) Download(url string, headers map[string]string, checkCode httpclient.StatusCodeChecker) (*http.Response, error)

Download mocks base method

func (*MockOriginHTTPClient) EXPECT

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

func (*MockOriginHTTPClient) GetContentLength

func (m *MockOriginHTTPClient) GetContentLength(url string, headers map[string]string) (int64, int, error)

GetContentLength mocks base method

func (*MockOriginHTTPClient) IsExpired

func (m *MockOriginHTTPClient) IsExpired(url string, headers map[string]string, lastModified int64, eTag string) (bool, error)

IsExpired mocks base method

func (*MockOriginHTTPClient) IsSupportRange

func (m *MockOriginHTTPClient) IsSupportRange(url string, headers map[string]string) (bool, error)

IsSupportRange mocks base method

func (*MockOriginHTTPClient) RegisterTLSConfig

func (m *MockOriginHTTPClient) RegisterTLSConfig(rawURL string, insecure bool, caBlock []strfmt.Base64)

RegisterTLSConfig mocks base method

type MockOriginHTTPClientMockRecorder

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

MockOriginHTTPClientMockRecorder is the mock recorder for MockOriginHTTPClient

func (*MockOriginHTTPClientMockRecorder) Download

func (mr *MockOriginHTTPClientMockRecorder) Download(url, headers, checkCode interface{}) *gomock.Call

Download indicates an expected call of Download

func (*MockOriginHTTPClientMockRecorder) GetContentLength

func (mr *MockOriginHTTPClientMockRecorder) GetContentLength(url, headers interface{}) *gomock.Call

GetContentLength indicates an expected call of GetContentLength

func (*MockOriginHTTPClientMockRecorder) IsExpired

func (mr *MockOriginHTTPClientMockRecorder) IsExpired(url, headers, lastModified, eTag interface{}) *gomock.Call

IsExpired indicates an expected call of IsExpired

func (*MockOriginHTTPClientMockRecorder) IsSupportRange

func (mr *MockOriginHTTPClientMockRecorder) IsSupportRange(url, headers interface{}) *gomock.Call

IsSupportRange indicates an expected call of IsSupportRange

func (*MockOriginHTTPClientMockRecorder) RegisterTLSConfig

func (mr *MockOriginHTTPClientMockRecorder) RegisterTLSConfig(rawURL, insecure, caBlock interface{}) *gomock.Call

RegisterTLSConfig indicates an expected call of RegisterTLSConfig

Jump to

Keyboard shortcuts

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