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

Function test_create_deletion_tokens

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

Source from the content-addressed store, hash-verified

430
431 #[test]
432 fn test_create_deletion_tokens() {
433 let line = SemanticLine::new(b"goodbye world\n", 1);
434 let tokens = create_deletion_tokens(&line);
435
436 // All should be deletions
437 for tc in &tokens {
438 assert!(tc.is_deleted());
439 }
440 }
441
442 #[test]
443 fn test_token_byte_range() {

Callers

nothing calls this directly

Calls 1

create_deletion_tokensFunction · 0.85

Tested by

no test coverage detected