co0p/gowhisper

find out how to test the checker...

co0p opened this issue · 2 comments

co0p commented

oh my god we have go (routines).

could use postman mock server? but it may cost something and is another dependency

would the hexagon way spin up a local http server that responds in a particular way?

i think checker should use hhtpclient to send real request somewhere (could be localhost) and collect + parse result (but if we have a local server for test duration we would need to test that too? e.g. localhost:8888/200 give 200 OK status /404 gives 404 etc tests for <200 >300 host unreachable and timeout?)

co0p commented