()
| 336 | |
| 337 | #[test] |
| 338 | fn test_separator_find_newline() { |
| 339 | let sep = Separator::Newline; |
| 340 | assert_eq!(sep.find_in(b"hello\nworld"), Some(5)); |
| 341 | assert_eq!(sep.find_in(b"no newline"), None); |
| 342 | assert_eq!(sep.find_in(b"\n"), Some(0)); |
| 343 | } |
| 344 | |
| 345 | #[test] |
| 346 | fn test_separator_find_crlf() { |
nothing calls this directly
no outgoing calls
no test coverage detected