MCPcopy
hub / github.com/redis/go-redis / skipBeforeRedisVersion

Function skipBeforeRedisVersion

tls_cert_auth_test.go:26–31  ·  view source on GitHub ↗

skipBeforeRedisVersion checks if Redis version is below the specified version and skips the test if so

(t *testing.T, version float64, msg string)

Source from the content-addressed store, hash-verified

24
25// skipBeforeRedisVersion checks if Redis version is below the specified version and skips the test if so
26func skipBeforeRedisVersion(t *testing.T, version float64, msg string) {
27 t.Helper()
28 if RedisVersion < version {
29 t.Skipf("Skipping test: Redis version %.1f < %.1f: %s", RedisVersion, version, msg)
30 }
31}
32
33// TestTLSCertificateAuthentication tests that Redis automatically authenticates
34// a user based on the CN field in the client's TLS certificate.

Calls

no outgoing calls

Tested by

no test coverage detected