source

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 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 added in v0.20.0

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

type TestsServicesWrapper struct {
	Ec  *repo.ErrorsCollectorMock
	Hc  *tests.HTTPClientMock
	Op  *oci.PullerMock
	Is  *img.StoreMock
	Svc *hub.TrackerSourceServices
}

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