chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:33 +08:00
commit fc4fcbab58
1848 changed files with 472303 additions and 0 deletions
@@ -0,0 +1,19 @@
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)
}
}