[CI]【Hackathon 10th Spring No.33】功能模块 fastdeploy/config.py单测补充 #6417
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.
Motivation
NO.33 功能模块 fastdeploy/config.py 单测补充
Modifications
add unittest tests\utils\test_config.py
develop 分支:覆盖率83%,Miss行数149(126, 149-150, 160, 275, 278, 307-309, 313-314, 343-344, 348-351, 353->356, 362, 375-376, 386->exit, 396, 414-422, 438, 442->435, 445, 459, 471, 528-535, 545->551, 564, 569, 576->575, 589, 694-696, 782, 786, 794-797, 803->exit, 825-828, 834-853, 873, 1030-1033, 1051->1057, 1057->1061, 1174->1178, 1178->1181, 1181->exit, 1192, 1196, 1282, 1323-1326, 1414, 1418-1419, 1421-1422, 1441, 1451, 1453, 1555->1557, 1571-1574, 1581-1584, 1700, 1751, 1761-1763, 1777, 1779, 1791-1792, 1810-1811, 1816-1825, 1827->1830, 1833, 1841-1852, 1865-1871, 1887-1888, 1895-1896, 1909-1916, 1920, 2009-2012, 2031-2041, 2045->2049, 2050->2055, 2061-2064, 2076-2077, 2085->2074, 2148-2155)

当前PR:覆盖率94%,Miss行数42

完成单测覆盖行数149-42=107
Usage or Command
no need
Accuracy Tests
no need
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.