(t *testing.T)
| 369 | } |
| 370 | |
| 371 | func TestCtxWithID(t *testing.T) { |
| 372 | ctx := context.Background() |
| 373 | |
| 374 | id, _ := xid.FromString(`c0umremcie6smuu506pg`) |
| 375 | |
| 376 | want := context.Background() |
| 377 | want = context.WithValue(want, idKey{}, id) |
| 378 | |
| 379 | if got := CtxWithID(ctx, id); !reflect.DeepEqual(got, want) { |
| 380 | t.Errorf("CtxWithID() = %v, want %v", got, want) |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | func TestHostHandler(t *testing.T) { |
| 385 | out := &bytes.Buffer{} |
nothing calls this directly
no test coverage detected