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

Method TestIntegerArg

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

Source from the content-addressed store, hash-verified

530}
531
532func (ShellSuite) TestIntegerArg(ctx context.Context, t *testctx.T) {
533 c := connect(ctx, t)
534
535 script := "container | with-exposed-port 80 | exposed-ports | port"
536 out, err := daggerCliBase(t, c).
537 With(daggerShell(script)).
538 Stdout(ctx)
539 require.NoError(t, err)
540 require.Equal(t, "80\n", out)
541}
542
543func (ShellSuite) TestExport(ctx context.Context, t *testctx.T) {
544 c := connect(ctx, t)

Callers

nothing calls this directly

Calls 6

daggerCliBaseFunction · 0.85
daggerShellFunction · 0.85
connectFunction · 0.70
EqualMethod · 0.65
StdoutMethod · 0.45
WithMethod · 0.45

Tested by

no test coverage detected