mocks

package
v1.172.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 6 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

  • Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved.
  • SPDX-License-Identifier: Apache-2.0

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIClient

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

MockIClient is a mock of IClient interface.

func NewMockIClient

func NewMockIClient(ctrl *gomock.Controller) *MockIClient

NewMockIClient creates a new mock instance.

func (*MockIClient) Close

func (m *MockIClient) Close() error

Close mocks base method.

func (*MockIClient) Delete

func (m *MockIClient) Delete(arg0 string) (*http.Response, error)

Delete mocks base method.

func (*MockIClient) Do

func (m *MockIClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockIClient) EXPECT

func (m *MockIClient) EXPECT() *MockIClientMockRecorder

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

func (*MockIClient) Get

func (m *MockIClient) Get(arg0 string) (*http.Response, error)

Get mocks base method.

func (*MockIClient) Head

func (m *MockIClient) Head(arg0 string) (*http.Response, error)

Head mocks base method.

func (*MockIClient) Options

func (m *MockIClient) Options(arg0 string) (*http.Response, error)

Options mocks base method.

func (*MockIClient) Post

func (m *MockIClient) Post(arg0, contentType string, body any) (*http.Response, error)

Post mocks base method.

func (*MockIClient) PostForm

func (m *MockIClient) PostForm(arg0 string, data url.Values) (*http.Response, error)

PostForm mocks base method.

func (*MockIClient) Put

func (m *MockIClient) Put(arg0 string, body any) (*http.Response, error)

Put mocks base method.

func (*MockIClient) StandardClient

func (m *MockIClient) StandardClient() *http.Client

StandardClient mocks base method.

type MockIClientMockRecorder

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

MockIClientMockRecorder is the mock recorder for MockIClient.

func (*MockIClientMockRecorder) Close

func (mr *MockIClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockIClientMockRecorder) Delete

func (mr *MockIClientMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockIClientMockRecorder) Do

func (mr *MockIClientMockRecorder) Do(req any) *gomock.Call

Do indicates an expected call of Do.

func (*MockIClientMockRecorder) Get

func (mr *MockIClientMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockIClientMockRecorder) Head

func (mr *MockIClientMockRecorder) Head(arg0 any) *gomock.Call

Head indicates an expected call of Head.

func (*MockIClientMockRecorder) Options

func (mr *MockIClientMockRecorder) Options(arg0 any) *gomock.Call

Options indicates an expected call of Options.

func (*MockIClientMockRecorder) Post

func (mr *MockIClientMockRecorder) Post(arg0, contentType, body any) *gomock.Call

Post indicates an expected call of Post.

func (*MockIClientMockRecorder) PostForm

func (mr *MockIClientMockRecorder) PostForm(arg0, data any) *gomock.Call

PostForm indicates an expected call of PostForm.

func (*MockIClientMockRecorder) Put

func (mr *MockIClientMockRecorder) Put(arg0, body any) *gomock.Call

Put indicates an expected call of Put.

func (*MockIClientMockRecorder) StandardClient

func (mr *MockIClientMockRecorder) StandardClient() *gomock.Call

StandardClient indicates an expected call of StandardClient.

type MockIClientWithHeaders

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

MockIClientWithHeaders is a mock of IClientWithHeaders interface.

func NewMockIClientWithHeaders

func NewMockIClientWithHeaders(ctrl *gomock.Controller) *MockIClientWithHeaders

NewMockIClientWithHeaders creates a new mock instance.

func (*MockIClientWithHeaders) AppendHeader

func (m *MockIClientWithHeaders) AppendHeader(key, value string)

AppendHeader mocks base method.

func (*MockIClientWithHeaders) ClearHeaders

func (m *MockIClientWithHeaders) ClearHeaders()

ClearHeaders mocks base method.

func (*MockIClientWithHeaders) Close

func (m *MockIClientWithHeaders) Close() error

Close mocks base method.

func (*MockIClientWithHeaders) Delete

func (m *MockIClientWithHeaders) Delete(arg0 string) (*http.Response, error)

Delete mocks base method.

func (*MockIClientWithHeaders) Do

Do mocks base method.

func (*MockIClientWithHeaders) EXPECT

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

func (*MockIClientWithHeaders) Get

func (m *MockIClientWithHeaders) Get(arg0 string) (*http.Response, error)

Get mocks base method.

func (*MockIClientWithHeaders) Head

func (m *MockIClientWithHeaders) Head(arg0 string) (*http.Response, error)

Head mocks base method.

func (*MockIClientWithHeaders) Options

func (m *MockIClientWithHeaders) Options(arg0 string) (*http.Response, error)

Options mocks base method.

func (*MockIClientWithHeaders) Post

func (m *MockIClientWithHeaders) Post(arg0, contentType string, body any) (*http.Response, error)

Post mocks base method.

func (*MockIClientWithHeaders) PostForm

func (m *MockIClientWithHeaders) PostForm(arg0 string, data url.Values) (*http.Response, error)

PostForm mocks base method.

func (*MockIClientWithHeaders) Put

func (m *MockIClientWithHeaders) Put(arg0 string, body any) (*http.Response, error)

Put mocks base method.

func (*MockIClientWithHeaders) RemoveHeader

func (m *MockIClientWithHeaders) RemoveHeader(key string)

RemoveHeader mocks base method.

func (*MockIClientWithHeaders) StandardClient

func (m *MockIClientWithHeaders) StandardClient() *http.Client

StandardClient mocks base method.

type MockIClientWithHeadersMockRecorder

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

MockIClientWithHeadersMockRecorder is the mock recorder for MockIClientWithHeaders.

func (*MockIClientWithHeadersMockRecorder) AppendHeader

