teknium1
121bbe0385
test(stream-consumer): add UTF-16 overflow regression tests for #11170
...
New TestUtf16OverflowDetection class covers two scenarios:
- test_emoji_text_exceeding_utf16_limit_triggers_overflow_split: feeds
2200 emoji codepoints (4400 UTF-16 units) — under Telegram's
codepoint-equivalent limit but over its UTF-16 limit. Asserts
truncate_message was called with len_fn=utf16_len, confirming the
consumer detected the overflow.
- test_codepoint_only_adapter_falls_back_to_len: documents that
adapters which don't subclass BasePlatformAdapter (or test MagicMocks)
fall back to plain len for backwards compat.
The contributor's PR shipped no tests for the UTF-16 path.
2026-05-10 16:21:07 -07:00
..
2026-05-05 10:18:28 -07:00
2026-05-09 14:36:58 -07:00
2026-05-10 15:21:30 -07:00
2026-05-10 16:16:10 -07:00
2026-05-09 11:11:45 -07:00
2026-05-04 01:39:23 -07:00
2026-05-10 16:21:07 -07:00
2026-05-10 16:14:43 -07:00
2026-04-24 03:04:42 -07:00
2026-04-27 12:37:33 -07:00
2026-04-16 16:50:15 -07:00
2026-04-30 02:35:29 -07:00
2026-05-10 08:41:28 -07:00
2026-05-09 14:47:00 -07:00
2026-05-09 22:51:25 -07:00
2026-05-09 13:36:01 -07:00
2026-05-09 11:07:37 -07:00
2026-05-10 16:14:43 -07:00
2026-05-05 15:42:39 -05:00
2026-05-05 13:46:20 -07:00
2026-05-10 13:20:27 -07:00
2026-04-21 01:56:35 -07:00
2026-04-28 04:58:22 -07:00
2026-04-21 06:06:16 -07:00
2026-04-24 14:32:21 -07:00
2026-04-21 08:00:00 -07:00
2026-04-28 05:21:49 -07:00
2026-04-29 23:18:55 -07:00
2026-04-13 10:50:24 -07:00
2026-04-12 03:53:30 -07:00
2026-04-30 04:32:06 -07:00
2026-05-08 14:43:13 -07:00
2026-05-07 09:59:07 -07:00
2026-05-02 01:49:55 -07:00
2026-04-26 19:01:26 -07:00
2026-05-09 02:09:35 -07:00
2026-05-09 17:53:02 -07:00
2026-05-06 04:02:02 -07:00
2026-04-28 06:45:55 -07:00
2026-05-07 13:04:08 -07:00
2026-04-11 23:12:11 -07:00
2026-05-06 01:11:49 +05:30
2026-05-08 14:27:40 -07:00
2026-05-07 13:41:16 -07:00
2026-04-20 12:23:05 -07:00
2026-04-19 22:44:47 -07:00
2026-04-29 09:53:42 -07:00
2026-04-29 05:00:40 -07:00
2026-04-29 12:43:39 -07:00
2026-05-05 10:15:31 -07:00
2026-05-07 06:35:54 -07:00
2026-04-17 13:31:53 -07:00
2026-05-07 13:04:08 -07:00
2026-04-17 14:21:22 -07:00
2026-05-05 10:14:17 -07:00
2026-04-20 12:23:05 -07:00
2026-04-20 12:23:05 -07:00
2026-05-07 05:46:05 -07:00
2026-04-20 23:20:33 -07:00
2026-05-07 18:54:29 -04:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00