mock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockQueryer

type MockQueryer[T any] struct {
	// contains filtered or unexported fields
}

MockQueryer is a mock of Queryer interface.

func NewMockQueryer

func NewMockQueryer[T any](ctrl *gomock.Controller) *MockQueryer[T]

NewMockQueryer creates a new mock instance.

func (*MockQueryer[T]) Count

func (m *MockQueryer[T]) Count(ctx context.Context) (int, error)

Count mocks base method.

func (*MockQueryer[T]) EXPECT

func (m *MockQueryer[T]) EXPECT() *MockQueryerMockRecorder[T]

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

func (*MockQueryer[T]) Query

func (m *MockQueryer[T]) Query(ctx context.Context, offset, limit int) ([]T, error)

Query mocks base method.

type MockQueryerMockRecorder

type MockQueryerMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockQueryerMockRecorder is the mock recorder for MockQueryer.

func (*MockQueryerMockRecorder[T]) Count

func (mr *MockQueryerMockRecorder[T]) Count(ctx any) *gomock.Call

Count indicates an expected call of Count.

func (*MockQueryerMockRecorder[T]) Query

func (mr *MockQueryerMockRecorder[T]) Query(ctx, offset, limit any) *gomock.Call

Query indicates an expected call of Query.

Jump to

Keyboard shortcuts

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