utilsfakes

package
v0.0.0-...-4aa9b4e Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCSVUtilsInterface

type FakeCSVUtilsInterface struct {
	GetDependenciesListStub func() ([]utils.DepList, error)
	// contains filtered or unexported fields
}

func (*FakeCSVUtilsInterface) GetDependenciesList

func (fake *FakeCSVUtilsInterface) GetDependenciesList() ([]utils.DepList, error)

func (*FakeCSVUtilsInterface) GetDependenciesListCallCount

func (fake *FakeCSVUtilsInterface) GetDependenciesListCallCount() int

func (*FakeCSVUtilsInterface) GetDependenciesListCalls

func (fake *FakeCSVUtilsInterface) GetDependenciesListCalls(stub func() ([]utils.DepList, error))

func (*FakeCSVUtilsInterface) GetDependenciesListReturns

func (fake *FakeCSVUtilsInterface) GetDependenciesListReturns(result1 []utils.DepList, result2 error)

func (*FakeCSVUtilsInterface) GetDependenciesListReturnsOnCall

func (fake *FakeCSVUtilsInterface) GetDependenciesListReturnsOnCall(i int, result1 []utils.DepList, result2 error)

func (*FakeCSVUtilsInterface) Invocations

func (fake *FakeCSVUtilsInterface) Invocations() map[string][][]interface{}

type FakeMongoUtilsInterface

type FakeMongoUtilsInterface struct {
	CVEExistsStub func(string, context.Context, *mongo.Collection) (bool, error)

	CreateCVEStub func(*utils.CVE, context.Context, *mongo.Collection) error

	DisconnectMongoClientStub func(*mongo.Client, context.Context) error

	FindCVEStub func(string, context.Context, *mongo.Collection) (utils.CVE, error)

	GetAllCVEsStub func(context.Context, *mongo.Collection) ([]utils.CVE, error)

	GetMongoClientStub func() (*mongo.Client, context.Context, error)

	GetMongoCollectionStub func(mongo.Client, string, string) *mongo.Collection

	GetUniqueDependenciesStub func(context.Context, *mongo.Collection) ([]utils.CVE, error)

	RemoveAllCVEsStub func(string, context.Context, *mongo.Collection) error
	// contains filtered or unexported fields
}

func (*FakeMongoUtilsInterface) CVEExists

func (fake *FakeMongoUtilsInterface) CVEExists(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (bool, error)

func (*FakeMongoUtilsInterface) CVEExistsArgsForCall

func (fake *FakeMongoUtilsInterface) CVEExistsArgsForCall(i int) (string, context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) CVEExistsCallCount

func (fake *FakeMongoUtilsInterface) CVEExistsCallCount() int

func (*FakeMongoUtilsInterface) CVEExistsCalls

func (fake *FakeMongoUtilsInterface) CVEExistsCalls(stub func(string, context.Context, *mongo.Collection) (bool, error))

func (*FakeMongoUtilsInterface) CVEExistsReturns

func (fake *FakeMongoUtilsInterface) CVEExistsReturns(result1 bool, result2 error)

func (*FakeMongoUtilsInterface) CVEExistsReturnsOnCall

func (fake *FakeMongoUtilsInterface) CVEExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeMongoUtilsInterface) CreateCVE

func (fake *FakeMongoUtilsInterface) CreateCVE(arg1 *utils.CVE, arg2 context.Context, arg3 *mongo.Collection) error

func (*FakeMongoUtilsInterface) CreateCVEArgsForCall

func (fake *FakeMongoUtilsInterface) CreateCVEArgsForCall(i int) (*utils.CVE, context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) CreateCVECallCount

func (fake *FakeMongoUtilsInterface) CreateCVECallCount() int

func (*FakeMongoUtilsInterface) CreateCVECalls

func (fake *FakeMongoUtilsInterface) CreateCVECalls(stub func(*utils.CVE, context.Context, *mongo.Collection) error)

func (*FakeMongoUtilsInterface) CreateCVEReturns

func (fake *FakeMongoUtilsInterface) CreateCVEReturns(result1 error)

func (*FakeMongoUtilsInterface) CreateCVEReturnsOnCall

func (fake *FakeMongoUtilsInterface) CreateCVEReturnsOnCall(i int, result1 error)

func (*FakeMongoUtilsInterface) DisconnectMongoClient

func (fake *FakeMongoUtilsInterface) DisconnectMongoClient(arg1 *mongo.Client, arg2 context.Context) error

func (*FakeMongoUtilsInterface) DisconnectMongoClientArgsForCall

func (fake *FakeMongoUtilsInterface) DisconnectMongoClientArgsForCall(i int) (*mongo.Client, context.Context)

func (*FakeMongoUtilsInterface) DisconnectMongoClientCallCount

func (fake *FakeMongoUtilsInterface) DisconnectMongoClientCallCount() int

func (*FakeMongoUtilsInterface) DisconnectMongoClientCalls

func (fake *FakeMongoUtilsInterface) DisconnectMongoClientCalls(stub func(*mongo.Client, context.Context) error)

func (*FakeMongoUtilsInterface) DisconnectMongoClientReturns

func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturns(result1 error)

func (*FakeMongoUtilsInterface) DisconnectMongoClientReturnsOnCall

func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturnsOnCall(i int, result1 error)

func (*FakeMongoUtilsInterface) FindCVE

func (fake *FakeMongoUtilsInterface) FindCVE(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (utils.CVE, error)

func (*FakeMongoUtilsInterface) FindCVEArgsForCall

func (fake *FakeMongoUtilsInterface) FindCVEArgsForCall(i int) (string, context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) FindCVECallCount

func (fake *FakeMongoUtilsInterface) FindCVECallCount() int

func (*FakeMongoUtilsInterface) FindCVECalls

func (fake *FakeMongoUtilsInterface) FindCVECalls(stub func(string, context.Context, *mongo.Collection) (utils.CVE, error))

func (*FakeMongoUtilsInterface) FindCVEReturns

func (fake *FakeMongoUtilsInterface) FindCVEReturns(result1 utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) FindCVEReturnsOnCall

func (fake *FakeMongoUtilsInterface) FindCVEReturnsOnCall(i int, result1 utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) GetAllCVEs

func (fake *FakeMongoUtilsInterface) GetAllCVEs(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)

func (*FakeMongoUtilsInterface) GetAllCVEsArgsForCall

func (fake *FakeMongoUtilsInterface) GetAllCVEsArgsForCall(i int) (context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) GetAllCVEsCallCount

func (fake *FakeMongoUtilsInterface) GetAllCVEsCallCount() int

func (*FakeMongoUtilsInterface) GetAllCVEsCalls

func (fake *FakeMongoUtilsInterface) GetAllCVEsCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))

func (*FakeMongoUtilsInterface) GetAllCVEsReturns

func (fake *FakeMongoUtilsInterface) GetAllCVEsReturns(result1 []utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) GetAllCVEsReturnsOnCall

func (fake *FakeMongoUtilsInterface) GetAllCVEsReturnsOnCall(i int, result1 []utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) GetMongoClient

func (fake *FakeMongoUtilsInterface) GetMongoClient() (*mongo.Client, context.Context, error)

func (*FakeMongoUtilsInterface) GetMongoClientCallCount

func (fake *FakeMongoUtilsInterface) GetMongoClientCallCount() int

func (*FakeMongoUtilsInterface) GetMongoClientCalls

func (fake *FakeMongoUtilsInterface) GetMongoClientCalls(stub func() (*mongo.Client, context.Context, error))

func (*FakeMongoUtilsInterface) GetMongoClientReturns

func (fake *FakeMongoUtilsInterface) GetMongoClientReturns(result1 *mongo.Client, result2 context.Context, result3 error)

func (*FakeMongoUtilsInterface) GetMongoClientReturnsOnCall

func (fake *FakeMongoUtilsInterface) GetMongoClientReturnsOnCall(i int, result1 *mongo.Client, result2 context.Context, result3 error)

func (*FakeMongoUtilsInterface) GetMongoCollection

func (fake *FakeMongoUtilsInterface) GetMongoCollection(arg1 mongo.Client, arg2 string, arg3 string) *mongo.Collection

func (*FakeMongoUtilsInterface) GetMongoCollectionArgsForCall

func (fake *FakeMongoUtilsInterface) GetMongoCollectionArgsForCall(i int) (mongo.Client, string, string)

func (*FakeMongoUtilsInterface) GetMongoCollectionCallCount

func (fake *FakeMongoUtilsInterface) GetMongoCollectionCallCount() int

func (*FakeMongoUtilsInterface) GetMongoCollectionCalls

func (fake *FakeMongoUtilsInterface) GetMongoCollectionCalls(stub func(mongo.Client, string, string) *mongo.Collection)

func (*FakeMongoUtilsInterface) GetMongoCollectionReturns

func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturns(result1 *mongo.Collection)

func (*FakeMongoUtilsInterface) GetMongoCollectionReturnsOnCall

func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturnsOnCall(i int, result1 *mongo.Collection)

func (*FakeMongoUtilsInterface) GetUniqueDependencies

func (fake *FakeMongoUtilsInterface) GetUniqueDependencies(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)

func (*FakeMongoUtilsInterface) GetUniqueDependenciesArgsForCall

func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesArgsForCall(i int) (context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) GetUniqueDependenciesCallCount

func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCallCount() int

func (*FakeMongoUtilsInterface) GetUniqueDependenciesCalls

func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))

func (*FakeMongoUtilsInterface) GetUniqueDependenciesReturns

func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturns(result1 []utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) GetUniqueDependenciesReturnsOnCall

func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturnsOnCall(i int, result1 []utils.CVE, result2 error)

func (*FakeMongoUtilsInterface) Invocations

func (fake *FakeMongoUtilsInterface) Invocations() map[string][][]interface{}

func (*FakeMongoUtilsInterface) RemoveAllCVEs

func (fake *FakeMongoUtilsInterface) RemoveAllCVEs(arg1 string, arg2 context.Context, arg3 *mongo.Collection) error

func (*FakeMongoUtilsInterface) RemoveAllCVEsArgsForCall

func (fake *FakeMongoUtilsInterface) RemoveAllCVEsArgsForCall(i int) (string, context.Context, *mongo.Collection)

func (*FakeMongoUtilsInterface) RemoveAllCVEsCallCount

func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCallCount() int

func (*FakeMongoUtilsInterface) RemoveAllCVEsCalls

func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCalls(stub func(string, context.Context, *mongo.Collection) error)

func (*FakeMongoUtilsInterface) RemoveAllCVEsReturns

func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturns(result1 error)

func (*FakeMongoUtilsInterface) RemoveAllCVEsReturnsOnCall

func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturnsOnCall(i int, result1 error)

type FakeNVDNistUtilsInterface

type FakeNVDNistUtilsInterface struct {
	GetCVEsStub func(string, string, zerolog.Logger) ([]utils.NVDNistResponseCVEItem, error)
	// contains filtered or unexported fields
}

func (*FakeNVDNistUtilsInterface) GetCVEs

func (*FakeNVDNistUtilsInterface) GetCVEsArgsForCall

func (fake *FakeNVDNistUtilsInterface) GetCVEsArgsForCall(i int) (string, string, zerolog.Logger)

func (*FakeNVDNistUtilsInterface) GetCVEsCallCount

func (fake *FakeNVDNistUtilsInterface) GetCVEsCallCount() int

func (*FakeNVDNistUtilsInterface) GetCVEsCalls

func (*FakeNVDNistUtilsInterface) GetCVEsReturns

func (fake *FakeNVDNistUtilsInterface) GetCVEsReturns(result1 []utils.NVDNistResponseCVEItem, result2 error)

func (*FakeNVDNistUtilsInterface) GetCVEsReturnsOnCall

func (fake *FakeNVDNistUtilsInterface) GetCVEsReturnsOnCall(i int, result1 []utils.NVDNistResponseCVEItem, result2 error)

func (*FakeNVDNistUtilsInterface) Invocations

func (fake *FakeNVDNistUtilsInterface) Invocations() map[string][][]interface{}

type FakeSlackUtilsInterface

type FakeSlackUtilsInterface struct {
	SendNewCVENotificationStub func(string, string, string, string, float64) error
	// contains filtered or unexported fields
}

func (*FakeSlackUtilsInterface) Invocations

func (fake *FakeSlackUtilsInterface) Invocations() map[string][][]interface{}

func (*FakeSlackUtilsInterface) SendNewCVENotification

func (fake *FakeSlackUtilsInterface) SendNewCVENotification(arg1 string, arg2 string, arg3 string, arg4 string, arg5 float64) error

func (*FakeSlackUtilsInterface) SendNewCVENotificationArgsForCall

func (fake *FakeSlackUtilsInterface) SendNewCVENotificationArgsForCall(i int) (string, string, string, string, float64)

func (*FakeSlackUtilsInterface) SendNewCVENotificationCallCount

func (fake *FakeSlackUtilsInterface) SendNewCVENotificationCallCount() int

func (*FakeSlackUtilsInterface) SendNewCVENotificationCalls

func (fake *FakeSlackUtilsInterface) SendNewCVENotificationCalls(stub func(string, string, string, string, float64) error)

func (*FakeSlackUtilsInterface) SendNewCVENotificationReturns

func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturns(result1 error)

func (*FakeSlackUtilsInterface) SendNewCVENotificationReturnsOnCall

func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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