testing

package
v0.0.0-...-a1d8f0c Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: LGPL-3.0 Imports: 1 Imported by: ? 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

This package contains a mock implementation of the manager.PackageManager interface which always returns positive outcomes and a nil error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPackageManager

type MockPackageManager struct {
}

MockPackageManager is a struct which always returns a positive outcome, constant ProxySettings and a nil error. It satisfies the PackageManager interface.

func (*MockPackageManager) AddRepository

func (pm *MockPackageManager) AddRepository(string) error

AddRepository is defined on the PackageManager interface.

func (*MockPackageManager) Cleanup

func (pm *MockPackageManager) Cleanup() error

Cleanup is defined on the PackageManager interface.

func (*MockPackageManager) GetProxySettings

func (pm *MockPackageManager) GetProxySettings() (proxy.Settings, error)

GetProxySettings is defined on the PackageManager interface.

func (*MockPackageManager) Install

func (pm *MockPackageManager) Install(...string) error

Install is defined on the PackageManager interface.

func (*MockPackageManager) InstallPrerequisite

func (pm *MockPackageManager) InstallPrerequisite() error

InstallPrerequisite is defined on the PackageManager interface.

func (*MockPackageManager) IsInstalled

func (pm *MockPackageManager) IsInstalled(string) bool

IsInstalled is defined on the PackageManager interface.

func (*MockPackageManager) Purge

func (pm *MockPackageManager) Purge(...string) error

Purge is defined on the PackageManager interface.

func (*MockPackageManager) Remove

func (pm *MockPackageManager) Remove(...string) error

Remove is defined on the PackageManager interface.

func (*MockPackageManager) RemoveRepository

func (pm *MockPackageManager) RemoveRepository(string) error

RemoveRepository is defined on the PackageManager interface.

func (*MockPackageManager) Search

func (pm *MockPackageManager) Search(string) (bool, error)

Search is defined on the PackageManager interface.

func (*MockPackageManager) SetProxy

func (pm *MockPackageManager) SetProxy(proxy.Settings) error

SetProxy is defined on the PackageManager interface.

func (*MockPackageManager) Update

func (pm *MockPackageManager) Update() error

Update is defined on the PackageManager interface.

func (*MockPackageManager) Upgrade

func (pm *MockPackageManager) Upgrade() error

Upgrade is defined on the PackageManager interface.

Jump to

Keyboard shortcuts

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