mocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceServiceClient

type DataSourceServiceClient struct {
	mock.Mock
}

DataSourceServiceClient is an autogenerated mock type for the DataSourceServiceClient type

func NewDataSourceServiceClient

func NewDataSourceServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataSourceServiceClient

NewDataSourceServiceClient creates a new instance of DataSourceServiceClient. 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 (*DataSourceServiceClient) AnalyzeAttackFlow added in v0.9.0

AnalyzeAttackFlow provides a mock function with given fields: ctx, in, opts

func (*DataSourceServiceClient) CleanDataSource

func (_m *DataSourceServiceClient) CleanDataSource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)

CleanDataSource provides a mock function with given fields: ctx, in, opts

func (*DataSourceServiceClient) NotifyScanError added in v0.9.0

func (_m *DataSourceServiceClient) NotifyScanError(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)

NotifyScanError provides a mock function with given fields: ctx, in, opts

type DataSourceServiceServer

type DataSourceServiceServer struct {
	mock.Mock
}

DataSourceServiceServer is an autogenerated mock type for the DataSourceServiceServer type

func NewDataSourceServiceServer

func NewDataSourceServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataSourceServiceServer

NewDataSourceServiceServer creates a new instance of DataSourceServiceServer. 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 (*DataSourceServiceServer) AnalyzeAttackFlow added in v0.9.0

AnalyzeAttackFlow provides a mock function with given fields: _a0, _a1

func (*DataSourceServiceServer) CleanDataSource

func (_m *DataSourceServiceServer) CleanDataSource(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)

CleanDataSource provides a mock function with given fields: _a0, _a1

func (*DataSourceServiceServer) NotifyScanError added in v0.9.0

func (_m *DataSourceServiceServer) NotifyScanError(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)

NotifyScanError provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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