Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit tests to reduce duplicated code #72

Open
pires opened this issue Mar 5, 2021 · 0 comments
Open

Revisit tests to reduce duplicated code #72

pires opened this issue Mar 5, 2021 · 0 comments

Comments

@pires
Copy link
Owner

pires commented Mar 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant