Add test cases for SVG export, text rendering, and CLI convert command.#3338
Open
OnionsYu wants to merge 6 commits intoTencent:mainfrom
Open
Add test cases for SVG export, text rendering, and CLI convert command.#3338OnionsYu wants to merge 6 commits intoTencent:mainfrom
OnionsYu wants to merge 6 commits intoTencent:mainfrom
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3338 +/- ##
==========================================
+ Coverage 75.21% 77.94% +2.72%
==========================================
Files 509 509
Lines 35211 37594 +2383
Branches 11270 11274 +4
==========================================
+ Hits 26485 29303 +2818
+ Misses 6422 5998 -424
+ Partials 2304 2293 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 SVG 导出功能的测试覆盖,包括以下三个方面:
SVG 导出测试(PAGXSVGTest):新增针对滤镜效果(模糊、投影、颜色矩阵、渐变等)和边界条件(空图层、大尺寸内容、多帧序列等)的综合测试用例。
文字渲染测试:新增 SVGTextLayout 布局测试和 ComputeGlyphPaths 字形路径计算的单元测试。
CLI 转换命令测试(PAGXCliTest):新增针对错误处理(无效输入、文件格式不支持等)和 SVG↔PAGX 双向转换 roundtrip 的综合测试用例。