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

fix(router): tree bug where loop index is not decremented. #3460

Merged
merged 1 commit into from
Jan 7, 2023

Conversation

kristiansvalland
Copy link
Contributor

@kristiansvalland kristiansvalland commented Jan 3, 2023

Also add test to validate fix.

fixes #3459

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Merging #3460 (fd8bbdc) into master (79a61b9) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3460   +/-   ##
=======================================
  Coverage   98.63%   98.63%           
=======================================
  Files          42       42           
  Lines        3140     3140           
=======================================
  Hits         3097     3097           
  Misses         29       29           
  Partials       14       14           
Flag Coverage Δ
98.63% <100.00%> (ø)
go-1.16 ∅ <ø> (?)
go-1.17 98.53% <100.00%> (ø)
go-1.18 98.53% <100.00%> (ø)
go-1.19 98.63% <100.00%> (ø)
macos-latest 98.63% <100.00%> (ø)
ubuntu-latest 98.63% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tree.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@thinkerou thinkerou added this to the v1.9 milestone Jan 4, 2023
tree.go Outdated Show resolved Hide resolved
tree.go Outdated Show resolved Hide resolved
tree.go Outdated Show resolved Hide resolved
Also add test to validate fix.

fixes gin-gonic#3459

Signed-off-by: Kristian Svalland <kristian.svalland@gmail.com>
Copy link
Member

@thinkerou thinkerou left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@appleboy appleboy changed the title tree: Fix bug where loop index is not decremented. fix(router): tree bug where loop index is not decremented. Jan 7, 2023
@appleboy appleboy merged commit 8eb5f83 into gin-gonic:master Jan 7, 2023
@kristiansvalland kristiansvalland deleted the fix/3459 branch October 17, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic with HandleMethodNotAllowed and route corner case
4 participants