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.