mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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