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

Function test_truncate_long

atomic-agent/src/transcript/tests.rs:681–686  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

679
680#[test]
681fn test_truncate_long() {
682 let long = "a".repeat(300);
683 let result = truncate_for_display(&long, 50);
684 assert!(result.len() <= 54); // 47 + "..."
685 assert!(result.ends_with("..."));
686}
687
688#[test]
689fn test_truncate_exact() {

Callers

nothing calls this directly

Calls 1

truncate_for_displayFunction · 0.85

Tested by

no test coverage detected