(t *testing.T)
| 640 | } |
| 641 | |
| 642 | func TestExtractSessionID_Headers(t *testing.T) { |
| 643 | t.Parallel() |
| 644 | |
| 645 | headers := make(http.Header) |
| 646 | headers.Set("X-Session-ID", "my-explicit-session") |
| 647 | |
| 648 | got := ExtractSessionID(headers, nil, nil) |
| 649 | want := "header:my-explicit-session" |
| 650 | if got != want { |
| 651 | t.Errorf("ExtractSessionID() with header = %q, want %q", got, want) |
| 652 | } |
| 653 | } |
| 654 | |
| 655 | func TestExtractSessionID_CodexSessionIDHeader(t *testing.T) { |
| 656 | t.Parallel() |
nothing calls this directly
no test coverage detected