mocks

package
v0.0.0-...-6a59c2e Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockService

func NewMockService(resp MockResponse, assertions ...func(r *http.Request)) *httptest.Server

func NewMockServiceMultiResponse

func NewMockServiceMultiResponse(responses []MockResponse, assertions ...func(r *http.Request)) *httptest.Server

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) UploadSBOM

func (m *MockClient) UploadSBOM(arg0 context.Context, arg1 string) (string, error)

UploadSBOM mocks base method.

func (*MockClient) UploadSourceCode

func (m *MockClient) UploadSourceCode(arg0 context.Context, arg1 string) (string, error)

UploadSourceCode mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) UploadSBOM

func (mr *MockClientMockRecorder) UploadSBOM(arg0, arg1 interface{}) *gomock.Call

UploadSBOM indicates an expected call of UploadSBOM.

func (*MockClientMockRecorder) UploadSourceCode

func (mr *MockClientMockRecorder) UploadSourceCode(arg0, arg1 interface{}) *gomock.Call

UploadSourceCode indicates an expected call of UploadSourceCode.

type MockResponse

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

func NewMockResponse

func NewMockResponse(c string, b []byte, status int) MockResponse

func NewMockResponseWithHeaders

func NewMockResponseWithHeaders(c string, b []byte, status int, headers http.Header) MockResponse

Jump to

Keyboard shortcuts

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