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

Function test_truncate_long_string

atomic-agent/src/provenance/classify.rs:1469–1474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1467
1468 #[test]
1469 fn test_truncate_long_string() {
1470 let long = "a".repeat(100);
1471 let result = truncate_for_summary(&long, 20);
1472 assert!(result.ends_with("..."));
1473 assert!(result.len() <= 20);
1474 }
1475
1476 #[test]
1477 fn test_truncate_multiline_uses_first_line() {

Callers

nothing calls this directly

Calls 1

truncate_for_summaryFunction · 0.85

Tested by

no test coverage detected