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

Method test_exact_length

tests/display/test_formatters.py:281–287  ·  view source on GitHub ↗

Test with content exactly at max_len.

(self)

Source from the content-addressed store, hash-verified

279 assert len(result) <= 105
280
281 def test_exact_length(self):
282 """Test with content exactly at max_len."""
283 text = "x" * 100
284 result = format_content_preview(text, max_len=100)
285
286 # Should return as-is
287 assert result == text
288
289 def test_custom_max_len(self):
290 """Test with custom max_len."""

Callers

nothing calls this directly

Calls 1

format_content_previewFunction · 0.90

Tested by

no test coverage detected