mockexpire

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mockexpire is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacher

type MockCacher[K comparable, V any] struct {
	// contains filtered or unexported fields
}

MockCacher is a mock of Cacher interface.

func NewMockCacher

func NewMockCacher[K comparable, V any](ctrl *gomock.Controller) *MockCacher[K, V]

NewMockCacher creates a new mock instance.

func (*MockCacher[K, V]) Delete

func (m *MockCacher[K, V]) Delete(keys ...K)

Delete mocks base method.

func (*MockCacher[K, V]) EXPECT

func (m *MockCacher[K, V]) EXPECT() *MockCacherMockRecorder[K, V]

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

func (*MockCacher[K, V]) Keys

func (m *MockCacher[K, V]) Keys() []K

Keys mocks base method.

func (*MockCacher[K, V]) RandomKey

func (m *MockCacher[K, V]) RandomKey() (K, bool)

RandomKey mocks base method.

func (*MockCacher[K, V]) Size

func (m *MockCacher[K, V]) Size() int

Size mocks base method.

func (*MockCacher[K, V]) TTL

func (m *MockCacher[K, V]) TTL(key K) (*time.Duration, bool)

TTL mocks base method.

type MockCacherMockRecorder

type MockCacherMockRecorder[K comparable, V any] struct {
	// contains filtered or unexported fields
}

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder[K, V]) Delete

func (mr *MockCacherMockRecorder[K, V]) Delete(keys ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacherMockRecorder[K, V]) Keys

func (mr *MockCacherMockRecorder[K, V]) Keys() *gomock.Call

Keys indicates an expected call of Keys.

func (*MockCacherMockRecorder[K, V]) RandomKey

func (mr *MockCacherMockRecorder[K, V]) RandomKey() *gomock.Call

RandomKey indicates an expected call of RandomKey.

func (*MockCacherMockRecorder[K, V]) Size

func (mr *MockCacherMockRecorder[K, V]) Size() *gomock.Call

Size indicates an expected call of Size.

func (*MockCacherMockRecorder[K, V]) TTL

func (mr *MockCacherMockRecorder[K, V]) TTL(key any) *gomock.Call

TTL indicates an expected call of TTL.

Jump to

Keyboard shortcuts

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