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

Function test_semantic_line_new

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

Source from the content-addressed store, hash-verified

11
12 #[test]
13 fn test_semantic_line_new() {
14 let line = SemanticLine::new(b"let x = 42;\n", 1);
15 assert_eq!(line.line_num(), 1);
16 assert!(!line.tokens().is_empty());
17 }
18
19 #[test]
20 fn test_semantic_line_from_bytes() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected