MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_custom_max_len

Method test_custom_max_len

tests/display/test_formatters.py:289–295  ·  view source on GitHub ↗

Test with custom max_len.

(self)

Source from the content-addressed store, hash-verified

287 assert result == text
288
289 def test_custom_max_len(self):
290 """Test with custom max_len."""
291 text = "x" * 200
292 result = format_content_preview(text, max_len=50)
293
294 assert result.endswith("...")
295 assert len(result) <= 55
296
297 def test_multiline_content(self):
298 """Test with multiline content."""

Callers

nothing calls this directly

Calls 1

format_content_previewFunction · 0.90

Tested by

no test coverage detected