MCPcopy
hub / github.com/grafana/tempo / TestApplyHeadersGRPC_lastWins

Function TestApplyHeadersGRPC_lastWins

cmd/tempo-cli/shared_test.go:87–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

85}
86
87func TestApplyHeadersGRPC_lastWins(t *testing.T) {
88 ctx := applyHeadersGRPC(context.Background(), []string{"X-TOKEN=first", "X-TOKEN=second"})
89
90 md, ok := metadata.FromOutgoingContext(ctx)
91 require.True(t, ok)
92 require.Equal(t, []string{"second"}, md.Get("X-TOKEN"))
93}
94
95func TestApplyHeadersGRPC_empty(t *testing.T) {
96 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

applyHeadersGRPCFunction · 0.85
GetMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected