For instance, in protocol_test.go, there are many repetitions of code that binds to a socket (listen), accepts connections, writes and reads data from each connection. I think these can be condensed to a low single digit number of parameterized functions that are then called in the tests.
For instance, in
protocol_test.go
, there are many repetitions of code that binds to a socket (listen), accepts connections, writes and reads data from each connection. I think these can be condensed to a low single digit number of parameterized functions that are then called in the tests.