()
| 344 | |
| 345 | #[test] |
| 346 | fn test_separator_find_crlf() { |
| 347 | let sep = Separator::CrLf; |
| 348 | assert_eq!(sep.find_in(b"hello\r\nworld"), Some(5)); |
| 349 | assert_eq!(sep.find_in(b"hello\nworld"), None); |
| 350 | assert_eq!(sep.find_in(b"hello\rworld"), None); |
| 351 | assert_eq!(sep.find_in(b"\r\n"), Some(0)); |
| 352 | } |
| 353 | |
| 354 | #[test] |
| 355 | fn test_separator_find_byte() { |
nothing calls this directly
no outgoing calls
no test coverage detected