storetest

package
v0.43.2 Latest Latest
Warning

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

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

Documentation

Overview

Package storetest provides the inventory backend contract suite. A backend supplies one fresh inventory. The factory owns cleanup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, open Factory)

Types

type Backend

type Backend struct {
	inventory.Hosts
	inventory.Store
}

Backend pairs the two views of one logical inventory for contract testing. Embedding interfaces here does not require the same instance to implement both.

type Factory

type Factory func(*testing.T) Backend

Jump to

Keyboard shortcuts

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