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

Function Test_userExampleCache_Del

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

Source from the content-addressed store, hash-verified

108}
109
110func Test_userExampleCache_Del(t *testing.T) {
111 c := newUserExampleCache()
112 defer c.Close()
113
114 record := c.TestDataSlice[0].(*model.UserExample)
115 err := c.ICache.(UserExampleCache).Del(c.Ctx, record.ID)
116 if err != nil {
117 t.Fatal(err)
118 }
119}
120
121func Test_userExampleCache_SetCacheWithNotFound(t *testing.T) {
122 c := newUserExampleCache()

Callers

nothing calls this directly

Calls 4

newUserExampleCacheFunction · 0.85
CloseMethod · 0.65
DelMethod · 0.65
FatalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…