MCPcopy Index your code
hub / github.com/dagger/dagger / TestChangeCacheEmptyKey

Function TestChangeCacheEmptyKey

engine/filesync/change_cache_test.go:259–269  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

257}
258
259func 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}

Callers

nothing calls this directly

Calls 3

newChangeCacheFunction · 0.85
getOrInitMethod · 0.80
ContextMethod · 0.65

Tested by

no test coverage detected