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

assert vs require #830

Open
wants to merge 27 commits into
base: v2
Choose a base branch
from
Open

assert vs require #830

wants to merge 27 commits into from

Conversation

Hueter57
Copy link
Contributor

#821

ひとまずrouter/admin_test.goの中身のみ変更
基本assertrequireに変更していったがHTTPステータスとresBodyの比較する部分はエラー時に両方見れた方がいいと思ったのでassertのままにした
resuireに変更する中で不要なif文を消した

@Hueter57 Hueter57 requested a review from H1rono December 28, 2024 13:34
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

Attention: Patch coverage is 36.84211% with 36 lines in your changes missing coverage. Please review.

Project coverage is 25.29%. Comparing base (c3dbb3b) to head (a42e004).
Report is 24 commits behind head on v2.

Files with missing lines Patch % Lines
router/request.go 12.50% 26 Missing and 2 partials ⚠️
testutil/cmp.go 65.00% 6 Missing and 1 partial ⚠️
router/transaction.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v2     #830      +/-   ##
==========================================
- Coverage   25.30%   25.29%   -0.01%     
==========================================
  Files         147      148       +1     
  Lines       30769    30823      +54     
==========================================
+ Hits         7787     7798      +11     
- Misses      22095    22135      +40     
- Partials      887      890       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants