I am wondering how I can test an application that's written with fasthttp using the httptest package in the base library of Go.
I found this guide which explains the testing pretty well, but the issue is that httptest does not satisfy the http.Handler
interface so I have no idea how to do the http.HandlerFunc
since fasthttp uses it's own fasthttp.ListenAndServe
that's incompatible.
Any ideas on how to create a wrapper, or how to otherwise test a fasthttp written library end to end?
Aucun commentaire:
Enregistrer un commentaire