(t *testing.T)
| 257 | } |
| 258 | |
| 259 | func TestChangeCacheEmptyKey(t *testing.T) { |
| 260 | t.Parallel() |
| 261 | |
| 262 | ctx := t.Context() |
| 263 | c := newChangeCache() |
| 264 | |
| 265 | _, err := c.getOrInit(ctx, "", func(context.Context) (*ChangeWithStat, error) { |
| 266 | return nil, nil |
| 267 | }) |
| 268 | assert.ErrorContains(t, err, "cache call key is empty") |
| 269 | } |
nothing calls this directly
no test coverage detected