source

package
v0.0.0-...-cab28d8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClonePackage

func ClonePackage(p *hub.Package) *hub.Package

ClonePackage clones the provided package returning a new one.

func ParseChangesAnnotation

func ParseChangesAnnotation(annotation string) ([]*hub.Change, error)

ParseChangesAnnotation parses the provided changes annotation returning a slice of changes entries. Changes entries are also validated an normalized.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock is a mock TrackerSource implementation.

func (*Mock) GetPackagesAvailable

func (m *Mock) GetPackagesAvailable() (map[string]*hub.Package, error)

GetPackagesAvailable implements the TrackerSource interface.

type TestsServicesWrapper

TestsServicesWrapper is wrapper around a TrackerSourceServices instance used in tests.

func NewTestsServicesWrapper

func NewTestsServicesWrapper() *TestsServicesWrapper

NewTestsServicesWrapper creates a new TestsServicesWrapper instance.

func (*TestsServicesWrapper) AssertExpectations

func (sw *TestsServicesWrapper) AssertExpectations(t *testing.T)

AssertExpectations asserts all expectations defined for the mocks in the services wrapper.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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