function
RunWriteGuards
RunWriteGuards verifies the stored-version guards of the official adapters: an update refuses a Current that no longer describes the stored row, and saving revision 1 starts a document's version history, so a document created with the ID of a removed one never inherits its versions.
Arguments
| Argument | Type | Description |
|---|---|---|
t | *testing.T | The t value. |
factory | Factory | The factory value. |
Full signature
func RunWriteGuards(
t *testing.T,
factory Factory,
)Related types
FactoryFactory opens a clean store prepared for manifest. Implementations should register cleanup with t and fail the current test when setup cannot finish.