Versions in this module Expand all Collapse all v2 v2.6.2 Aug 12, 2022 Changes in this version + func AddRecordsToBatch(batch index.WriteBatch, tableName string, start, numRecords int) + func AddRecordsToDB(t testing.TB, path string, start, numRecords int, bucketName []byte) + func BuildUserID(id int) string + func DecompressFile(t *testing.T, src, dest string) + func SetupDBsAtPath(t *testing.T, path string, dbs map[string]DBConfig, bucketName []byte) string + func SetupTable(t *testing.T, path string, commonDBsConfig DBsConfig, ...) + func VerifyIndexes(t *testing.T, userID string, queries []index.Query, ...) + func VerifySingleIndexFile(t *testing.T, query index.Query, db *bbolt.DB, bucketName []byte, ...) + type DBConfig struct + type DBRecords struct + NumRecords int + Start int + type DBsConfig struct + DBRecordsStart int + NumCompactedDBs int + NumUnCompactedDBs int + func (c DBsConfig) String() string + type IndexIteratorFunc func(ctx context.Context, table string, callback func(boltdb *bbolt.DB) error) error + type PerUserDBsConfig struct + NumUsers int + func (c PerUserDBsConfig) String() string + type SingleDBQuerier interface + QueryDB func(ctx context.Context, db *bbolt.DB, bucketName []byte, query index.Query, ...) error