fix(context): verify URL is Non-nil in initQueryCache()#3969
fix(context): verify URL is Non-nil in initQueryCache()#3969appleboy merged 1 commit intogin-gonic:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3969 +/- ##
==========================================
- Coverage 99.21% 99.05% -0.16%
==========================================
Files 42 44 +2
Lines 3182 2751 -431
==========================================
- Hits 3157 2725 -432
+ Misses 17 15 -2
- Partials 8 11 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Hey @RedCrazyGhost - not sure how to get the codecov test to pass here? I tested all branches of the added code and existing code in this function? |
|
I checked the relevant information of codecov and found that someone had modified the configuration file of codecov two days ago, but this configuration file could not make the code review of codecov meet the normal expectations. For previous reports on codecov code review not meeting expectations, please refer to: #3956 Now we mainly use manual code review, ignoring the failure of codecov |
RedCrazyGhost
left a comment
There was a problem hiding this comment.
I have completed the code review, LGTM.
@appleboy please code review.
Verify URL is Non-nil in initQueryCache()
When using a test context (as returned by
gin.CreateTestContext(w)) it is possible that not only the Request object is nil, but also the URL object may be nil.Ran into this in the wild in unit tests. Stack trace: