[CI] 【Hackathon 9th Sprint No.39】NO.39 功能模块单测补充 by xunyoyo · Pull Request #5061 · PaddlePaddle/FastDeploy (original) (raw)
This test file implements various unit tests for the ResourceManagerV1 class, including functionality for managing requests, handling multimodal inputs, and testing resource allocation and scheduling behaviors.
python -m coverage run -m unittest tests.engine.test_resource_manager_v1
&& python -m coverage report -m --include='fastdeploy/engine/sched/resource_manager_v1.py'
Name Stmts Miss Cover Missing
fastdeploy/engine/sched/resource_manager_v1.py 681 95 86% 354, 375, 397, 427, 431, 451, 454-455, 463, 474, 491, 497 -500, 532-533, 552-562, 604-639, 648, 658-660, 678, 681-682, 708-710, 724, 727-728, 746-750, 776, 837-839, 844-846, 915, 939, 95 3-954, 967-982, 1000, 1002, 1004, 1022-1025, 1034-1035, 1103, 1110-1111
TOTAL 681 95 86%