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

Function test_truncate_result_long

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

Source from the content-addressed store, hash-verified

1222
1223 #[test]
1224 fn test_truncate_result_long() {
1225 let s = "x".repeat(MAX_TOOL_RESULT_BYTES + 100);
1226 let result = truncate_result(&s);
1227 assert!(result.contains("truncated"));
1228 assert!(result.len() < s.len() + 100);
1229 }
1230
1231 #[test]
1232 fn test_truncate_result_multibyte_never_panics() {

Callers

nothing calls this directly

Calls 1

truncate_resultFunction · 0.85

Tested by

no test coverage detected