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

Method TestExport

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

Source from the content-addressed store, hash-verified

541}
542
543func (ShellSuite) TestExport(ctx context.Context, t *testctx.T) {
544 c := connect(ctx, t)
545
546 script := "directory | with-new-file foo bar | export mydir"
547 out, err := daggerCliBase(t, c).
548 With(daggerShell(script)).
549 File("mydir/foo").
550 Contents(ctx)
551 require.NoError(t, err)
552 require.Equal(t, "bar", out)
553}
554
555func (ShellSuite) TestBasicModule(ctx context.Context, t *testctx.T) {
556 c := connect(ctx, t)

Callers

nothing calls this directly

Calls 7

daggerCliBaseFunction · 0.85
daggerShellFunction · 0.85
connectFunction · 0.70
FileMethod · 0.65
EqualMethod · 0.65
ContentsMethod · 0.45
WithMethod · 0.45

Tested by

no test coverage detected