8000 refactor stack list command unit tests to table-driven by adshmh · Pull Request #1287 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

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

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

adshmh
Copy link
Contributor
@adshmh adshmh commented Aug 13, 2018

- 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)

@codecov-io
Copy link
codecov-io commented Aug 13, 2018

Codecov Report

Merging #1287 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1287   +/-   ##
=======================================
  Coverage   54.88%   54.88%           
=======================================
  Files         293      293           
  Lines       19428    19428           
=======================================
  Hits        10663    10663           
  Misses       8089     8089           
  Partials      676      676

Copy link
Collaborator
@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐸

},
for _, tc := range testCases {
t.Run(tc.doc, func(t *testing.T) {
services := []swarm.Service{}
Copy link
Contributor

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

Copy link
Contributor Author

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>
@adshmh adshmh force-pushed the refactor-stack-list-unit-tests branch from d24d4ea to e9dc229 Compare September 20, 2018 02:17
Copy link
Contributor
@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@silvin-lubecki silvin-lubecki merged commit b23272f into docker:master Sep 20, 2018
@GordonTheTurtle GordonTheTurtle added this to the 19.03.0 milestone Sep 20, 2018
@silvin-lubecki
Copy link
Contributor

Thank you @adshmh !!!

lifubang pushed a commit to lifubang/cli that referenced this pull request Oct 12, 2018
…ests

refactor stack list command unit tests to table-driven

Signed-off-by: Lifubang <lifubang@acmcoder.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0