createTestRecord creates a record with the given key, TTL, and timestamp
(key string, ttlVal uint32, timestamp uint64)
| 217 | |
| 218 | // createTestRecord creates a record with the given key, TTL, and timestamp |
| 219 | func createTestRecord(key string, ttlVal uint32, timestamp uint64) *core.Record { |
| 220 | return core.NewRecord(). |
| 221 | WithKey([]byte(key)). |
| 222 | WithValue([]byte("value_" + key)). |
| 223 | WithTTL(ttlVal). |
| 224 | WithTimestamp(timestamp) |
| 225 | } |
| 226 | |
| 227 | func TestBTree_TTL_Find(t *testing.T) { |
| 228 | mockClock := ttl.NewMockClock(1000000) // Current time: 1000 seconds in millis |
no test coverage detected