-
Notifications
You must be signed in to change notification settings - Fork 373
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
Resolve todo and add unit test #488
Resolve todo and add unit test #488
Conversation
@@ -72,3 +76,11 @@ func (td *TempDir) Write(file string, content []byte) *TempDir { | |||
} | |||
return td | |||
} | |||
|
|||
func (td *TempDir) WritePlugin(file string, plugin index.Plugin) *TempDir { |
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.
I figure this will be useful if we want to write more tests that involve the filesystem. It may not be the right place though.
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.
eh, it's ok. i suspect we might forget to use it. :)
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.
pls add td.t.Helper()
and it's 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.
Done.
Codecov Report
@@ Coverage Diff @@
## master #488 +/- ##
==========================================
+ Coverage 56.47% 57.45% +0.97%
==========================================
Files 19 19
Lines 926 926
==========================================
+ Hits 523 532 +9
+ Misses 350 339 -11
- Partials 53 55 +2
Continue to review full report at Codecov.
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Related issue: #270