(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestTTRPCNamespaceHeader(t *testing.T) { |
| 44 | ctx := context.Background() |
| 45 | namespace := "test-namespace" |
| 46 | ctx = withTTRPCNamespaceHeader(ctx, namespace) |
| 47 | |
| 48 | header, ok := fromTTRPCHeader(ctx) |
| 49 | if !ok || header != namespace { |
| 50 | t.Fatalf("ttrp namespace header is set incorrectly") |
| 51 | } |
| 52 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…