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

Function test_truncate_long_string

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

Source from the content-addressed store, hash-verified

1196
1197 #[test]
1198 fn test_truncate_long_string() {
1199 let long = "a".repeat(100);
1200 let result = truncate_for_summary(&long, 20);
1201 assert!(result.ends_with("..."));
1202 assert!(result.len() <= 20);
1203 }
1204
1205 #[test]
1206 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