(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func 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 | |
| 95 | func TestApplyHeadersGRPC_empty(t *testing.T) { |
| 96 | ctx := context.Background() |
nothing calls this directly
no test coverage detected