(t *testing.T, options CacheOptions, leakyOptions base.LeakyBucketConfig)
| 148 | } |
| 149 | |
| 150 | func setupTestLeakyDBWithCacheOptions(t *testing.T, options CacheOptions, leakyOptions base.LeakyBucketConfig) (*Database, context.Context) { |
| 151 | testBucket := base.GetTestBucket(t) |
| 152 | leakyBucket := base.NewLeakyBucket(testBucket, leakyOptions) |
| 153 | dbcOptions := DatabaseContextOptions{ |
| 154 | CacheOptions: &options, |
| 155 | } |
| 156 | return SetupTestDBForBucketWithOptions(t, leakyBucket, dbcOptions) |
| 157 | } |
| 158 | |
| 159 | func setupTestDBDefaultCollection(t testing.TB) (*Database, context.Context) { |
| 160 | cacheOptions := DefaultCacheOptions() |
no test coverage detected