-
Notifications
You must be signed in to change notification settings - Fork 674
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
MF-1198 - Add errors package tests #1207
Conversation
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Did you consider to include test cases when error is |
|
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1207 +/- ##
==========================================
- Coverage 77.06% 77.04% -0.03%
==========================================
Files 103 104 +1
Lines 6893 6934 +41
==========================================
+ Hits 5312 5342 +30
- Misses 1197 1206 +9
- Partials 384 386 +2
Continue to review full report at Codecov.
|
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
3917010
to
a5a07d3
Compare
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.
LGTM
* Add tests for errors package Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add recursive fn to gen wrapped errs and func to gen corresponding msg Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add TestWrap func Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Replace literal string msgs with res of messages() Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add nil tests for errors.Contains() Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com> * Add nil tests for Wrap() Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
Add unit tests to
errors
package frompkg/
.Resolves #1198