Skip to content

assert vs require #830

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

Merged
merged 4 commits into from
May 30, 2025
Merged

assert vs require #830

merged 4 commits into from
May 30, 2025

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

All modified and coverable lines are covered by tests ✅

Project coverage is 7.11%. Comparing base (edee2da) to head (952849f).
Report is 5 commits behind head on v2.

Additional details and impacted files
@@          Coverage Diff          @@
##              v2    #830   +/-   ##
=====================================
  Coverage   7.10%   7.11%           
=====================================
  Files        154     154           
  Lines      31130   31130           
=====================================
+ Hits        2213    2215    +2     
+ Misses     28783   28781    -2     
  Partials     134     134           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hueter57 Hueter57 self-assigned this Apr 15, 2025
@H1rono
Copy link
Member

H1rono commented Apr 15, 2025

@Hueter57 他のところも全部requireにしちゃってください

@Hueter57 Hueter57 force-pushed the change_assert_to_require branch from 37b7066 to ce9151e Compare May 29, 2025 13:19
@Hueter57
Copy link
Contributor Author

コンフリクトが起きて前に教えてもらっていたコンフリクト解消の操作 (該当するtraQリンク in #team/SysAd/Jomon/server) をし忘れていたのでこの機会に行いました。
force push したためコミットの履歴が消えてます。

@H1rono
Copy link
Member

H1rono commented May 29, 2025

@Hueter57 model/以下のファイルも同様にお願いします 🙏

@H1rono H1rono merged commit 039df67 into v2 May 30, 2025
8 checks passed
@H1rono H1rono deleted the change_assert_to_require branch May 30, 2025 11:21
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