objfstest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package objfstest provides a reusable conformance suite for objfs.Bucket implementations. The local unit tests and each cloud backend's integration tests all run the same suite, so every backend is exercised identically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBucket

func RunBucket(t *testing.T, b objfs.Bucket, opts Options)

RunBucket runs the full conformance suite against b. The bucket must be empty at the start; the suite isolates its cases under distinct prefixes.

Types

type Options

type Options struct {
	// PresignGetHTTP, when true, asserts that a presigned GET URL can actually
	// be fetched over HTTP (true for MinIO/S3 and Azurite; emulators without
	// signing credentials, such as fake-gcs-server, should leave it false).
	PresignGetHTTP bool
}

Options tunes which optional behaviours the suite exercises for a backend.

Jump to

Keyboard shortcuts

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