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

Function test_create_insertion_tokens

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

Source from the content-addressed store, hash-verified

419
420 #[test]
421 fn test_create_insertion_tokens() {
422 let line = SemanticLine::new(b"hello world\n", 1);
423 let tokens = create_insertion_tokens(&line);
424
425 // All should be insertions
426 for tc in &tokens {
427 assert!(tc.is_inserted());
428 }
429 }
430
431 #[test]
432 fn test_create_deletion_tokens() {

Callers

nothing calls this directly

Calls 1

create_insertion_tokensFunction · 0.85

Tested by

no test coverage detected