MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_separator_find_crlf

Function test_separator_find_crlf

atomic-core/src/diff/split.rs:346–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected