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

taskstoretest

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package taskstoretest holds the shared TaskStore conformance suite (RFC §8.5, CLAUDE.md §9). Every TaskStore driver must pass RunConformance — the in-memory stub, the durable Store-backed facade over the in-memory Store, and the durable facade over the modernc.org/sqlite Store. A new TaskStore guarantee is added here once and proven against every backing, never bolted onto one driver (D-070).

A driver's test wires the suite in with a few lines:

func TestConformance(t *testing.T) {
	taskstoretest.RunConformance(t, func() tasks.TaskStore { return tasks.NewInMemoryStore() })
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cases

func Cases() int

Cases returns the number of conformance cases — used by the harness self-guard to assert the suite is non-empty.

func RunConformance

func RunConformance(t *testing.T, open OpenFunc)

RunConformance exercises every guarantee of the TaskStore seam against a driver. open must return a freshly-constructed, empty TaskStore on each call.

Types

type OpenFunc

type OpenFunc func() tasks.TaskStore

OpenFunc returns a freshly-constructed, empty TaskStore. The suite calls it once per case.

Jump to

Keyboard shortcuts

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