-
Notifications
You must be signed in to change notification settings - Fork 586
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
Add test for parsing connection paths #4111
Add test for parsing connection paths #4111
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4111 +/- ##
==========================================
+ Coverage 79.56% 79.66% +0.09%
==========================================
Files 188 188
Lines 13201 13201
==========================================
+ Hits 10504 10517 +13
+ Misses 2266 2253 -13
Partials 431 431 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small req otherwise lgtm! thanks!
modules/core/24-host/parse.go
Outdated
"strconv" | ||
"strings" | ||
|
||
errorsmod "cosmossdk.io/errors" | ||
) | ||
|
||
var pathRegex = regexp.MustCompile("[^/]+") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a small godoc here explaining what the regex is doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved in 5f8d39a
@Reecepbcups We discussed internally this PR and we'd rather keep using |
@crodriguezvega makes sense, completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @Reecepbcups! Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @Reecepbcups!
Description
Add test for parsing of connection path.
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.