testing

package
v0.0.0-...-ee69469 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: LGPL-3.0 Imports: 1 Imported by: 0

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