tests

package
v0.0.0-...-6048999 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacheStore

type MockCacheStore struct {
	LastKey        string
	ExecutionCount int
	ReturnedResult utils.Result[bool]
}

func (*MockCacheStore) Close

func (mcs *MockCacheStore) Close() error

func (*MockCacheStore) ExpireKey

func (mcs *MockCacheStore) ExpireKey(key string) utils.Result[bool]

type MockFlagStore

type MockFlagStore struct {
	Key            string
	ExecutionCount int
	ReturnedError  error
}

func (*MockFlagStore) Flag

func (mfs *MockFlagStore) Flag(key string) error

type MockMessageProducer

type MockMessageProducer struct {
	Key            []byte
	Value          []byte
	ExecutionCount int
}

func (*MockMessageProducer) GetTopic

func (mp *MockMessageProducer) GetTopic() string

func (*MockMessageProducer) Produce

type MockedStore

type MockedStore struct {
	DB      *database.DB
	SQLMock sqlmock.Sqlmock
}

func SetupMockStore

func SetupMockStore(t *testing.T) (*MockedStore, func())

Jump to

Keyboard shortcuts

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