tcpproxy
tcpproxy copied to clipboard
Refactored the test files with helpers to test backend
Refactored the test by extracting the following two methods:
func testRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string)
func testNotRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string) <-chan bool
Ping for a look.
ping?
The returned channel is weird.
And the helpers are both undocumented.
What's the point of this? The PR just says it's "refactored" ... but why?