-
Notifications
You must be signed in to change notification settings - Fork 181
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
test: add unit test for error scenario in internal/credential/store.go
#982
test: add unit test for error scenario in internal/credential/store.go
#982
Conversation
internal/credential/store.go
5f33119
to
08cfc6f
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #982 +/- ##
==========================================
+ Coverage 81.09% 81.26% +0.17%
==========================================
Files 57 57
Lines 2904 2904
==========================================
+ Hits 2355 2360 +5
+ Misses 375 371 -4
+ Partials 174 173 -1 |
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 with nitpicks
735d053
to
70d6840
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.
Request changes for using t.TempDir
for temp folder / file creation.
70d6840
to
9136a50
Compare
9136a50
to
57011ec
Compare
57011ec
to
ea6e802
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 with suggestions
ea6e802
to
7d8ce2c
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
7d8ce2c
to
88ae475
Compare
Signed-off-by: Akanksha Gahalot <akankshagahlot0307@gmail.com>
Signed-off-by: Akanksha Gahalot <akankshagahlot0307@gmail.com>
88ae475
to
70bac9c
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
…go` (oras-project#982) Signed-off-by: Akanksha Gahalot <akankshagahlot0307@gmail.com> Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…go` (oras-project#982) Signed-off-by: Akanksha Gahalot <akankshagahlot0307@gmail.com> Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…go` (oras-project#982) Signed-off-by: Akanksha Gahalot <akankshagahlot0307@gmail.com>
What this PR does / why we need it:
This PR adds a unit test file for
internal/credential/store.go
to increase its code coverage from 78.57% to 100%.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
This PR is a small part of #972
Please check the following list: