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: 4 Imported by: 0

Documentation

Overview

Package mocks contains Mockery-generated doubles for pubgh.AssetReplacer.

Generated files are produced by `mockery` from .mockery.yml. Do not edit them by hand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAssetReplacer

type MockAssetReplacer struct {
	mock.Mock
}

MockAssetReplacer is an autogenerated mock type for the AssetReplacer type

func NewMockAssetReplacer

func NewMockAssetReplacer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAssetReplacer

NewMockAssetReplacer creates a new instance of MockAssetReplacer. 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 (*MockAssetReplacer) EXPECT

func (*MockAssetReplacer) Replace

func (_mock *MockAssetReplacer) Replace(ctx context.Context, repository pubgh.Repository, tag rel.Tag, expected []pubgh.AssetPath) error

Replace provides a mock function for the type MockAssetReplacer

type MockAssetReplacer_Expecter

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

func (*MockAssetReplacer_Expecter) Replace

func (_e *MockAssetReplacer_Expecter) Replace(ctx any, repository any, tag any, expected any) *MockAssetReplacer_Replace_Call

Replace is a helper method to define mock.On call

  • ctx context.Context
  • repository pubgh.Repository
  • tag rel.Tag
  • expected []pubgh.AssetPath

type MockAssetReplacer_Replace_Call

type MockAssetReplacer_Replace_Call struct {
	*mock.Call
}

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

func (*MockAssetReplacer_Replace_Call) Return

func (*MockAssetReplacer_Replace_Call) Run

func (*MockAssetReplacer_Replace_Call) RunAndReturn

func (_c *MockAssetReplacer_Replace_Call) RunAndReturn(run func(ctx context.Context, repository pubgh.Repository, tag rel.Tag, expected []pubgh.AssetPath) error) *MockAssetReplacer_Replace_Call

Jump to

Keyboard shortcuts

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