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

Function test_binary_content

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

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn test_binary_content() {
551 let content = &[0x00, 0x01, 0x0a, 0x02, 0x03, 0x0a];
552 let lines: Vec<_> = LineSplit::new(content, &Separator::Newline).collect();
553
554 assert_eq!(lines.len(), 2);
555 assert_eq!(lines[0].content(), &[0x00, 0x01, 0x0a]);
556 assert_eq!(lines[1].content(), &[0x02, 0x03, 0x0a]);
557 }
558
559 #[test]
560 fn test_very_long_line() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected