jarcoal / httpmock

HTTP mocking for Golang
http://godoc.org/github.com/jarcoal/httpmock
MIT License
1.93k stars 103 forks source link

add call count support #28

Closed grounded042 closed 7 years ago

grounded042 commented 7 years ago

I'd like to use call counts in my tests to see the number calls that I have made to a specific URL and method. This is helpful to do a quick verification that I actually did call a URL or URLs and how many times I called them. It adds two new methods GetTotalCallCount that returns the total call count since the last reset and GetCallCountInfo which returns call counts for specific URL-method combos.

grounded042 commented 7 years ago

@dlebech changes have been made - this should be good to go now.

dlebech commented 7 years ago

Yep thanks for the PR :+1: