-
Notifications
You must be signed in to change notification settings - Fork 78
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 case for internal/errors/mysql.go #918
Conversation
6a50c45
to
6546fdb
Compare
Codecov Report
@@ Coverage Diff @@
## master #918 +/- ##
==========================================
+ Coverage 16.08% 16.15% +0.06%
==========================================
Files 476 476
Lines 23839 23839
==========================================
+ Hits 3835 3851 +16
+ Misses 19763 19748 -15
+ Partials 241 240 -1
Continue to review full report at Codecov.
|
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
/rebase |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-errors-mysql-test |
65ef545
to
301019b
Compare
/rebase |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-errors-mysql-test |
301019b
to
438a29c
Compare
/format |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-errors-mysql-test |
[FORMAT] Updating license headers and formatting go codes triggered by kevindiu. |
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
/format |
[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-errors-mysql-test |
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
438a29c
to
7e07d2a
Compare
[FORMAT] Updating license headers and formatting go codes triggered by kevindiu. |
* feat: add test case and comment Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * fix: add godoc comment Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * Apply suggestions from code review * fix: goleak bug Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * fix: fails test Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * Update internal/errors/mysql_test.go * Apply suggestions from code review Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com> Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com> Signed-off-by: kpango <kpango@vdaas.org>
Signed-off-by: hlts2 hiroto.funakoshi.hiroto@gmail.com
Description:
I added the test cases for internal/errors/mysql.go and comments.
And I fixed the test error for parallel testing and existing code to support parallel testing.
Details of fails test
goroutine detecting error occurs when we use
t.Parallel
andgoleak.Verity(tt)
in the sub-test.the goroutine generated by t.Parallel will also be detected by goleak.
So I Changed to use
goleak.IgnoreCurrent
method and ignore goroutines other than the function under testgrammar check passed
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: