✨ [OMF-338] 단위 테스트 추가 - 순수 비즈니스 로직 (PR 1/3)#155
Conversation
- DefaultSurveyRefundPolicy: 환불 금액 계산 로직 8개 케이스 - QuestionConverter: DTO↔Entity 변환 로직 전 문항 타입 커버 (10개) - SurveyExportService: CSV 빌딩 로직 13개 케이스 (권한, BOM, 이스케이프 등) - DiscountCodeCommandService: 할인 코드 생성 및 중복 재시도 6개 케이스
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✨ Related Issue
OMF-338 단위 테스트 작성 - 순수 비즈니스 로직 (PR 1/3)
📌 Task Details
전체 서비스 레이어 단위 테스트 작성 작업의 첫 번째 PR입니다.
외부 의존성 없이 테스트 가능한 순수 비즈니스 로직을 Mockito 기반으로 커버합니다.
테스트 대상 (총 37개 테스트 케이스)
DefaultSurveyRefundPolicyTest(8개) — 환불 금액 계산 로직QuestionConverterTest(10개) — 문항 타입 DTO↔Entity 변환toQuestionUpsertDto: null 필드 기본값 처리, 빈 리스트 등SurveyExportServiceTest(13개) — CSV 빌딩 로직DiscountCodeCommandServiceTest(6개) — 할인 코드 생성전체 PR 계획 (3개로 재구성)
💬 Review Requirements (Optional)
없음