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

Function test_tokenize_simple_content

atomic-repository/src/semantic_regen.rs:795–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

793
794 #[test]
795 fn test_tokenize_simple_content() {
796 let content = b"fn main() {\n println!(\"hello\");\n}\n";
797 let ops = tokenize_content_for_display("src/main.rs", content, Encoding::Utf8);
798
799 assert_eq!(ops.path(), "src/main.rs");
800 assert!(ops.is_create());
801 assert!(ops.line_count() > 0);
802 assert!(ops.token_count() > 0);
803 }
804
805 #[test]
806 fn test_tokenize_empty_content() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected