Documentation ¶
Index ¶
- type Check
- type ChecksManager
- type IIssueTrackerService
- type NpmDB
- type ProjectAudit
- type ProjectMirror
- func (_m *ProjectMirror) AddToDownloadedPackageTarballs(packageTarballName string)
- func (_m *ProjectMirror) GetDownloadedPackageNames() ([]string, error)
- func (_m *ProjectMirror) GetProjectName() string
- func (_m *ProjectMirror) IsPackageTarballDownloaded(packageTarballName string) bool
- func (_m *ProjectMirror) StartMirror(ctx context.Context, port int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check is an autogenerated mock type for the Check type
func NewCheck ¶
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) 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 ¶
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 ¶
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 ¶
NpmDB is an autogenerated mock type for the NpmDB type
func NewNpmDB ¶
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.
type ProjectAudit ¶
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 ¶
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