[CI] 【Hackathon 9th Sprint No.18】NO.18 功能模块单测补充 -part by xunyoyo · Pull Request #5064 · PaddlePaddle/FastDeploy (original) (raw)

This file contains unit tests for the DeepEP buffer helpers and runners, including various test cases for buffer allocation, cleanup, and dispatching processes.

Motivation

NO.18 功能模块 fastdeploy/model_executor/layers/moe/ep.py 单测补充

Modifications

add tests/model_executor/test_ep.py

Usage or Command

tests/model_executor/test_ep.py:

python -m coverage run -m unittest tests.model_executor.test_ep
&& python -m coverage report -m --include='fastdeploy/model_executor/layers/moe/ep.py'

Accuracy Tests

旧覆盖

File	Stmts	Miss	Branch	BrPart	Cover(%)	Missing
fastdeploy/model_executor/layers/moe/ep.py	208	208	58	0	0	17-646

tests/model_executor/test_ep.py:

Name Stmts Miss Cover Missing

fastdeploy/model_executor/layers/moe/ep.py 208 32 85% 25-26, 44-45, 49-50, 129, 175-178, 186, 267, 270, 279-299, 31 0, 346, 367, 381, 384, 468, 472, 475, 478, 481, 528, 562, 620, 636

TOTAL 208 32 85%

覆盖 ++176 行

Checklist