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

Function test_semantic_line_from_bytes

atomic-core/src/diff/semantic/tests.rs:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19 #[test]
20 fn test_semantic_line_from_bytes() {
21 let content = b"line1\nline2\nline3\n";
22 let lines = SemanticLine::from_bytes(content);
23 assert_eq!(lines.len(), 3);
24 assert_eq!(lines[0].line_num(), 1);
25 assert_eq!(lines[1].line_num(), 2);
26 assert_eq!(lines[2].line_num(), 3);
27 }
28
29 #[test]
30 fn test_semantic_line_content_str() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected