-
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/db/storage/blob/s3/reader
.
#718
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #718 +/- ##
==========================================
+ Coverage 15.46% 15.76% +0.29%
==========================================
Files 420 421 +1
Lines 19531 19536 +5
==========================================
+ Hits 3021 3079 +58
+ Misses 16287 16229 -58
- Partials 223 228 +5
Continue to review full report at Codecov.
|
/rebase |
[REBASE] Rebase triggered by hlts2 for branch: test/internal/add-test-for-s3-reader |
ea64ee7
to
9da7fac
Compare
internal/db/storage/blob/s3/reader
.internal/db/storage/blob/s3/reader
.
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
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.
please fix CI
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 |
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
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 vankichi for branch: test/internal/add-test-for-s3-reader |
cc5fbb5
to
3ac6c75
Compare
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
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.
/rebase |
[REBASE] Rebase triggered by vankichi for branch: test/internal/add-test-for-s3-reader |
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Co-authored-by: Kevin Diu <[email protected]>
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: vdaas-ci <[email protected]>
Signed-off-by: hlts2 <[email protected]>
3ac6c75
to
f4ec3e9
Compare
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
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.
Signed-off-by: hlts2 [email protected]
Description:
I refactored and added test for
s3/reader.go
Refactor
I am writing test about s3/reader now. But There were some places where I couldn’t write a test.
The reason are as follows.
The current implementation calls New method inside test target function.
vald/internal/db/storage/blob/s3/reader/reader.go
Line 97 in 92f7fff
The current implementation use s3 struct object, not interface
vald/internal/db/storage/blob/s3/reader/reader.go
Line 40 in 92f7fff
https://github.com/aws/aws-sdk-go/blob/v1.34.28/service/s3/s3iface/interface.go#L62-L441
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: