storetest

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package storetest provides a helper for testing throttled stores.

Package storetest provides a helper for testing throttled stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkGCRAStore deprecated

func BenchmarkGCRAStore(b *testing.B, st throttled.GCRAStore)

BenchmarkGCRAStore provides an adapter for BenchmarkGCRAStoreCtx

Deprecated: implement GCRAStoreCtx and use BenchmarkGCRAStoreCtx instead.

func BenchmarkGCRAStoreCtx added in v2.10.0

func BenchmarkGCRAStoreCtx(b *testing.B, st throttled.GCRAStoreCtx)

BenchmarkGCRAStoreCtx runs parallel benchmarks against a GCRAStore implementation. Aside from being useful for performance testing, this is useful for finding race conditions with the Go race detector.

func TestGCRAStore deprecated

func TestGCRAStore(t *testing.T, st throttled.GCRAStore)

TestGCRAStore provides an adapter for TestGCRAStoreCtx

Deprecated: implement GCRAStoreCtx and use TestGCRAStoreCtx instead.

func TestGCRAStoreCtx added in v2.10.0

func TestGCRAStoreCtx(t *testing.T, st throttled.GCRAStoreCtx)

TestGCRAStoreCtx tests the behavior of a GCRAStore implementation for compliance with the throttled API. It does not require support for TTLs.

func TestGCRAStoreTTL deprecated

func TestGCRAStoreTTL(t *testing.T, st throttled.GCRAStore)

TestGCRAStoreTTL provides an adapter for TestGCRAStoreTTLCtx

Deprecated: implement GCRAStoreCtx and use TestGCRAStoreTTLCtx instead.

func TestGCRAStoreTTLCtx added in v2.10.0

func TestGCRAStoreTTLCtx(t *testing.T, st throttled.GCRAStoreCtx)

TestGCRAStoreTTLCtx tests the behavior of TTLs in a GCRAStore implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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