mocks

package
v0.0.0-...-5782500 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	mock.Mock
}

Check is an autogenerated mock type for the Check type

func NewCheck

func NewCheck(t interface {
	mock.TestingT
	Cleanup(func())
}) *Check

NewCheck creates a new instance of Check. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Check) Name

func (_m *Check) Name() string

Name provides a mock function with given fields:

func (*Check) PerformCheck

func (_m *Check) PerformCheck(packageName string, packageVersion string, npmPackage *types.NpmPackage) (bool, string, error)

PerformCheck provides a mock function with given fields: packageName, packageVersion, npmPackage

type ChecksManager

type ChecksManager struct {
	mock.Mock
}

ChecksManager is an autogenerated mock type for the ChecksManager type

func NewChecksManager

func NewChecksManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChecksManager

NewChecksManager creates a new instance of ChecksManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChecksManager) PerformChecks

func (_m *ChecksManager) PerformChecks(packageRequestURL string) (bool, string, error)

PerformChecks provides a mock function with given fields: packageRequestURL

type IIssueTrackerService

type IIssueTrackerService struct {
	mock.Mock
}

IIssueTrackerService is an autogenerated mock type for the IIssueTrackerService type

func NewIIssueTrackerService

func NewIIssueTrackerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IIssueTrackerService

NewIIssueTrackerService creates a new instance of IIssueTrackerService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IIssueTrackerService) GetIssue

func (_m *IIssueTrackerService) GetIssue(issueId int64) (*issuetracker.Issue, error)

GetIssue provides a mock function with given fields: issueId

func (*IIssueTrackerService) MakeIssue

func (_m *IIssueTrackerService) MakeIssue(title string, body string, owner string) (*issuetracker.Issue, error)

MakeIssue provides a mock function with given fields: title, body, owner

type NpmDB

type NpmDB struct {
	mock.Mock
}

NpmDB is an autogenerated mock type for the NpmDB type

func NewNpmDB

func NewNpmDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *NpmDB

NewNpmDB creates a new instance of NpmDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NpmDB) GetFromDB

func (_m *NpmDB) GetFromDB(ctx context.Context, key string) (*types.NpmAuditData, error)

GetFromDB provides a mock function with given fields: ctx, key

func (*NpmDB) PutInDB

func (_m *NpmDB) PutInDB(ctx context.Context, key string, issueId int64, created time.Time) error

PutInDB provides a mock function with given fields: ctx, key, issueId, created

type ProjectAudit

type ProjectAudit struct {
	mock.Mock
}

ProjectAudit is an autogenerated mock type for the ProjectAudit type

func NewProjectAudit

func NewProjectAudit(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectAudit

NewProjectAudit creates a new instance of ProjectAudit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectAudit) StartAudit

func (_m *ProjectAudit) StartAudit(ctx context.Context, pollInterval time.Duration)

StartAudit provides a mock function with given fields: ctx, pollInterval

type ProjectMirror

type ProjectMirror struct {
	mock.Mock
}

ProjectMirror is an autogenerated mock type for the ProjectMirror type

func NewProjectMirror

func NewProjectMirror(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectMirror

NewProjectMirror creates a new instance of ProjectMirror. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectMirror) AddToDownloadedPackageTarballs

func (_m *ProjectMirror) AddToDownloadedPackageTarballs(packageTarballName string)

AddToDownloadedPackageTarballs provides a mock function with given fields: packageTarballName

func (*ProjectMirror) GetDownloadedPackageNames

func (_m *ProjectMirror) GetDownloadedPackageNames() ([]string, error)

GetDownloadedPackageNames provides a mock function with given fields:

func (*ProjectMirror) GetProjectName

func (_m *ProjectMirror) GetProjectName() string

GetProjectName provides a mock function with given fields:

func (*ProjectMirror) IsPackageTarballDownloaded

func (_m *ProjectMirror) IsPackageTarballDownloaded(packageTarballName string) bool

IsPackageTarballDownloaded provides a mock function with given fields: packageTarballName

func (*ProjectMirror) StartMirror

func (_m *ProjectMirror) StartMirror(ctx context.Context, port int) error

StartMirror provides a mock function with given fields: ctx, port

Jump to

Keyboard shortcuts

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