Skip to content
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

Testing/client tests #573

Merged
merged 9 commits into from
Feb 16, 2019
Merged

Testing/client tests #573

merged 9 commits into from
Feb 16, 2019

Conversation

yaoharry
Copy link
Member

🎟️ Ticket(s): Closes #


👷 Changes

Increased code coverage for client.go by adding test cases for TOTP, daemon down and ssl verification.

🔦 Testing Instructions

Run test cases for client_test.go

@codecov
Copy link

codecov bot commented Feb 16, 2019

Codecov Report

Merging #573 into master will increase coverage by 0.44%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #573      +/-   ##
==========================================
+ Coverage   56.08%   56.51%   +0.44%     
==========================================
  Files          62       62              
  Lines        3019     3019              
==========================================
+ Hits         1693     1706      +13     
+ Misses       1119     1104      -15     
- Partials      207      209       +2
Impacted Files Coverage Δ
client/client.go 76.16% <0%> (+5.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ed987b...5314222. Read the comment docs.

err = client.DaemonDown()
assert.Nil(t, err)
println(actualCommand)
assert.Equal(t, actualCommand, session.Calls[0])
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this actually be testing daemon-up.sh? see line 139 🤔

@bobheadxi bobheadxi merged commit 8ab04a5 into master Feb 16, 2019
@bobheadxi bobheadxi deleted the testing/client-tests branch February 16, 2019 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants