Documentation ¶
Index ¶
- Constants
- type TraceDecoder
- func (td *TraceDecoder) GetOperations() (operations []TraceOperation)
- func (td *TraceDecoder) GetWriteOperations() (operations []TraceOperation)
- func (td *TraceDecoder) RequireKeyPrefixWrittenInSequence(t *testing.T, keys []string)
- func (td *TraceDecoder) RequireKeyPrefixesWritten(t *testing.T, keys []string)
- func (td *TraceDecoder) RequireReadWriteInSequence(t *testing.T, expectedOperations []TraceOperation)
- type TraceOperation
Constants ¶
View Source
const DeleteOperation = "delete"
View Source
const ReadOperation = "read"
View Source
const WriteOperation = "write"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceDecoder ¶
func (*TraceDecoder) GetOperations ¶
func (td *TraceDecoder) GetOperations() (operations []TraceOperation)
func (*TraceDecoder) GetWriteOperations ¶
func (td *TraceDecoder) GetWriteOperations() (operations []TraceOperation)
func (*TraceDecoder) RequireKeyPrefixWrittenInSequence ¶
func (td *TraceDecoder) RequireKeyPrefixWrittenInSequence( t *testing.T, keys []string, )
func (*TraceDecoder) RequireKeyPrefixesWritten ¶
func (td *TraceDecoder) RequireKeyPrefixesWritten( t *testing.T, keys []string, )
RequireKeyPrefixesWritten checks if the list of key prefixes were written to. This should be used when the order of writes do not have a deterministic ordering, i.e when state is branched and written back to. TODO(CLOB-851) update this function to assert ordering of key prefixes within stores.
func (*TraceDecoder) RequireReadWriteInSequence ¶
func (td *TraceDecoder) RequireReadWriteInSequence( t *testing.T, expectedOperations []TraceOperation, )
Click to show internal directories.
Click to hide internal directories.