(t *testctx.T)
| 73 | } |
| 74 | |
| 75 | func newCache(t *testctx.T) core.CacheVolumeID { |
| 76 | res, err := testutil.Query[struct { |
| 77 | CacheVolume struct { |
| 78 | ID core.CacheVolumeID |
| 79 | } |
| 80 | }](t, ` |
| 81 | query CreateCache($key: String!) { |
| 82 | cacheVolume(key: $key) { |
| 83 | id |
| 84 | } |
| 85 | } |
| 86 | `, &testutil.QueryOptions{Variables: map[string]any{ |
| 87 | "key": identity.NewID(), |
| 88 | }}) |
| 89 | require.NoError(t, err) |
| 90 | |
| 91 | return res.CacheVolume.ID |
| 92 | } |
| 93 | |
| 94 | func newDirWithFile(t *testctx.T, path, contents string) core.DirectoryID { |
| 95 | res, err := testutil.Query[struct { |
no test coverage detected