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

Function test_separator_find_newline

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected