Documentation
¶
Overview ¶
Package storetest is the conformance suite every registry.Store must pass. A store's own tests call Run with a constructor:
func TestConformance(t *testing.T) {
storetest.Run(t, func() registry.Store { return newStore() })
}
It checks the transition table, that exactly one version is active, that a referenced version is not retired, the compare-and-set behaviour of advancing and re-wrapping data keys, that the cap is never over-granted under concurrency, paging, and that returned records are copies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.