W22.2 补充:qa-xu profile 更新 + network_plugin_test 清理
Some checks failed
CI / Determine matrix (push) Has been cancelled
CI / Sanitizer (ASan+UBSan) / ubuntu-24.04 (push) Has been cancelled
CI / Coverage (gcovr) / ubuntu-24.04 (push) Has been cancelled
CI / ${{ matrix.os }} / ${{ matrix.build_type }} (push) Has been cancelled

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 21:27:23 +08:00
parent df3bf298ee
commit 3cc9ee95e4
2 changed files with 67 additions and 109 deletions

View File

@@ -18,6 +18,20 @@ weaknesses:
- 单元测试有时过于针对实现
- 不太关注测试可读性
performance_log:
- date: 2026-05-27
event: "W22.2: network_plugin 单元测试 — 7 测试块, 88 断言, 覆盖 parse_headers_json/SSE 解析/参数校验"
rating: done
detail: |
创建 tests/network_plugin_test.cpp (290 行), 通过 #include source 模式测试:
Block1 parse_headers_json 正常 JSON (13 断言)
Block2 空/null 输入 (5 断言)
Block3 畸形 JSON 边界 — 未闭合括号/引号/嵌套对象/二进制垃圾等 11 场景 (15 断言)
Block4 超长 header 值 — 5000/10000 char value, 1000 char key, 空 key (8 断言)
Block5 SSE 行解析 — LF/CRLF/空行/[DONE]/断帧/null bytes (23 断言)
Block6 http_post_json 参数校验 — nullptr host/port/target/body/response_body/status_code (10 断言)
Block7 http_post_stream 参数校验 (2 断言)
_exit() 绕过 OpenSSL 静态析构顺序问题; tests/CMakeLists.txt 新增 dstalk-network-plugin-test 目标
cmake --build build --config Release 0 error, ctest 9/9 100% pass
- date: 2026-05-27
event: "W21.5: smoke 回归补 tool_calls 边界用例 — 4 测试块, 12 断言"
rating: done