|
|
@@ -9,13 +9,13 @@
|
|
|
| --- | --- |
|
|
|
| 控制器总数 | 365 |
|
|
|
| handler 方法总数 | 1974 |
|
|
|
-| handler 方法已覆盖 | 450 (22.8%) |
|
|
|
+| handler 方法已覆盖 | 456 (23.1%) |
|
|
|
| 单元-全覆盖(handler 方法) | 34 |
|
|
|
| 单元-部分覆盖(handler 方法) | 200 |
|
|
|
| 单元-未覆盖(handler 方法) | 130 |
|
|
|
| 单元-无handler 方法 | 1 |
|
|
|
-| 测试文件数 | 353 |
|
|
|
-| @Test 方法总数 | 2934 |
|
|
|
+| 测试文件数 | 367 |
|
|
|
+| @Test 方法总数 | 3030 |
|
|
|
| 含跳过/假设项(test 级 partial) | 4 |
|
|
|
|
|
|
## 二、未覆盖控制器(发现「缺口」· 非发明)
|
|
|
@@ -93,13 +93,13 @@
|
|
|
共 200 个:
|
|
|
|
|
|
- `AdminController`:覆盖 1/65,未覆盖方法:getUsers、createUser、getUser、updateUser、resetUserPassword、searchUsers、deleteUser、getChild、updateChild、adjustPoints
|
|
|
-- `HealthReportController`:覆盖 1/59,未覆盖方法:createReport、getLatestReport、listFamilyReports、listAllReports、getReportIndicatorsWithPrevious、listIndicators、getMemberIndicators、getGutFlora、rebuildIndicatorCurrent、getMemberIndicatorCurrent
|
|
|
+- `HealthReportController`:覆盖 4/59,未覆盖方法:getLatestReport、listFamilyReports、listAllReports、getReportIndicatorsWithPrevious、listIndicators、getGutFlora、rebuildIndicatorCurrent、getMemberIndicatorCurrent、getBodyDetail、getReportPayload
|
|
|
- `HealthKnowledgeBaseController`:覆盖 2/29,未覆盖方法:batchQuery、add、update、delete、importKnowledgeBase、queryBacteria、batchQueryBacteria、queryIndicator、queryFood、getSection
|
|
|
- `AdminArticleController`:覆盖 2/22,未覆盖方法:create、update、detail、delete、publishById、backfillTags、toggleFeatured、move、audit、submitReview
|
|
|
- `ProductOrderController`:覆盖 7/19,未覆盖方法:myOrderCounts、vendorConfirm、reviewUpdate、ship、applyRefund、handlePaymentSuccess、notify、activityAudit、activitySignIn、activityComplete
|
|
|
- `AuthController`:覆盖 14/18,未覆盖方法:setSwitchPassword、verifyToken、ssoTicket、ssoLogin
|
|
|
- `HealthPlanController`:覆盖 17/18,未覆盖方法:SuppressWarnings
|
|
|
-- `TaskController`:覆盖 7/18,未覆盖方法:getMinigameOptions、getTodayTasks、completeTask、startTask、getTodayParentTasks、completeParentTask、deleteTask、completeMinigameTask、batchComplete、batchDelete
|
|
|
+- `TaskController`:覆盖 8/18,未覆盖方法:getMinigameOptions、getTodayTasks、startTask、getTodayParentTasks、completeParentTask、deleteTask、completeMinigameTask、batchComplete、batchDelete、getMyPendingTasks
|
|
|
- `ArticleController`:覆盖 6/17,未覆盖方法:relatedProducts、related、relatedByProduct、getArticleAudio、reportReadingTime、readingStats、dailyTip、aiQuestions、submitAnswers、myPosts
|
|
|
- `FamilyUserController`:覆盖 3/17,未覆盖方法:getUserInfo、updateUserInfo、joinFamily、createFamily、switchMode、switchToFamilyMember、switchBackToParent、switchBackVerify、getFamilyMemberren、updateFamilyMember
|
|
|
- `GuideManagementController`:覆盖 3/17,未覆盖方法:resubmitApplication、getUserApplications、getApplicationRecords、generateInviteCode、getInviteCodes、validateInviteCode、getChildGuides、getAllChildGuides、getParentGuide、getGuidePackageTemplates
|
|
|
@@ -142,7 +142,7 @@
|
|
|
- `SupplyManageController`:覆盖 1/8,未覆盖方法:detail、create、update、delete、addRole、removeRole、adjustTier
|
|
|
- `AdminOrgController`:覆盖 1/7,未覆盖方法:create、update、disable、detail、myOrg、userSearch
|
|
|
- `AdminProductOrderController`:覆盖 1/7,未覆盖方法:detail、ship、updateExpress、close、approveRefund、rejectRefund
|
|
|
-- `AdminUnlockGateController`:覆盖 1/7,未覆盖方法:save、delete、sort、toggle、resetFamily、getFamilyProgress
|
|
|
+- `AdminUnlockGateController`:覆盖 2/7,未覆盖方法:save、delete、toggle、resetFamily、getFamilyProgress
|
|
|
- `CartController`:覆盖 1/7,未覆盖方法:add、update、remove、count、comboOffer、replaceCombo
|
|
|
- `DoaController`:覆盖 1/7,未覆盖方法:createStage、stageDetail、cancelStage、submitPlan、submitReview、weekList
|
|
|
- `EmotionCheckinController`:覆盖 3/7,未覆盖方法:create、stats、weeklyReport、recognizeEmotion
|
|
|
@@ -171,7 +171,7 @@
|
|
|
- `InsurancePolicyController`:覆盖 1/6,未覆盖方法:detail、create、update、delete、upload
|
|
|
- `PackageTemplateController`:覆盖 1/6,未覆盖方法:Operation、Operation、Operation、Operation、Operation
|
|
|
- `PromotionMaterialController`:覆盖 1/6,未覆盖方法:detail、byScenario、create、update、delete
|
|
|
-- `ReportTemplateController`:覆盖 1/6,未覆盖方法:get、save、delete、toggle、indicators
|
|
|
+- `ReportTemplateController`:覆盖 2/6,未覆盖方法:get、save、delete、toggle
|
|
|
- `ServiceContentController`:覆盖 1/6,未覆盖方法:Operation、Operation、Operation、Operation、Operation
|
|
|
- `ServiceTypeController`:覆盖 1/6,未覆盖方法:Operation、Operation、Operation、Operation、Operation
|
|
|
- `SupplierProductController`:覆盖 1/6,未覆盖方法:create、update、detail、delete、shelve
|
|
|
@@ -352,12 +352,14 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/controller/DimensionAdminControllerTest.java` | com | 13 | 0 | 7 | DimensionAdminController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyUserSwitchRoleTest.java` | com | 13 | 1 | 1 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/GuidePackageServiceTest.java` | com | 13 | 0 | 0 | GuideController | — |
|
|
|
+| `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/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/TaskTemplatePackageContractTest.java` | com | 13 | 4 | 11 | TaskTemplatePackageController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TeamStarMultiplierContractTest.java` | com | 13 | 0 | 0 | TeamStarController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ActivityTeamServiceUnitTest.java` | com | 12 | 0 | 0 | ActivityController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminArticleAuditContractTest.java` | com | 12 | 3 | 0 | AdminArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AfterSalesScS06ContractTest.java` | com | 12 | 0 | 0 | AfterSalesController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/CfCommissionServiceSettleTest.java` | com | 12 | 2 | 0 | CfCommissionController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ConditionEvaluatorServiceTest.java` | com | 12 | 7 | 0 | — | — |
|
|
|
@@ -391,6 +393,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ReportViewPermissionContractTest.java` | com | 11 | 13 | 0 | — | — |
|
|
|
| `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/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/controller/admin/AdminAuthControllerLoginStatusTest.java` | com | 10 | 1 | 3 | AdminAuthController | — |
|
|
|
@@ -406,6 +409,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyAccessGuardTest.java` | com | 10 | 0 | 0 | GuideController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/GuideHierarchyServiceTest.java` | com | 10 | 0 | 0 | GuideController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanReviewGuardTest.java` | com | 10 | 0 | 0 | HealthPlanController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthReportCreateContractTest.java` | com | 10 | 10 | 1 | HealthReportController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/IndicatorFavoriteControllerTest.java` | com | 10 | 8 | 3 | IndicatorFavoriteController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorContractEdgeTest.java` | com | 10 | 2 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/config/SleepConfigTagsMechanismContractTest.java` | com | 10 | 3 | 3 | — | — |
|
|
|
@@ -458,6 +462,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/RealNameBackfillServiceTest.java` | com | 8 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ReportDietRecommendContractTest.java` | com | 8 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/ScG05AnonymousBrowseContractTest.java` | com | 8 | 2 | 0 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskReviewScP11ContractTest.java` | com | 8 | 0 | 0 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TeamProfitPipelineContractTest.java` | com | 8 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/guide/TrainingPlanControllerGetPlanDetailTest.java` | com | 8 | 0 | 0 | TrainingPlanController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/AttributionStage1FoundationTest.java` | com | 7 | 11 | 0 | AttributionController | — |
|
|
|
@@ -480,15 +485,19 @@
|
|
|
| `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/TaskControllerGetTaskHistoryTest.java` | com | 7 | 4 | 1 | TaskController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/TaskTaskCreateContractTest.java` | com | 7 | 0 | 1 | TaskController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/TeamInvitationCreateContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/TeamProfitHookContractTest.java` | com | 7 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/ActivityRegistrationQuotaConcurrencyTest.java` | com | 6 | 0 | 0 | ActivityController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/ActivityServicePublishTest.java` | com | 6 | 0 | 0 | ActivityController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminArticleCreateContractTest.java` | com | 6 | 9 | 0 | AdminArticleController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/controller/admin/AdminArticleListContractTest.java` | com | 6 | 11 | 1 | AdminArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ArticleRelatedServiceTest.java` | com | 6 | 0 | 0 | ArticleController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/AssessmentComparisonContractTest.java` | com | 6 | 0 | 0 | AssessmentComparisonController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/BadgeServiceUnlockNoticeTest.java` | com | 6 | 1 | 0 | BadgeController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/CfTransferServiceTest.java` | com | 6 | 0 | 0 | CfTransferController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/DailyCheckinStreakFlowTest.java` | com | 6 | 14 | 6 | DailyCheckinController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/DanAssessmentRecordCreateContractTest.java` | com | 6 | 2 | 0 | DanAssessmentController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/DatabaseInitializerSeedTest.java` | com | 6 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/impl/DimensionScoreServiceImplTest.java` | com | 6 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyRelationshipServiceLabelTest.java` | com | 6 | 0 | 0 | FamilyController | — |
|
|
|
@@ -539,10 +548,12 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/FamilyNamingSupportTest.java` | com | 5 | 0 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyPlatformPointsServiceCouponTest.java` | com | 5 | 0 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GlobalSearchScP82ContractTest.java` | com | 5 | 12 | 0 | — | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/config/GrowthPublicEndpointMappingTest.java` | com | 5 | 0 | 0 | GrowthController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuheVersionSplitContractTest.java` | com | 5 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/HealthPlanLazyBackfillTest.java` | com | 5 | 0 | 0 | HealthPlanController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/HealthReportControllerCreateReportTest.java` | com | 5 | 2 | 0 | HealthReportController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/HealthReportServiceBackfillResilienceTest.java` | com | 5 | 7 | 0 | HealthReportController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorGrowthPolicyTest.java` | com | 5 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/config/JwtInterceptorLoginRequiredTest.java` | com | 5 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/LangGraphErrorPropagateContractTest.java` | com | 5 | 1 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/MiniGameServiceTest.java` | com | 5 | 0 | 0 | MiniGameController | — |
|
|
|
@@ -597,6 +608,7 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/CfLegacyLedgerMigrationServiceTest.java` | com | 3 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ComboOrderStockTest.java` | com | 3 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/DanAssessmentControllerGetActiveMaterialTest.java` | com | 3 | 0 | 0 | DanAssessmentController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/unit/DanAssessmentResultRecordContractTest.java` | com | 3 | 0 | 0 | DanAssessmentController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/EnergyControllerGrantEnergyTest.java` | com | 3 | 4 | 1 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/FamilyAdminOverviewServiceTest.java` | com | 3 | 4 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/GuideFamilyServiceBindTest.java` | com | 3 | 0 | 0 | GuideController | — |
|
|
|
@@ -628,10 +640,12 @@
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/EnergyServiceGrantEnergyTest.java` | com | 2 | 1 | 0 | EnergyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/family/FamilyMembersControllerRenameFamilyTest.java` | com | 2 | 1 | 0 | FamilyController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/integration/service/FiveDimensionSelfCheckServiceTest.java` | com | 2 | 0 | 0 | FiveDimensionSelfCheckController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/controller/growth/GrowthAuthContractTest.java` | com | 2 | 2 | 0 | GrowthController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/IndicatorControllerTest.java` | com | 2 | 1 | 1 | IndicatorController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/unit/ProductListNutritionTagFilterTest.java` | com | 2 | 0 | 0 | ProductController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/UserAddressServiceBackfillTest.java` | com | 2 | 0 | 0 | UserController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/UserServiceFamilyNameLinkTest.java` | com | 2 | 0 | 0 | UserController | — |
|
|
|
+| `cfc-backend/src/test/java/com/etotem/cfc/config/WebConfigGrowthExcludeRemovedTest.java` | com | 2 | 0 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/service/AiGatewayTimeoutTest.java` | com | 1 | 2 | 0 | — | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/AttributionControllerTest.java` | com | 1 | 0 | 0 | AttributionController | — |
|
|
|
| `cfc-backend/src/test/java/com/etotem/cfc/controller/butler/ButlerControllerEnvelopeTest.java` | com | 1 | 7 | 1 | ButlerController | — |
|