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

Function test_truncate_result_long

atomic-repository/src/ai/tools.rs:1182–1187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1180
1181 #[test]
1182 fn test_truncate_result_long() {
1183 let s = "x".repeat(MAX_TOOL_RESULT_BYTES + 100);
1184 let result = truncate_result(&s);
1185 assert!(result.contains("truncated"));
1186 assert!(result.len() < s.len() + 100);
1187 }
1188
1189 #[test]
1190 fn test_preview_short() {

Callers

nothing calls this directly

Calls 1

truncate_resultFunction · 0.85

Tested by

no test coverage detected