MCPcopy Create free account
hub / github.com/dagger/dagger / cacheVolumeTestDirectoryResult

Function cacheVolumeTestDirectoryResult

core/cache_test.go:331–340  ·  view source on GitHub ↗
(t *testing.T, srv *dagql.Server, op string)

Source from the content-addressed store, hash-verified

329}
330
331func cacheVolumeTestDirectoryResult(t *testing.T, srv *dagql.Server, op string) dagql.ObjectResult[*Directory] {
332 t.Helper()
333 res, err := dagql.NewObjectResultForCall(&Directory{}, srv, &dagql.ResultCall{
334 Kind: dagql.ResultCallKindSynthetic,
335 SyntheticOp: op,
336 Type: dagql.NewResultCallType((&Directory{}).Type()),
337 })
338 require.NoError(t, err)
339 return res
340}
341
342func TestCacheVolumeUsageIdentityUsesLiveSnapshotID(t *testing.T) {
343 t.Parallel()

Calls 3

NewObjectResultForCallFunction · 0.92
NewResultCallTypeFunction · 0.92
TypeMethod · 0.65

Tested by

no test coverage detected