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

Method TestBasicModule

core/integration/module_shell_test.go:555–565  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T)

Source from the content-addressed store, hash-verified

553}
554
555func (ShellSuite) TestBasicModule(ctx context.Context, t *testctx.T) {
556 c := connect(ctx, t)
557
558 script := "container-echo hello-world-im-here | stdout"
559 out, err := daggerCliBase(t, c).
560 With(withModInit("go", "")).
561 With(daggerShell(script)).
562 Stdout(ctx)
563 require.NoError(t, err)
564 require.Contains(t, out, "hello-world-im-here")
565}
566
567func (ShellSuite) TestPassingID(ctx context.Context, t *testctx.T) {
568 c := connect(ctx, t)

Callers

nothing calls this directly

Calls 7

daggerCliBaseFunction · 0.85
withModInitFunction · 0.85
daggerShellFunction · 0.85
connectFunction · 0.70
ContainsMethod · 0.65
StdoutMethod · 0.45
WithMethod · 0.45

Tested by

no test coverage detected