(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func Test_userExampleCache_Set(t *testing.T) { |
| 35 | c := newUserExampleCache() |
| 36 | defer c.Close() |
| 37 | |
| 38 | record := c.TestDataSlice[0].(*model.UserExample) |
| 39 | err := c.ICache.(UserExampleCache).Set(c.Ctx, record.ID, record, time.Hour) |
| 40 | if err != nil { |
| 41 | t.Fatal(err) |
| 42 | } |
| 43 | |
| 44 | // nil data |
| 45 | err = c.ICache.(UserExampleCache).Set(c.Ctx, 0, nil, time.Hour) |
| 46 | assert.NoError(t, err) |
| 47 | } |
| 48 | |
| 49 | func Test_userExampleCache_Get(t *testing.T) { |
| 50 | c := newUserExampleCache() |
nothing calls this directly
no test coverage detected