19 lines · 623 B · Swift
RawDownload
import Testing@testable import CodexBarCore struct OpenCodeWebCookieSupportTests {    @Test    func `request cookie header keeps only opencode auth cookies`() {        let header = OpenCodeWebCookieSupport.requestCookieHeader(            from: "provider=google; auth=session123; theme=dark; __Host-auth=host456")         #expect(header == "auth=session123; __Host-auth=host456")    }     @Test    func `request cookie header returns nil when auth cookie is missing`() {        let header = OpenCodeWebCookieSupport.requestCookieHeader(from: "provider=google; theme=dark")         #expect(header == nil)    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t