storetest

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package testing provides useful tools for testing Store implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestACLStore

func TestACLStore(c *qt.C, newStore func(c *qt.C) aclstore.ACLStore)

TestACLStore runs tests on the given ACLStore implementation.

func TestKeyValueStore

func TestKeyValueStore(c *qt.C, newStore func(c *qt.C) store.ProviderDataStore)

func TestMeetingStore

func TestMeetingStore(
	c *qt.C,
	newStore func(c *qt.C) meeting.Store,
	putAtTime func(ctx context.Context, s meeting.Store, id, address string, now time.Time) error,
)

TestMeetingStore tests the given store. The putAtTime function should put an item in the store as if it had been put there at the given time.

func TestStore

func TestStore(c *qt.C, newStore func(c *qt.C) store.Store)

TestStore runs a suite of tests on the given store implementation.

func TestUnmarshal

func TestUnmarshal(c *qt.C, configYAML string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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