Skip to content

Testing/client tests#573

Merged
bobheadxi merged 9 commits into
masterfrom
testing/client-tests
Feb 16, 2019
Merged

Testing/client tests#573
bobheadxi merged 9 commits into
masterfrom
testing/client-tests

Conversation

@yaoharry

Copy link
Copy Markdown
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

codecov Bot commented Feb 16, 2019

Copy link
Copy Markdown

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.

Comment thread client/client_test.go
err = client.DaemonDown()
assert.Nil(t, err)
println(actualCommand)
assert.Equal(t, actualCommand, session.Calls[0])

Copy link
Copy Markdown
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