Registry / testing / rafaeljusto-redigomock

rafaeljusto-redigomock

JSON →
library2.4.0+incompatiblegogounverified

Provides a mock for the Redigo Redis client library to facilitate testing.

go get github.com/rafaeljusto/redigomock
INSTALL
IMPORT
SIG · RAFAELJUSTO-REDIGO
R
rafaeljusto-redigomock
testinggov2.4.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

redigomock
github.com/rafaeljusto/redigomock

Create a mock Redis connection and set up expected commands.

package main import ( "fmt" "github.com/rafaeljusto/redigomock" ) func main() { conn := redigomock.NewConn() conn.Command("GET", "key").Expect("value") result, _ := conn.Do("GET", "key") fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.4.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
rafaeljusto-redigomock — go get rafaeljusto-redigomock · libregistry