Documentation
¶
Overview ¶
Package storetest provides a published contract test suite for EventStore implementations. Any EventStore adapter must pass this suite.
Usage:
func TestMyStore(t *testing.T) {
storetest.Run(t, func(t *testing.T) runtime.EventStore {
return NewMyStore(t.TempDir())
})
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes the full EventStore contract suite against the store returned by mk. mk is called fresh for each sub-test to ensure test isolation.
func RunArtifact ¶
RunArtifact executes the ArtifactStore contract suite against the store returned by mk. mk is called fresh for each sub-test to ensure test isolation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.