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

Function resolveImplicitInputString

core/modfunc_test.go:142–152  ·  view source on GitHub ↗
(t *testing.T, input dagql.ImplicitInput, ctx context.Context)

Source from the content-addressed store, hash-verified

140}
141
142func resolveImplicitInputString(t *testing.T, input dagql.ImplicitInput, ctx context.Context) string {
143 t.Helper()
144
145 value, err := input.Resolver(ctx, nil)
146 require.NoError(t, err)
147 require.NotNil(t, value)
148
149 strVal, ok := value.(dagql.String)
150 require.True(t, ok, "expected dagql.String implicit input value, got %T", value)
151 return strVal.String()
152}

Callers 1

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected