MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / TestNewUserExampleCache

Function TestNewUserExampleCache

internal/cache/userExample_test.go:134–147  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

132}
133
134func TestNewUserExampleCache(t *testing.T) {
135 c := NewUserExampleCache(&database.CacheType{
136 CType: "",
137 })
138 assert.Nil(t, c)
139 c = NewUserExampleCache(&database.CacheType{
140 CType: "memory",
141 })
142 assert.NotNil(t, c)
143 c = NewUserExampleCache(&database.CacheType{
144 CType: "redis",
145 })
146 assert.NotNil(t, c)
147}

Callers

nothing calls this directly

Calls 1

NewUserExampleCacheFunction · 0.85

Tested by

no test coverage detected