Help us shape the future of Go! Take the 2026 Go Developer Survey

blobcontract

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package blobcontract is the shared conformance suite for the blob.Bucket port (ADR-0007). RunContract asserts the storage-layer semantics that must hold for every backend — memory and file run it, proving driver-conformance-parity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIfAbsentIsAtomic added in v0.10.0

func CreateIfAbsentIsAtomic(t *testing.T, b blob.Bucket)

CreateIfAbsentIsAtomic: of 16 concurrent IfNotExist puts of one key exactly one succeeds and the others are fault.Conflict; the winner's bytes stay, a later create is fault.Conflict, and no other key is listed (ADR-0203).

func RunContract

func RunContract(t *testing.T, newBucket func(t *testing.T) blob.Bucket)

RunContract runs the backend-agnostic blob scenarios against a Bucket built by newBucket. newBucket must return a fresh, empty bucket on each call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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