MCPcopy
hub / github.com/unkeyed/unkey / newTestRedis

Function newTestRedis

pkg/counter/redis_test.go:15–21  ·  view source on GitHub ↗
(t testing.TB, redisURL string)

Source from the content-addressed store, hash-verified

13)
14
15func newTestRedis(t testing.TB, redisURL string) (Counter, error) {
16 t.Helper()
17
18 return newRedis(RedisConfig{
19 RedisURL: redisURL,
20 }, 1*time.Second, 2*time.Second, 2*time.Second)
21}
22
23func TestRedisCounter(t *testing.T) {
24 ctx := context.Background()

Callers 6

TestRedisCounterFunction · 0.85
TestRedisCounterMultiGetFunction · 0.85
TestRedisCounterDeleteFunction · 0.85

Calls 1

newRedisFunction · 0.85

Tested by

no test coverage detected