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

Method TestScratch

core/integration/container_test.go:50–69  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T)

Source from the content-addressed store, hash-verified

48}
49
50func (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
71func (ContainerSuite) TestFrom(ctx context.Context, t *testctx.T) {
72 res, err := testutil.Query[struct {

Callers

nothing calls this directly

Calls 1

QueryFunction · 0.92

Tested by

no test coverage detected