mocks

package
v2.11.12 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repos

type Repos struct {
	mock.Mock
}

Repos is an autogenerated mock type for the Repos type

func NewRepos

func NewRepos(t mockConstructorTestingTNewRepos) *Repos

NewRepos creates a new instance of Repos. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Repos) GetDirectories

func (_m *Repos) GetDirectories(ctx context.Context, repoURL string, revision string, noRevisionCache bool) ([]string, error)

GetDirectories provides a mock function with given fields: ctx, repoURL, revision, noRevisionCache

func (*Repos) GetFiles

func (_m *Repos) GetFiles(ctx context.Context, repoURL string, revision string, pattern string, noRevisionCache bool) (map[string][]byte, error)

GetFiles provides a mock function with given fields: ctx, repoURL, revision, pattern, noRevisionCache

type RepositoryDB

type RepositoryDB struct {
	mock.Mock
}

RepositoryDB is an autogenerated mock type for the RepositoryDB type

func NewRepositoryDB

func NewRepositoryDB(t mockConstructorTestingTNewRepositoryDB) *RepositoryDB

NewRepositoryDB creates a new instance of RepositoryDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RepositoryDB) GetRepository

func (_m *RepositoryDB) GetRepository(ctx context.Context, url string) (*v1alpha1.Repository, error)

GetRepository provides a mock function with given fields: ctx, url

Jump to

Keyboard shortcuts

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