func (mr *MockIClientWithHeadersMockRecorder) AppendHeader(key, value any) *gomock.Call

AppendHeader indicates an expected call of AppendHeader.

func (*MockIClientWithHeadersMockRecorder) ClearHeaders

func (mr *MockIClientWithHeadersMockRecorder) ClearHeaders() *gomock.Call

ClearHeaders indicates an expected call of ClearHeaders.

func (*MockIClientWithHeadersMockRecorder) Close

Close indicates an expected call of Close.

func (*MockIClientWithHeadersMockRecorder) Delete

Delete indicates an expected call of Delete.

func (*MockIClientWithHeadersMockRecorder) Do

Do indicates an expected call of Do.

func (*MockIClientWithHeadersMockRecorder) Get

Get indicates an expected call of Get.

func (*MockIClientWithHeadersMockRecorder) Head

Head indicates an expected call of Head.

func (*MockIClientWithHeadersMockRecorder) Options

Options indicates an expected call of Options.

func (*MockIClientWithHeadersMockRecorder) Post

func (mr *MockIClientWithHeadersMockRecorder) Post(arg0, contentType, body any) *gomock.Call

Post indicates an expected call of Post.

func (*MockIClientWithHeadersMockRecorder) PostForm

func (mr *MockIClientWithHeadersMockRecorder) PostForm(arg0, data any) *gomock.Call

PostForm indicates an expected call of PostForm.

func (*MockIClientWithHeadersMockRecorder) Put

func (mr *MockIClientWithHeadersMockRecorder) Put(arg0, body any) *gomock.Call

Put indicates an expected call of Put.

func (*MockIClientWithHeadersMockRecorder) RemoveHeader

func (mr *MockIClientWithHeadersMockRecorder) RemoveHeader(key any) *gomock.Call

RemoveHeader indicates an expected call of RemoveHeader.

func (*MockIClientWithHeadersMockRecorder) StandardClient

func (mr *MockIClientWithHeadersMockRecorder) StandardClient() *gomock.Call

StandardClient indicates an expected call of StandardClient.

type MockIHTTPHeaders

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

MockIHTTPHeaders is a mock of IHTTPHeaders interface.

func NewMockIHTTPHeaders

func NewMockIHTTPHeaders(ctrl *gomock.Controller) *MockIHTTPHeaders

NewMockIHTTPHeaders creates a new mock instance.

func (*MockIHTTPHeaders) Append

func (m *MockIHTTPHeaders) Append(h *headers.Header)

Append mocks base method.

func (*MockIHTTPHeaders) AppendHeader

func (m *MockIHTTPHeaders) AppendHeader(key, value string)

AppendHeader mocks base method.

func (*MockIHTTPHeaders) AppendToResponse

func (m *MockIHTTPHeaders) AppendToResponse(w http.ResponseWriter)

AppendToResponse mocks base method.

func (*MockIHTTPHeaders) EXPECT

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

func (*MockIHTTPHeaders) Empty

func (m *MockIHTTPHeaders) Empty() bool

Empty mocks base method.

func (*MockIHTTPHeaders) Get

func (m *MockIHTTPHeaders) Get(key string) string

Get mocks base method.

func (*MockIHTTPHeaders) Has

func (m *MockIHTTPHeaders) Has(h *headers.Header) bool

Has mocks base method.

func (*MockIHTTPHeaders) HasHeader

func (m *MockIHTTPHeaders) HasHeader(key string) bool

HasHeader mocks base method.

type MockIHTTPHeadersMockRecorder

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

MockIHTTPHeadersMockRecorder is the mock recorder for MockIHTTPHeaders.

func (*MockIHTTPHeadersMockRecorder) Append

Append indicates an expected call of Append.

func (*MockIHTTPHeadersMockRecorder) AppendHeader

func (mr *MockIHTTPHeadersMockRecorder) AppendHeader(key, value any) *gomock.Call

AppendHeader indicates an expected call of AppendHeader.

func (*MockIHTTPHeadersMockRecorder) AppendToResponse

func (mr *MockIHTTPHeadersMockRecorder) AppendToResponse(w any) *gomock.Call

AppendToResponse indicates an expected call of AppendToResponse.

func (*MockIHTTPHeadersMockRecorder) Empty

Empty indicates an expected call of Empty.

func (*MockIHTTPHeadersMockRecorder) Get

Get indicates an expected call of Get.

func (*MockIHTTPHeadersMockRecorder) Has

Has indicates an expected call of Has.

func (*MockIHTTPHeadersMockRecorder) HasHeader

func (mr *MockIHTTPHeadersMockRecorder) HasHeader(key any) *gomock.Call

HasHeader indicates an expected call of HasHeader.

type MockIRetryWaitPolicy

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

MockIRetryWaitPolicy is a mock of IRetryWaitPolicy interface.

func NewMockIRetryWaitPolicy

func NewMockIRetryWaitPolicy(ctrl *gomock.Controller) *MockIRetryWaitPolicy

NewMockIRetryWaitPolicy creates a new mock instance.

func (*MockIRetryWaitPolicy) Apply

func (m *MockIRetryWaitPolicy) Apply(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration

Apply mocks base method.

func (*MockIRetryWaitPolicy) EXPECT

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

type MockIRetryWaitPolicyMockRecorder

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

MockIRetryWaitPolicyMockRecorder is the mock recorder for MockIRetryWaitPolicy.

func (*MockIRetryWaitPolicyMockRecorder) Apply

func (mr *MockIRetryWaitPolicyMockRecorder) Apply(min, max, attemptNum, resp any) *gomock.Call

Apply indicates an expected call of Apply.

Jump to

Keyboard shortcuts

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