1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 12:34:28 +00:00
Commit graph

6 commits

Author SHA1 Message Date
diamondburned 99e5f6c2b8
httpdriver: Fix MockRequest.AddHeader crash 2022-12-09 15:39:33 -08:00
diamondburned b3b2478481
httpdriver: ExpectMockRequest should return error instead 2022-12-08 19:48:57 -08:00
diamondburned ea4beab6bd
httpdriver: Fix MockResponse not impl'ing Response 2022-12-08 19:42:22 -08:00
diamondburned bf75621068
httpdriver: Add ExpectMockRequest
This commit adds the httpdriver.ExpectMockRequest function, which will
be super useful for testing inside and outside the library.
2022-12-08 19:38:59 -08:00
diamondburned 3bb8c2b019
httpdriver: Add Method into MockRequest 2022-12-08 19:17:28 -08:00
diamondburned d4bfd69cf6
httpdriver: Add Mock{Request,Response}
This commit adds MockRequest and MockResponse to aid in testing.

It doesn't provide a MockClient, since there are multiple testing
strategies and we don't want to do them all.
2022-12-08 17:16:11 -08:00