()
| 477 | |
| 478 | #[test] |
| 479 | fn extract_cookie_finds_value() { |
| 480 | let cookies = "other=foo; CF_Authorization=eyJhbGciOiJSUzI1NiJ9.test; bar=baz"; |
| 481 | assert_eq!( |
| 482 | extract_cookie(cookies, "CF_Authorization"), |
| 483 | Some("eyJhbGciOiJSUzI1NiJ9.test".to_string()) |
| 484 | ); |
| 485 | } |
| 486 | |
| 487 | #[test] |
| 488 | fn extract_cookie_returns_none_when_missing() { |
nothing calls this directly
no outgoing calls
no test coverage detected