Commit Graph

10 Commits

Author SHA1 Message Date
Your Name
046151140f test: 提升UserExperienceController测试覆盖率
- 新增4个测试用例,覆盖分页边界和未测试端点
  - 测试invited-friends分页超出范围返回空列表
  - 测试rewards分页超出范围返回空列表
  - 测试getShareMeta端点(默认模板)
  - 测试getShareMeta端点(自定义模板)

覆盖率提升:
- UserExperienceController: 50% → 更高
- Controller包: 63% → 67% (+4%)
- 总体分支: 57.8% (374/646)
- 测试用例: 8 → 12 (+4)
2026-03-03 10:57:14 +08:00
Your Name
777b60e974 test: 继续提升PosterRenderService测试覆盖率
- 新增5个测试用例,覆盖background处理的所有分支
  - 测试background图片加载成功场景
  - 测试background图片加载失败降级到背景色
  - 测试background为空白字符串时使用背景色
  - 测试HTML渲染中的background-image样式
  - 测试URL编码异常处理

覆盖率提升:
- PosterRenderService: 68% → 74% (+6%)
- Service包: 72% → 74% (+2%)
- 总体分支: 57% (372/646)
- 测试用例: 8 → 13 (+5)
2026-03-03 10:41:58 +08:00
Your Name
f8ed2defb7 test: 提升PosterRenderService测试覆盖率
- 新增6个测试用例,覆盖更多分支场景
  - 测试template为null时使用默认模板
  - 测试button元素的background和borderRadius
  - 测试null content处理
  - 测试rect元素渲染(有/无background)

覆盖率提升:
- PosterRenderService: 59% → 68% (+9%)
- Service包: 70% → 72% (+2%)
- 总体分支: 56% (367/646)
2026-03-03 10:30:19 +08:00
Your Name
a21f39a8ec test: 提升测试覆盖率 - 添加ApiResponseTest和RewardTest,修复ShareTrackingControllerTest
- 新增ApiResponseTest: 19个测试用例,覆盖ApiResponse及其内部类
  - 测试成功响应、错误响应、分页响应
  - 测试PaginationMeta的分页计算逻辑
  - 测试Meta和Error内部类
  - 测试Builder模式
- 新增RewardTest: 完整的领域对象测试
  - 测试POINTS和COUPON两种奖励类型
  - 测试equals/hashCode实现
  - 测试边界条件
- 修复ShareTrackingControllerTest编译错误
  - 移除重复的测试方法
  - 添加缺失的AssertJ静态导入

当前覆盖率: 指令83%, 分支56%, 行90.24%
目标: 分支覆盖率达到85%
2026-03-03 10:23:32 +08:00
Your Name
3e2d1ece71 test: 提升测试覆盖率 - 添加拦截器和UrlValidator测试
- 新增 ApiResponseWrapperInterceptorTest (完整测试)
- 新增 ApiKeyAuthInterceptorTest (完整测试)
- 新增 UrlValidatorTest (完整测试)
- 覆盖率提升:
  - 指令覆盖率: 81.89% → 83.59%
  - 分支覆盖率: 51.55% → 57.12%
  - 行覆盖率: 88.48% → 90.51%
- 新增测试用例覆盖:
  - API版本头设置逻辑
  - API Key认证流程(null/空白/吊销/哈希验证)
  - URL验证(协议/localhost/私有IP/特殊地址)
  - 边界条件和异常处理
2026-03-02 15:22:12 +08:00
Your Name
91a0b77f7a test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl
- 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE
- 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查
- 所有1266个测试用例通过
- 覆盖率: 指令81.89%, 行88.48%, 分支51.55%

docs: 添加项目状态报告
- 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
- 包含质量指标、已完成功能、待办事项和技术债务
2026-03-02 13:31:54 +08:00
Your Name
32d6449ea4 feat(jpa): persist Activity in create/update/get with defaults; fix H2 defaults; replace existence checks with repository 2025-09-30 21:20:20 +08:00
Your Name
2f5f819c0d feat(jpa): add JPA entities and repositories aligned to Flyway; chore(deps): remove unused AMQP deps 2025-09-30 21:01:26 +08:00
Your Name
e8fc04886e feat(perf): remove Thread.sleep via DelayProvider; chore(cache): add Redis cache TTL + JDK serialization; chore(test): migrate javax->jakarta for embedded redis; chore(config): add dev/test/prod profiles; chore(security): strengthen API key hashing with PBKDF2 2025-09-30 20:34:39 +08:00
Your Name
8a7afc8a00 chore: initial commit with CI pipeline, review and tasks docs 2025-09-30 16:39:51 +08:00