Documentation
¶
Overview ¶
Package backendtest holds the shared conformance suite for backend.HeaderStore implementations. Both the in-memory fake (memstore) and the real RcloneStorage run it, so a behaviour the fake is trusted to model is the behaviour the real backend is required to have. The suite asserts only what the interface exposes, so it works against any implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderStoreContract ¶
func HeaderStoreContract(t *testing.T, newStore func(t *testing.T) backend.HeaderStore, versioned bool)
HeaderStoreContract runs the full conformance suite. newStore must return a fresh, empty store on each call (registering any cleanup via t itself). versioned states whether the store keeps native object versions, which changes the expected backup and restore behaviour.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.