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

Add context and followRedirect to client #5

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Conversation

vearutop
Copy link
Member

No description provided.

@github-actions
Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 3 959 (+55) 676 (+37) 77 (+2) 206 (+16) 214 (+13) 20.9K (+1.3K)
Go (test) 4 606 (+51) 450 (+36) 30 126 (+15) 19 (+4) 16.2K (+1.2K)

@github-actions
Copy link

Go API Changes

# github.com/bool64/httpmock
## compatible changes
(*Client).FollowRedirects: added
(*Client).WithContext: added

# summary
Inferred base version: v0.1.2
Suggested version: v0.2.0

@github-actions
Copy link

Unit Test Coverage

total: (statements) 80.7%
changed lines: (statements) 89.5%, coverage is less than 90.0%, consider testing the changes more thoroughly

Coverage of changed lines
File Function Coverage
Total 89.5%
client.go 89.5%
client.go:93 Reset 100.0%
client.go:117 FollowRedirects 100.0%
client.go:124 WithContext 100.0%
client.go:301 doOnce 100.0%
client.go:357 followRedirects 64.3%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 78.8% 80.7% (+1.9%)
github.com/bool64/httpmock/client.go ExpectResponseStatus 80.0% 100.0% (+20.0%)
github.com/bool64/httpmock/client.go FollowRedirects no function 100.0%
github.com/bool64/httpmock/client.go WithContext no function 100.0%
github.com/bool64/httpmock/client.go do 81.1% 94.6% (+13.5%)
github.com/bool64/httpmock/client.go doOnce 96.2% 96.6% (+0.4%)
github.com/bool64/httpmock/client.go followRedirects no function 71.4%

@vearutop vearutop merged commit 027065b into master Jun 28, 2022
@vearutop vearutop deleted the follow-redirects branch June 28, 2022 12:00
This pull request was closed.
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.

1 participant