objectstoretest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package objectstoretest holds checks every objectstore.Store implementation must pass, for the implementations' own tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConcurrentCreates

func CheckConcurrentCreates(t *testing.T, store objectstore.Store)

CheckConcurrentCreates checks that of many concurrent PutIfAbsent calls on one key exactly one wins and the others get ErrPrecondition, then runs CheckConditionalWrites on the winner's object.

func CheckConditionalWrites

func CheckConditionalWrites(t *testing.T, store objectstore.Store)

CheckConditionalWrites checks PutIfAbsent, PutIfMatch, and GetWithETag one call at a time: a second create of a key is refused, a replace with the current ETag succeeds, and one with a stale ETag, or of a missing key, is refused. Providers that honor conditions but do not serialize concurrent ones, such as some test servers, pass this and fail CheckConcurrentCreates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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