mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeServiceClient

type CodeServiceClient struct {
	mock.Mock
}

CodeServiceClient is an autogenerated mock type for the CodeServiceClient type

func NewCodeServiceClient

func NewCodeServiceClient(t mockConstructorTestingTNewCodeServiceClient) *CodeServiceClient

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

func (*CodeServiceClient) DeleteDependencySetting

func (_m *CodeServiceClient) DeleteDependencySetting(ctx context.Context, in *code.DeleteDependencySettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

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

func (*CodeServiceClient) DeleteGitHubSetting

func (_m *CodeServiceClient) DeleteGitHubSetting(ctx context.Context, in *code.DeleteGitHubSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

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

func (*CodeServiceClient) DeleteGitleaksSetting

func (_m *CodeServiceClient) DeleteGitleaksSetting(ctx context.Context, in *code.DeleteGitleaksSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

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

func (*CodeServiceClient) GetGitHubSetting

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

func (*CodeServiceClient) GetGitleaksCache added in v0.5.0

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

func (*CodeServiceClient) InvokeScanAll

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

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

func (*CodeServiceClient) InvokeScanDependency

func (_m *CodeServiceClient) InvokeScanDependency(ctx context.Context, in *code.InvokeScanDependencyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

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

func (*CodeServiceClient) InvokeScanGitleaks

func (_m *CodeServiceClient) InvokeScanGitleaks(ctx context.Context, in *code.InvokeScanGitleaksRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

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

func (*CodeServiceClient) ListDataSource

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

func (*CodeServiceClient) ListGitHubSetting

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

func (*CodeServiceClient) PutDependencySetting

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

func (*CodeServiceClient) PutGitHubSetting

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

func (*CodeServiceClient) PutGitleaksCache added in v0.5.0

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

func (*CodeServiceClient) PutGitleaksSetting

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

type CodeServiceServer

type CodeServiceServer struct {
	mock.Mock
}

CodeServiceServer is an autogenerated mock type for the CodeServiceServer type

func NewCodeServiceServer

func NewCodeServiceServer(t mockConstructorTestingTNewCodeServiceServer) *CodeServiceServer

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

func (*CodeServiceServer) DeleteDependencySetting

func (_m *CodeServiceServer) DeleteDependencySetting(_a0 context.Context, _a1 *code.DeleteDependencySettingRequest) (*emptypb.Empty, error)

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

func (*CodeServiceServer) DeleteGitHubSetting

func (_m *CodeServiceServer) DeleteGitHubSetting(_a0 context.Context, _a1 *code.DeleteGitHubSettingRequest) (*emptypb.Empty, error)

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

func (*CodeServiceServer) DeleteGitleaksSetting

func (_m *CodeServiceServer) DeleteGitleaksSetting(_a0 context.Context, _a1 *code.DeleteGitleaksSettingRequest) (*emptypb.Empty, error)

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

func (*CodeServiceServer) GetGitHubSetting

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

func (*CodeServiceServer) GetGitleaksCache added in v0.5.0

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

func (*CodeServiceServer) InvokeScanAll

func (_m *CodeServiceServer) InvokeScanAll(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)

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

func (*CodeServiceServer) InvokeScanDependency

func (_m *CodeServiceServer) InvokeScanDependency(_a0 context.Context, _a1 *code.InvokeScanDependencyRequest) (*emptypb.Empty, error)

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

func (*CodeServiceServer) InvokeScanGitleaks

func (_m *CodeServiceServer) InvokeScanGitleaks(_a0 context.Context, _a1 *code.InvokeScanGitleaksRequest) (*emptypb.Empty, error)

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

func (*CodeServiceServer) ListDataSource

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

func (*CodeServiceServer) ListGitHubSetting

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

func (*CodeServiceServer) PutDependencySetting

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

func (*CodeServiceServer) PutGitHubSetting

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

func (*CodeServiceServer) PutGitleaksCache added in v0.5.0

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

func (*CodeServiceServer) PutGitleaksSetting

PutGitleaksSetting 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