|
|
@@ -7,15 +7,15 @@
|
|
|
|
|
|
| 指标 | 数值 |
|
|
|
| --- | --- |
|
|
|
-| 控制器总数 | 374 |
|
|
|
-| handler 方法总数 | 2035 |
|
|
|
-| handler 方法已覆盖 | 565 (27.8%) |
|
|
|
+| 控制器总数 | 376 |
|
|
|
+| handler 方法总数 | 2041 |
|
|
|
+| handler 方法已覆盖 | 567 (27.8%) |
|
|
|
| 单元-全覆盖(handler 方法) | 48 |
|
|
|
-| 单元-部分覆盖(handler 方法) | 207 |
|
|
|
+| 单元-部分覆盖(handler 方法) | 209 |
|
|
|
| 单元-未覆盖(handler 方法) | 118 |
|
|
|
| 单元-无handler 方法 | 1 |
|
|
|
-| 测试文件数 | 523 |
|
|
|
-| @Test 方法总数 | 4491 |
|
|
|
+| 测试文件数 | 528 |
|
|
|
+| @Test 方法总数 | 4528 |
|
|
|
| 含跳过/假设项(test 级 partial) | 4 |
|
|
|
|
|
|
## 二、未覆盖控制器(发现「缺口」· 非发明)
|
|
|
@@ -79,18 +79,18 @@
|
|
|
- `UserIntentController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/UserIntentController.java`,4 方法)
|
|
|
- `VirtualPayController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/VirtualPayController.java`,4 方法)
|
|
|
- `AdminActivityRegistrationController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminActivityRegistrationController.java`,3 方法)
|
|
|
-- `AdminEarningsController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminEarningsController.java`,3 方法)
|
|
|
- `AdminGrowthArchiveProductController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/AdminGrowthArchiveProductController.java`,3 方法)
|
|
|
- `AssessmentController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/guide/AssessmentController.java`,3 方法)
|
|
|
- `ContactImportController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/ContactImportController.java`,3 方法)
|
|
|
- `DailyFeedbackController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/DailyFeedbackController.java`,3 方法)
|
|
|
+- `FamilyAttributeController`(`cfc-backend/src/main/java/com/etotem/cfc/controller/admin/FamilyAttributeController.java`,3 方法)
|
|
|
- …(其余 58 个见完整扫描)
|
|
|
|
|
|
## 三、部分覆盖控制器(已做一部分测试)
|
|
|
|
|
|
> 这些控制器**已有测试但只覆盖了部分handler 方法**——即用户要求的「已经做了一部分测试的情况,要能够找到」。
|
|
|
|
|
|
-共 207 个:
|
|
|
+共 209 个:
|
|
|
|
|
|
- `AdminController`:覆盖 2/65,未覆盖方法:getUsers、createUser、getUser、updateUser、resetUserPassword、searchUsers、deleteUser、getChild、updateChild、adjustPoints
|
|
|
- `HealthReportController`:覆盖 9/60,未覆盖方法:getLatestReport、listFamilyReports、listAllReports、getReportIndicatorsWithPrevious、listIndicators、getGutFlora、rebuildIndicatorCurrent、getMemberIndicatorCurrent、getBodyDetail、getReportPayload
|
|
|
@@ -238,12 +238,14 @@
|
|
|
- `NumSoulDetailConfigController`:覆盖 1/4,未覆盖方法:create、update、delete
|
|
|
- `OctopusController`:覆盖 1/4,未覆盖方法:tentacles、addHelpLog、deleteHelpLog
|
|
|
- `ParentAssessmentController`:覆盖 2/4,未覆盖方法:createAssessment、completeAssessment
|
|
|
+- `ParseMonitorController`:覆盖 1/4,未覆盖方法:monitorP0HitRate、monitorP1Top5、monitorDuration
|
|
|
- `PlanReviewController`:覆盖 2/4,未覆盖方法:reviewPlan、planDetail
|
|
|
- `ZodiacConfigController`:覆盖 1/4,未覆盖方法:create、update、delete
|
|
|
- `ActivityFeedbackController`:覆盖 2/3,未覆盖方法:submit
|
|
|
- `ActivityMaterialController`:覆盖 1/3,未覆盖方法:upload、delete
|
|
|
- `AdminCfRateTierController`:覆盖 1/3,未覆盖方法:save、delete
|
|
|
- `AdminCfValueController`:覆盖 1/3,未覆盖方法:getLogs、allBalances
|
|
|
+- `AdminEarningsController`:覆盖 1/3,未覆盖方法:familySummary、familyRecords
|
|
|
- `AdminHealthPlanController`:覆盖 2/3,未覆盖方法:detail
|
|
|
- `AdminNotificationTemplateController`:覆盖 1/3,未覆盖方法:save、delete
|
|
|
- `AdminPackageController`:覆盖 1/3,未覆盖方法:approvePackage、rejectPackage
|
|
|
@@ -394,6 +396,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportDetailContractTest.java` | com | 13 | 13 | 1 | HealthReportController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ManualDimensionScoreContractTest.java` | com | 13 | 6 | 2 | ManualDimensionScoreController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/OrderReceiptTimeoutContractTest.java` | com | 13 | 0 | 0 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ParseMonitorContractTest.java` | com | 13 | 0 | 0 | ParseMonitorController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/PersonalLayerDualAssertionTest.java` | com | 13 | 4 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG03LoginMethodContractTest.java` | com | 13 | 1 | 4 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierNutritionSupplyContractTest.java` | com | 13 | 1 | 4 | — | — |
|
|
|
@@ -416,11 +419,13 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/FoodServiceTest.java` | com | 12 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheEvidenceIsolateContractTest.java` | com | 12 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheGateLowSideRedlineContractTest.java` | com | 12 | 0 | 0 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthAnalysisMediatorAuditContractTest.java` | com | 12 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthSleepControllerContractTest.java` | com | 12 | 1 | 2 | HealthSleepController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/IndicatorTimelineServiceTest.java` | com | 12 | 24 | 0 | IndicatorController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/MembershipServiceAiGateTest.java` | com | 12 | 0 | 0 | MembershipController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/PaymentControllerTest.java` | com | 12 | 17 | 5 | PaymentController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/SupplierInventoryManageContractTest.java` | com | 12 | 4 | 2 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | com | 12 | 8 | 1 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskFrequencyConfigContractTest.java` | com | 12 | 0 | 0 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TeacherFamilyBindContractTest.java` | com | 12 | 6 | 0 | TeacherController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TeamShareWeightedContractTest.java` | com | 12 | 0 | 0 | — | — |
|
|
|
@@ -456,7 +461,6 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/common/ResultCodeFactoryTest.java` | com | 11 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/reward/RewardEstimateControllerEstimateTest.java` | com | 11 | 0 | 0 | RewardController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ShopCouponClaimContractTest.java` | com | 11 | 0 | 0 | — | — |
|
|
|
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskCompleteScC02ContractTest.java` | com | 11 | 7 | 1 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/ActivityAdminServiceTest.java` | com | 10 | 10 | 0 | ActivityController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ActivityAuditTest.java` | com | 10 | 4 | 0 | ActivityController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminAuditLogContractTest.java` | com | 10 | 0 | 0 | AdminAuditController | — |
|
|
|
@@ -586,6 +590,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheShellGuardContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheV2ParseContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/GuideFamilyServiceTest.java` | com | 7 | 0 | 0 | GuideController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanMedicalRedlineContractTest.java` | com | 7 | 0 | 0 | HealthPlanController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/LegacyDimensionCallLogServiceTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipPlanPurchaseContractTest.java` | com | 7 | 0 | 0 | MembershipController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/orchestration/OrchestrationIntegrationTest.java` | com | 7 | 0 | 0 | OrchestrationController | — |
|
|
|
@@ -637,7 +642,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipChatMemberGateContractTest.java` | com | 6 | 0 | 0 | MembershipController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/MembershipPaySwitchTest.java` | com | 6 | 10 | 0 | MembershipController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/MembershipViewScP59ContractTest.java` | com | 6 | 0 | 0 | MembershipController | — |
|
|
|
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/OAuthCallbackContractTest.java` | com | 6 | 0 | 0 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/OAuthCallbackContractTest.java` | com | 6 | 0 | 0 | OAuthCallbackController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductBrowseScP52ScG05ContractTest.java` | com | 6 | 2 | 0 | ProductController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/ProductOrderServiceFulfillmentMultiModeTest.java` | com | 6 | 0 | 0 | ProductController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/ReportAnalyzeQuotaServiceTest.java` | com | 6 | 0 | 0 | — | — |
|
|
|
@@ -777,7 +782,9 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/SpecialPriceControllerTest.java` | com | 3 | 8 | 1 | SpecialPriceController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskProgressUpdateTest.java` | com | 3 | 0 | 0 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/UserServiceOpenidIsolationTest.java` | com | 3 | 3 | 0 | UserController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminChildrenFamilyFilterContractTest.java` | com | 2 | 3 | 1 | AdminController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminCommissionConfigPartialUpdateTest.java` | com | 2 | 0 | 1 | AdminCommissionConfigController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminEarningsFamilyFilterContractTest.java` | com | 2 | 3 | 1 | AdminController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ArticleBackfillTest.java` | com | 2 | 0 | 0 | ArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/ArticleTagsContractTest.java` | com | 2 | 0 | 1 | ArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AssessmentAppointmentCreateContractTest.java` | com | 2 | 0 | 0 | AssessmentAppointmentController | — |
|