CheckEndTransactionTrigger verifies that an EndTransactionRequest that includes intents for the SystemDB keys sets the proper trigger.
CheckKeyCount checks that the number of keys in the provided span matches numKeys.
CreateKVInterleavedTable is like CreateKVTable, but it interleaves table t.intlv inside of t.kv and adds rows to both.
CreateKVTable creates a basic table named t.<name> that stores key/value pairs with numRows of arbitrary data.
CommandFilters provides facilities for registering "TestingCommandFilters" (i.e. functions to be run on every replica command). CommandFilters is thread-safe. CommandFilters also optionally does replay protection if filters need it.
CreateTestServerParams creates a set of params suitable for SQL tests. It enables some EndTransaction sanity checking and installs a flexible TestingEvalFilter. TODO(andrei): this function is not used consistently by SQL tests. Figure out if the EndTransaction checks are important.
func (c *CommandFilters) AppendFilter( filter storagebase.ReplicaCommandFilter, idempotent bool, ) func()
AppendFilter registers a filter function to run after all the previously registered filters. idempotent specifies if this filter can be safely run multiple times on the same command. If this property doesn't hold, CommandFilters will start tracking commands for replay protection, which might be expensive. Returns a closure that the client must run for doing cleanup when the filter should be deregistered.
RunFilters executes the registered filters, stopping at the first one that returns an error.