client: improved returns, debugging output#593
Merged
Conversation
yaoharry
reviewed
Feb 27, 2019
| defer testServer.Close() | ||
|
|
||
| var d = newMockClient(t, testServer).GetUserClient() | ||
| assert.NoError(t, d.RemoveUser(context.Background(), "yaoharry")) |
yaoharry
approved these changes
Feb 27, 2019
Codecov Report
@@ Coverage Diff @@
## master #593 +/- ##
==========================================
+ Coverage 55.36% 55.68% +0.32%
==========================================
Files 67 68 +1
Lines 3006 3226 +220
==========================================
+ Hits 1664 1796 +132
- Misses 1146 1197 +51
- Partials 196 233 +37
Continue to review full report at Codecov.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎟️ Ticket(s): Closes #236
👷 Changes
oops... this turned out bigger than expected 😓
see #236 for context on this change
http.Response, but relevant structures instead--debugflag is now available to get debug output from the clientUserClient, which you can get usingclient.Client.GetUserClient()context.Contextfor cleanliness of closure🔦 Testing Instructions