zeroclaw/tests
Alex Gorevski 7f03ab77a9 test: add systematic test coverage for 7 bug pattern groups (#852)
Add ~105 test cases across 7 test groups identified in issue #852:

TG1 - Provider resolution (27 tests): Factory resolution, alias mapping,
      custom URLs, auth styles, credential wiring
TG2 - Config persistence (18 tests): Config defaults, TOML roundtrip,
      agent/memory config, workspace dirs
TG3 - Channel routing (14 tests): ChannelMessage identity contracts,
      SendMessage construction, Channel trait send/listen roundtrip
TG4 - Agent loop robustness (12 integration + 14 inline tests): Malformed
      tool calls, failing tools, iteration limits, empty responses, unicode
TG5 - Memory restart (14 tests): Dedup on same key, restart persistence,
      session scoping, recall, concurrent stores, categories
TG6 - Channel message splitting (8+8 inline tests): Code blocks at boundary,
      long words, emoji, CJK chars, whitespace edge cases
TG7 - Provider schema (21 tests): ChatMessage/ToolCall/ChatResponse
      serialization, tool_call_id preservation, auth style variants

Also fixes a bug in split_message_for_telegram() where byte-based indexing
could panic on multi-byte characters (emoji, CJK). Now uses char_indices()
consistent with the Discord split implementation.

Closes #852

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 15:28:34 -08:00
..
agent_e2e.rs style(tests): apply rustfmt to brittle-test hardening changes 2026-02-18 14:17:58 +08:00
agent_loop_robustness.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
channel_routing.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
config_persistence.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
dockerignore_test.rs feat: integrate open-skills library and cleanup clippy warnings 2026-02-14 20:25:07 -05:00
memory_comparison.rs feat(memory): add session_id isolation to Memory trait (#530) 2026-02-17 07:44:05 -05:00
memory_restart.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
provider_resolution.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
provider_schema.rs test: add systematic test coverage for 7 bug pattern groups (#852) 2026-02-18 15:28:34 -08:00
reply_target_field_regression.rs fix(channels): enforce reply_target naming consistency 2026-02-18 19:56:31 +08:00
whatsapp_webhook_security.rs fix(memory): prevent autosave key collisions across runtime flows 2026-02-15 22:55:52 -05:00