mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 4 Imported by: 0 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 MockCloudService

type MockCloudService struct {
	mock.Mock
}

MockCloudService is an autogenerated mock type for the CloudService type

func NewMockCloudService

func NewMockCloudService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCloudService

NewMockCloudService creates a new instance of MockCloudService. 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 (*MockCloudService) EXPECT

func (*MockCloudService) GetNamespace

GetNamespace provides a mock function for the type MockCloudService

func (*MockCloudService) GetNamespaces

GetNamespaces provides a mock function for the type MockCloudService

func (*MockCloudService) RenameCustomSearchAttribute

RenameCustomSearchAttribute provides a mock function for the type MockCloudService

func (*MockCloudService) UpdateNamespace

UpdateNamespace provides a mock function for the type MockCloudService

func (*MockCloudService) UpdateNamespaceTags

UpdateNamespaceTags provides a mock function for the type MockCloudService

type MockCloudService_Expecter

type MockCloudService_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockCloudService_Expecter) GetNamespace

func (_e *MockCloudService_Expecter) GetNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespace_Call

GetNamespace is a helper method to define mock.On call

  • ctx context.Context
  • req *cloudservice.GetNamespaceRequest
  • opts ...grpc.CallOption

func (*MockCloudService_Expecter) GetNamespaces

func (_e *MockCloudService_Expecter) GetNamespaces(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespaces_Call

GetNamespaces is a helper method to define mock.On call

  • ctx context.Context
  • req *cloudservice.GetNamespacesRequest
  • opts ...grpc.CallOption

func (*MockCloudService_Expecter) RenameCustomSearchAttribute

func (_e *MockCloudService_Expecter) RenameCustomSearchAttribute(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_RenameCustomSearchAttribute_Call

RenameCustomSearchAttribute is a helper method to define mock.On call

  • ctx context.Context
  • req *cloudservice.RenameCustomSearchAttributeRequest
  • opts ...grpc.CallOption

func (*MockCloudService_Expecter) UpdateNamespace

func (_e *MockCloudService_Expecter) UpdateNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespace_Call

UpdateNamespace is a helper method to define mock.On call

  • ctx context.Context
  • req *cloudservice.UpdateNamespaceRequest
  • opts ...grpc.CallOption

func (*MockCloudService_Expecter) UpdateNamespaceTags

func (_e *MockCloudService_Expecter) UpdateNamespaceTags(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespaceTags_Call

UpdateNamespaceTags is a helper method to define mock.On call

  • ctx context.Context
  • req *cloudservice.UpdateNamespaceTagsRequest
  • opts ...grpc.CallOption

type MockCloudService_GetNamespace_Call

type MockCloudService_GetNamespace_Call struct {
	*mock.Call
}

MockCloudService_GetNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespace'

func (*MockCloudService_GetNamespace_Call) Return

func (*MockCloudService_GetNamespace_Call) Run

type MockCloudService_GetNamespaces_Call

type MockCloudService_GetNamespaces_Call struct {
	*mock.Call
}

MockCloudService_GetNamespaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespaces'

func (*MockCloudService_GetNamespaces_Call) Return

func (*MockCloudService_GetNamespaces_Call) Run

type MockCloudService_RenameCustomSearchAttribute_Call

type MockCloudService_RenameCustomSearchAttribute_Call struct {
	*mock.Call
}

MockCloudService_RenameCustomSearchAttribute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameCustomSearchAttribute'

func (*MockCloudService_RenameCustomSearchAttribute_Call) Return

type MockCloudService_UpdateNamespaceTags_Call

type MockCloudService_UpdateNamespaceTags_Call struct {
	*mock.Call
}

MockCloudService_UpdateNamespaceTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespaceTags'

func (*MockCloudService_UpdateNamespaceTags_Call) Return

func (*MockCloudService_UpdateNamespaceTags_Call) Run

type MockCloudService_UpdateNamespace_Call

type MockCloudService_UpdateNamespace_Call struct {
	*mock.Call
}

MockCloudService_UpdateNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespace'

func (*MockCloudService_UpdateNamespace_Call) Return

func (*MockCloudService_UpdateNamespace_Call) Run

Jump to

Keyboard shortcuts

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