net/http/httptest is a great package, either to use if your server is
http-based or to emulate if you’re testing other protocols. I’ve also found
io.Pipe to frequently be useful for this kind of testing.
I’d recommend reading through how net/http and x/net/http2 structures their
tests.
-eli
>
Hi,
Anyone have suggestion for writing test cases (best practices ) for client
server communication.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nut