(t *testing.T)
| 132 | } |
| 133 | |
| 134 | func 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 | } |
nothing calls this directly
no test coverage detected