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

Function test_semantic_line_is_blank

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

Source from the content-addressed store, hash-verified

34
35 #[test]
36 fn test_semantic_line_is_blank() {
37 let blank = SemanticLine::new(b" \n", 1);
38 assert!(blank.is_blank());
39
40 let not_blank = SemanticLine::new(b"hello\n", 1);
41 assert!(!not_blank.is_blank());
42 }
43
44 #[test]
45 fn test_semantic_line_significant_token_count() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected