MCPcopy Index your code
hub / github.com/flyteorg/flyte / TestValues

Function TestValues

flytestdlib/contextutils/context_test.go:130–138  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

128}
129
130func TestValues(t *testing.T) {
131 ctx := context.Background()
132 ctx = WithWorkflowID(ctx, "flyte")
133 m := Values(ctx, ProjectKey, WorkflowIDKey)
134 assert.NotNil(t, m)
135 assert.Equal(t, 2, len(m))
136 assert.Equal(t, "flyte", m[WorkflowIDKey.String()])
137 assert.Equal(t, "", m[ProjectKey.String()])
138}
139
140func TestWithGoroutineLabel(t *testing.T) {
141 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

WithWorkflowIDFunction · 0.85
ValuesFunction · 0.85
EqualMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected