snowflake

package
v0.0.0-...-dcc7ea8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package snowflake is a generated GoMock package.

Index

Constants

View Source
const (
	// Service_Gen_FullMethodName is the full name of the method [service.Gen].
	Service_Gen_FullMethodName = "github.com/go-kod/kod-mono/internal/domain/snowflake/Service.Gen"
)

Full method names for components.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenReq

type GenReq struct {
}

type GenRes

type GenRes struct {
	UUID string
}

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) Gen

func (m *MockService) Gen(ctx context.Context, arg1 *GenReq) (*GenRes, error)

Gen mocks base method.

type MockServiceGenCall

type MockServiceGenCall struct {
	*gomock.Call
}

MockServiceGenCall wrap *gomock.Call

func (*MockServiceGenCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceGenCall) DoAndReturn

func (c *MockServiceGenCall) DoAndReturn(f func(context.Context, *GenReq) (*GenRes, error)) *MockServiceGenCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceGenCall) Return

func (c *MockServiceGenCall) Return(arg0 *GenRes, arg1 error) *MockServiceGenCall

Return rewrite *gomock.Call.Return

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Gen

func (mr *MockServiceMockRecorder) Gen(ctx, arg1 any) *MockServiceGenCall

Gen indicates an expected call of Gen.

type Service

type Service interface {
	// Gen is implemented by [service.Gen]
	Gen(ctx context.Context, _ *GenReq) (*GenRes, error)
}

Service is implemented by [service], which can be mocked with NewMockService.

Jump to

Keyboard shortcuts

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