Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

테스트 코드 작성 #17

Merged
merged 16 commits into from
Feb 27, 2024
Merged

테스트 코드 작성 #17

merged 16 commits into from
Feb 27, 2024

Conversation

Peter1119
Copy link
Collaborator

No description provided.

@Peter1119 Peter1119 self-assigned this Jan 23, 2024
Comment on lines 84 to 85
let error = NetworkError.timeOut
repository.mockError = error
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

많은곳에서 이와 같은 코드가 사용되는데 setUpWithError와 같은 함수로 하나 만들어도 좋을것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9a202bb

적용했습니다 ~!

switch result {
case .success(let data):
XCTAssertFalse(data.program.isEmpty, "받아온 데이터가 비어있음")
XCTAssertEqual(data.program.first?.name, expectedName)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반환된 data.program의 모든 요소를 검증하거나, 반환된 데이터가 정확히 예상한 데이터와 일치하는지 전체적으로 확인이 필요해보입니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

적용한 커밋입니다 ! d1f81cc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

으아.. 내일 한번더 이부분에 대해서 얘기해보시죠!! 머지 합시다.!

Base automatically changed from refactor/handle_error to feature/retry_request February 12, 2024 10:35
Copy link

sonarcloud bot commented Feb 21, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
7.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Base automatically changed from feature/retry_request to main February 27, 2024 11:42
@Peter1119 Peter1119 merged commit 758d868 into main Feb 27, 2024
1 of 2 checks passed
@Peter1119 Peter1119 deleted the test/test_useCase branch February 27, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants