-
Notifications
You must be signed in to change notification settings - Fork 77
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 internal/errors/compressor.go #870
Conversation
[CHATOPS:HELP] ChatOps commands.
|
internal/errors/compressor.go
Outdated
ErrDecompressFailed = New("decompress failed") | ||
|
||
// ErrCompressorRegistererIsNotRunning represents a function to generate an error of compressor registerers not running. |
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.
[golangci] reported by reviewdog 🐶
line is 121 characters (lll)
} | ||
|
||
// ErrCompressorRegistererChannelIsFull represents a function to generate an error that compressor registerer channel is full. |
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.
[golangci] reported by reviewdog 🐶
line is 127 characters (lll)
@@ -0,0 +1,221 @@ | |||
package errors |
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.
[golangci] reported by reviewdog 🐶
package should be errors_test
instead of errors
(testpackage)
Codecov Report
@@ Coverage Diff @@
## master #870 +/- ##
==========================================
+ Coverage 18.73% 18.84% +0.11%
==========================================
Files 422 423 +1
Lines 19546 19600 +54
==========================================
+ Hits 3662 3694 +32
- Misses 15674 15688 +14
- Partials 210 218 +8
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
internal/errors/compressor.go
Outdated
ErrDecompressFailed = New("decompress failed") | ||
|
||
// ErrCompressorRegistererIsNotRunning represents a function to generate an error of compressor registerers not running. |
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.
[golangci] reported by reviewdog 🐶
line is 121 characters (lll)
ErrDecompressFailed = New("decompress failed") | ||
|
||
// ErrCompressorRegistererIsNotRunning represents a function to generate an error of compressor registerers is not running. |
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.
[golangci] reported by reviewdog 🐶
line is 124 characters (lll)
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
internal/errors/compressor.go
/rebase |
[REBASE] Rebase triggered by vankichi for branch: test/internal/errors-compressor |
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Co-authored-by: Kiichiro YUKAWA <[email protected]>
Co-authored-by: Kiichiro YUKAWA <[email protected]>
Co-authored-by: Kiichiro YUKAWA <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
c057c09
67d38f2
to
c057c09
Compare
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
Signed-off-by: vdaas-ci <[email protected]>
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.
[APPROVED] This PR is approved by vankichi.
Description:
I added test case for
internal/errors/compressor.go
.And I refactored
internal/errors/compressor.go
.WHY
Whenever Errorf has no arguments other than a message, nil is returned.
https://github.com/vdaas/vald/blob/master/internal/errors/compressor.go#L40
https://github.com/vdaas/vald/blob/master/internal/errors/compressor.go#L44
WHAT
Change from
Errorf
toNew
grammar check passed
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: