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

Function test_separator_as_bytes

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

Source from the content-addressed store, hash-verified

314
315 #[test]
316 fn test_separator_as_bytes() {
317 assert_eq!(Separator::Newline.as_bytes(), b"\n");
318 assert_eq!(Separator::CrLf.as_bytes(), b"\r\n");
319 assert_eq!(Separator::Byte(b':').as_bytes(), b":");
320 assert_eq!(Separator::Custom(b"||".to_vec()).as_bytes(), b"||");
321 }
322
323 #[test]
324 fn test_separator_len() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected