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

logging for conflicting url paths #718

Merged
merged 2 commits into from
Jun 3, 2020
Merged

Conversation

abhishekparwal
Copy link
Contributor

No description provided.


// Error returns the error string
func (e *urlFailure) Error() string {
return fmt.Sprintf("panic: path: %q method: %q conflicts with an existing path", e.url, e.method)
Copy link
Contributor

Choose a reason for hiding this comment

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

don't think panic should be part of the message itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

acked. we can improve message in future diff.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 69.293% when pulling d471a46 on logging_fix_router into 601426f on master.

@abhishekparwal abhishekparwal merged commit 4ccf71b into master Jun 3, 2020
@@ -128,7 +128,7 @@ cat ./coverage/istanbul.json | jq '[
] | from_entries' > ./coverage/istanbul-runtime.json

echo "Checking code coverage for runtime folder"
./node_modules/.bin/istanbul check-coverage --statements 99.92 \
./node_modules/.bin/istanbul check-coverage --statements 99.85 \
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sure there are tests for duplicate URL case, I would have not expected the coverage to drop. If this is not the case, we should add coverage instead of changing this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and see the previous run of this, where test fails and you can see it didn't decrease for this package.

smb158 pushed a commit that referenced this pull request Jun 12, 2020
* logging for conflicting url paths

* coverage didnt increase for affected path, however touching this folder gives this lower coverage error
@ChuntaoLu ChuntaoLu deleted the logging_fix_router branch July 8, 2020 17:23
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.

4 participants