-
Notifications
You must be signed in to change notification settings - Fork 2k
refactor stack list command unit tests to table-driven #1287
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
refactor stack list command unit tests to table-driven #1287
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1287 +/- ##
=======================================
Coverage 54.88% 54.88%
=======================================
Files 293 293
Lines 19428 19428
=======================================
Hits 10663 10663
Misses 8089 8089
Partials 676 676 |
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 🐸
cli/command/stack/list_test.go
Outdated
}, | ||
for _, tc := range testCases { | ||
t.Run(tc.doc, func(t *testing.T) { | ||
services := []swarm.Service{} |
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.
nit: var services []swarm.Service
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.
Thank you for the review. I have updated the PR.
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
d24d4ea
to
e9dc229
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
Thank you @adshmh !!! |
…ests refactor stack list command unit tests to table-driven Signed-off-by: Lifubang <lifubang@acmcoder.com>
- What I did
Refactored unit tests of stack list command to table-driven
- How I did it
Modified the unit tests under
cli/command/stack/list_test.go
- How to verify it
- Description for the changelog
Refactored stack list unit tests to table-driven
- A picture of a cute animal (not mandatory but encouraged)