Skip to content

test: DiningViewController 로깅을 테스트 가능한 구조로 개선 및 테스트 코드 작성 #524

Description

@oeunji

어떤 기능인가요?

DiningViewController의 로깅 구조에서 테스트 불가했던 구조를 테스트 가능한 구조로 개선합니다. inputSubject와 같은 프로퍼티가 전부 private이라 @testable 에서 접근할 수 없습니다. 로깅은 틀려도 앱이 죽지 않아 QA로 잡기 어렵기 때문에 테스트 코드로 현재 동작을 고정합니다.

작업 상세 내용

  • inputSubject, diningTypeSegmentControl, diningListCollectionView, handleSwipe를 internal로 변경
  • 로깅 테스트 작성 (이미지 탭, 공유, 스크롤, 새로고침, 학생 식당 정보, 세그먼트 전환 및 스와이프)
  • DiningType(segmentIndex: ) 추출 및 중복 코드 제거

Metadata

Metadata

Assignees

Labels

TEST테스트 코드 작성

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions