Method
TestScratch
(ctx context.Context, t *testctx.T)
Source from the content-addressed store, hash-verified
| 48 | } |
| 49 | |
| 50 | func (ContainerSuite) TestScratch(ctx context.Context, t *testctx.T) { |
| 51 | res, err := testutil.Query[struct { |
| 52 | Container struct { |
| 53 | ID string |
| 54 | Rootfs struct { |
| 55 | Entries []string |
| 56 | } |
| 57 | } |
| 58 | }](t, |
| 59 | `{ |
| 60 | container { |
| 61 | id |
| 62 | rootfs { |
| 63 | entries |
| 64 | } |
| 65 | } |
| 66 | }`, nil) |
| 67 | require.NoError(t, err) |
| 68 | require.Empty(t, res.Container.Rootfs.Entries) |
| 69 | } |
| 70 | |
| 71 | func (ContainerSuite) TestFrom(ctx context.Context, t *testctx.T) { |
| 72 | res, err := testutil.Query[struct { |
Callers
nothing calls this directly
Tested by
no test coverage detected