mocks

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks provides generated CLI composition test doubles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPackageRepositoryPublisher

type MockPackageRepositoryPublisher struct {
	mock.Mock
}

MockPackageRepositoryPublisher is an autogenerated mock type for the PackageRepositoryPublisher type

func NewMockPackageRepositoryPublisher

func NewMockPackageRepositoryPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPackageRepositoryPublisher

NewMockPackageRepositoryPublisher creates a new instance of MockPackageRepositoryPublisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPackageRepositoryPublisher) EXPECT

func (*MockPackageRepositoryPublisher) Publish

Publish provides a mock function for the type MockPackageRepositoryPublisher

type MockPackageRepositoryPublisher_Expecter

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

func (*MockPackageRepositoryPublisher_Expecter) Publish

Publish is a helper method to define mock.On call

  • ctx context.Context
  • input pkgrepo.PublishInput

type MockPackageRepositoryPublisher_Publish_Call

type MockPackageRepositoryPublisher_Publish_Call struct {
	*mock.Call
}

MockPackageRepositoryPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*MockPackageRepositoryPublisher_Publish_Call) Return

func (*MockPackageRepositoryPublisher_Publish_Call) Run

func (*MockPackageRepositoryPublisher_Publish_Call) RunAndReturn

Jump to

Keyboard shortcuts

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