|
@@ -9,13 +9,13 @@
|
|
|
| --- | --- |
|
|
| --- | --- |
|
|
|
| 控制器总数 | 371 |
|
|
| 控制器总数 | 371 |
|
|
|
| handler 方法总数 | 2019 |
|
|
| handler 方法总数 | 2019 |
|
|
|
-| handler 方法已覆盖 | 555 (27.5%) |
|
|
|
|
|
|
|
+| handler 方法已覆盖 | 556 (27.5%) |
|
|
|
| 单元-全覆盖(handler 方法) | 47 |
|
|
| 单元-全覆盖(handler 方法) | 47 |
|
|
|
| 单元-部分覆盖(handler 方法) | 206 |
|
|
| 单元-部分覆盖(handler 方法) | 206 |
|
|
|
| 单元-未覆盖(handler 方法) | 117 |
|
|
| 单元-未覆盖(handler 方法) | 117 |
|
|
|
| 单元-无handler 方法 | 1 |
|
|
| 单元-无handler 方法 | 1 |
|
|
|
-| 测试文件数 | 508 |
|
|
|
|
|
-| @Test 方法总数 | 4326 |
|
|
|
|
|
|
|
+| 测试文件数 | 513 |
|
|
|
|
|
+| @Test 方法总数 | 4376 |
|
|
|
| 含跳过/假设项(test 级 partial) | 4 |
|
|
| 含跳过/假设项(test 级 partial) | 4 |
|
|
|
|
|
|
|
|
## 二、未覆盖控制器(发现「缺口」· 非发明)
|
|
## 二、未覆盖控制器(发现「缺口」· 非发明)
|
|
@@ -125,7 +125,7 @@
|
|
|
- `ActivityTeamController`:覆盖 1/10,未覆盖方法:create、detail、memberList、addMember、removeMember、assign、assignList、revokeAssignment、teamActivities
|
|
- `ActivityTeamController`:覆盖 1/10,未覆盖方法:create、detail、memberList、addMember、removeMember、assign、assignList、revokeAssignment、teamActivities
|
|
|
- `AdminAuthController`:覆盖 5/10,未覆盖方法:getAdminInfo、changePassword、updateInfo、resetPassword、accountRoles
|
|
- `AdminAuthController`:覆盖 5/10,未覆盖方法:getAdminInfo、changePassword、updateInfo、resetPassword、accountRoles
|
|
|
- `AdminVirtualTeamController`:覆盖 2/10,未覆盖方法:create、update、toggle、addMember、removeMember、updateMember、userTeams、tree
|
|
- `AdminVirtualTeamController`:覆盖 2/10,未覆盖方法:create、update、toggle、addMember、removeMember、updateMember、userTeams、tree
|
|
|
-- `CouponController`:覆盖 2/10,未覆盖方法:claim、apply、exchange、exchangeable、productCoupons、checkoutList、joinRules、availableTemplates
|
|
|
|
|
|
|
+- `CouponController`:覆盖 3/10,未覆盖方法:apply、exchange、exchangeable、productCoupons、checkoutList、joinRules、availableTemplates
|
|
|
- `FamilyMembersController`:覆盖 3/10,未覆盖方法:kickMember、leaveFamily、recycleMember、updateMember、renameFamily、checkEditable、logs
|
|
- `FamilyMembersController`:覆盖 3/10,未覆盖方法:kickMember、leaveFamily、recycleMember、updateMember、renameFamily、checkEditable、logs
|
|
|
- `GuideController`:覆盖 1/10,未覆盖方法:getPackages、getPackagesByLevel、applyNew、applyUpgrade、getMyApplications、getMyPackages、getGuidePackages、generateParentInvite、acceptParentInvite
|
|
- `GuideController`:覆盖 1/10,未覆盖方法:getPackages、getPackagesByLevel、applyNew、applyUpgrade、getMyApplications、getMyPackages、getGuidePackages、generateParentInvite、acceptParentInvite
|
|
|
- `GuideFamilyTaskController`:覆盖 8/10,未覆盖方法:unbindFamily、getDashboardStats
|
|
- `GuideFamilyTaskController`:覆盖 8/10,未覆盖方法:unbindFamily、getDashboardStats
|
|
@@ -341,6 +341,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/AIChatControllerTest.java` | com | 17 | 17 | 3 | AIChatController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/AIChatControllerTest.java` | com | 17 | 17 | 3 | AIChatController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietRecommendationServiceTest.java` | com | 17 | 17 | 0 | DietRecommendationController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietRecommendationServiceTest.java` | com | 17 | 17 | 0 | DietRecommendationController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DimensionConfigAdminContractTest.java` | com | 17 | 6 | 3 | DimensionConfigController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DimensionConfigAdminContractTest.java` | com | 17 | 6 | 3 | DimensionConfigController | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyRuleEngineApplyContractTest.java` | com | 17 | 0 | 0 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideBindingAccessContractTest.java` | com | 17 | 4 | 0 | GuideController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideBindingAccessContractTest.java` | com | 17 | 4 | 0 | GuideController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/reward/RewardEstimateControllerTest.java` | com | 17 | 0 | 1 | RewardEstimateController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/reward/RewardEstimateControllerTest.java` | com | 17 | 0 | 1 | RewardEstimateController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/task/TaskControllerReviewTest.java` | com | 17 | 1 | 4 | TaskController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/task/TaskControllerReviewTest.java` | com | 17 | 1 | 4 | TaskController | — |
|
|
@@ -368,6 +369,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/ArticleWorkflowTest.java` | com | 14 | 0 | 0 | ArticleController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/ArticleWorkflowTest.java` | com | 14 | 0 | 0 | ArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/CfCommissionServiceSettleTest.java` | com | 14 | 2 | 0 | CfCommissionController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/CfCommissionServiceSettleTest.java` | com | 14 | 2 | 0 | CfCommissionController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CoachButlerNotificationContractTest.java` | com | 14 | 7 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CoachButlerNotificationContractTest.java` | com | 14 | 7 | 0 | — | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyChildContextSwitchContractTest.java` | com | 14 | 1 | 1 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyJoinValidationRulesContractTest.java` | com | 14 | 0 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyJoinValidationRulesContractTest.java` | com | 14 | 0 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthPlanProductSelectionContractTest.java` | com | 14 | 25 | 3 | HealthPlanController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthPlanProductSelectionContractTest.java` | com | 14 | 25 | 3 | HealthPlanController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/NutritionDeficiencyServiceTest.java` | com | 14 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/NutritionDeficiencyServiceTest.java` | com | 14 | 0 | 0 | — | — |
|
|
@@ -405,7 +407,6 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DataExportGdprContractTest.java` | com | 12 | 1 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DataExportGdprContractTest.java` | com | 12 | 1 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietMealPlanAdjustContractTest.java` | com | 12 | 22 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietMealPlanAdjustContractTest.java` | com | 12 | 22 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietRecommendationBoundaryTest.java` | com | 12 | 16 | 0 | DietRecommendationController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietRecommendationBoundaryTest.java` | com | 12 | 16 | 0 | DietRecommendationController | — |
|
|
|
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyChildContextSwitchContractTest.java` | com | 12 | 1 | 1 | FamilyController | — |
|
|
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyJoinRequestServiceJoinValidationGateTest.java` | com | 12 | 0 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyJoinRequestServiceJoinValidationGateTest.java` | com | 12 | 0 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FiveDimensionScoreServiceTest.java` | com | 12 | 10 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FiveDimensionScoreServiceTest.java` | com | 12 | 10 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/FoodServiceTest.java` | com | 12 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/FoodServiceTest.java` | com | 12 | 0 | 0 | — | — |
|
|
@@ -465,7 +466,9 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ComboServiceTest.java` | com | 10 | 3 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ComboServiceTest.java` | com | 10 | 3 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ConditionalPathogenLowSideRuleTest.java` | com | 10 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ConditionalPathogenLowSideRuleTest.java` | com | 10 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietFoodHealthAdjustContractTest.java` | com | 10 | 2 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/DietFoodHealthAdjustContractTest.java` | com | 10 | 2 | 0 | — | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyDailyLimitGuardContractTest.java` | com | 10 | 0 | 0 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyJoinRequestServiceJoinRequiredInfoContractTest.java` | com | 10 | 0 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyJoinRequestServiceJoinRequiredInfoContractTest.java` | com | 10 | 0 | 0 | FamilyController | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/GdprDataExportContractTest.java` | com | 10 | 3 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GlobalSearchQueryContractTest.java` | com | 10 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GlobalSearchQueryContractTest.java` | com | 10 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/GrowthRecordSyncFlowTest.java` | com | 10 | 11 | 4 | GrowthController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/GrowthRecordSyncFlowTest.java` | com | 10 | 11 | 4 | GrowthController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheLowSideRuleLoadContractTest.java` | com | 10 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheLowSideRuleLoadContractTest.java` | com | 10 | 0 | 0 | — | — |
|
|
@@ -489,6 +492,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminFamilyStatsContractTest.java` | com | 9 | 0 | 1 | AdminController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminFamilyStatsContractTest.java` | com | 9 | 0 | 1 | AdminController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/common/AdminRolesTest.java` | com | 9 | 0 | 0 | AdminController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/common/AdminRolesTest.java` | com | 9 | 0 | 0 | AdminController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminUserGovernContractTest.java` | com | 9 | 3 | 0 | AdminController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AdminUserGovernContractTest.java` | com | 9 | 3 | 0 | AdminController | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/controller/AuthSessionMutexContractTest.java` | com | 9 | 0 | 0 | AuthController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/BadgeControllerGetMemberBadgesTest.java` | com | 9 | 1 | 0 | BadgeController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/BadgeControllerGetMemberBadgesTest.java` | com | 9 | 1 | 0 | BadgeController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ai/ButlerControllerGateTest.java` | com | 9 | 4 | 6 | ButlerController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ai/ButlerControllerGateTest.java` | com | 9 | 4 | 6 | ButlerController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/DimensionRegistryTreeTest.java` | com | 9 | 6 | 0 | DimensionRegistryController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/DimensionRegistryTreeTest.java` | com | 9 | 6 | 0 | DimensionRegistryController | — |
|
|
@@ -526,7 +530,6 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CfRewardV2MigrateConfigContractTest.java` | com | 8 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CfRewardV2MigrateConfigContractTest.java` | com | 8 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ComboOfferCalculatorTest.java` | com | 8 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ComboOfferCalculatorTest.java` | com | 8 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CouponClaimScP75ContractTest.java` | com | 8 | 0 | 0 | CouponController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/CouponClaimScP75ContractTest.java` | com | 8 | 0 | 0 | CouponController | — |
|
|
|
-| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyDailyLimitGuardContractTest.java` | com | 8 | 0 | 0 | EnergyController | — |
|
|
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyIsolationContractTest.java` | com | 8 | 5 | 2 | EnergyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyIsolationContractTest.java` | com | 8 | 5 | 2 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyLedgerViewContractTest.java` | com | 8 | 2 | 1 | EnergyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/EnergyLedgerViewContractTest.java` | com | 8 | 2 | 1 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/FamilyControllerTest.java` | com | 8 | 1 | 3 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/FamilyControllerTest.java` | com | 8 | 1 | 3 | FamilyController | — |
|
|
@@ -580,6 +583,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/RolesUtilTest.java` | com | 7 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/RolesUtilTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG01LandingContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG01LandingContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG10RegisterGuideContractTest.java` | com | 7 | 0 | 2 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG10RegisterGuideContractTest.java` | com | 7 | 0 | 2 | — | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/ShopCouponClaimApiContractTest.java` | com | 7 | 2 | 1 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/SupplyTeamControllerInviteTest.java` | com | 7 | 7 | 0 | SupplyTeamController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/SupplyTeamControllerInviteTest.java` | com | 7 | 7 | 0 | SupplyTeamController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/task/TaskCheckinWebhookReminderTaskTest.java` | com | 7 | 0 | 0 | TaskController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/task/TaskCheckinWebhookReminderTaskTest.java` | com | 7 | 0 | 0 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/task/TaskControllerCreateTaskTest.java` | com | 7 | 0 | 1 | TaskController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/task/TaskControllerCreateTaskTest.java` | com | 7 | 0 | 1 | TaskController | — |
|
|
@@ -744,6 +748,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchReportCreateTest.java` | com | 3 | 0 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchReportCreateTest.java` | com | 3 | 0 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchServiceImplTest.java` | com | 3 | 3 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchServiceImplTest.java` | com | 3 | 3 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchTaskWriteTest.java` | com | 3 | 0 | 0 | FamilyController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyWorkbenchTaskWriteTest.java` | com | 3 | 0 | 0 | FamilyController | — |
|
|
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/GlobalSearchQueryEmptyResultContractTest.java` | com | 3 | 1 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` | com | 3 | 0 | 0 | GuideController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` | com | 3 | 0 | 0 | GuideController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/HealthReportServiceIndicatorsTest.java` | com | 3 | 26 | 0 | HealthReportController | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/HealthReportServiceIndicatorsTest.java` | com | 3 | 26 | 0 | HealthReportController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorLoginRequiredPathTest.java` | com | 3 | 0 | 0 | — | — |
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorLoginRequiredPathTest.java` | com | 3 | 0 | 0 | — | — |
|