MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / paragraph_basic

Function paragraph_basic

nodedb-query/src/chunk_text.rs:401–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399
400 #[test]
401 fn paragraph_basic() {
402 let text = "Paragraph one.\n\nParagraph two.\n\nParagraph three.";
403 let chunks = chunk_text(text, 20, 0, ChunkStrategy::Paragraph).unwrap();
404 assert!(chunks.len() >= 2);
405 assert!(chunks[0].text.contains("Paragraph one"));
406 }
407
408 #[test]
409 fn empty_text() {

Callers

nothing calls this directly

Calls 1

chunk_textFunction · 0.85

Tested by

no test coverage detected