storetest

package
v2.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: BSD-3-Clause Imports: 6 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

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

BenchmarkGCRAStore 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

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

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

func TestGCRAStoreTTL

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

TestGCRAStoreTTL 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