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

feat(netcore): add tests for WrapConn #60

Merged
merged 1 commit into from
Feb 2, 2025
Merged

feat(netcore): add tests for WrapConn #60

merged 1 commit into from
Feb 2, 2025

Conversation

bassosimone
Copy link
Member

Let us make sure WrapConn correctly wraps the underlying netx and correctly deals with the conn returnning nil addresses w/o crashing, which is a pathologic edge case to keep into account.

While there, ensure the maybeWrapConn method correctly sets the wrapper's netx field, so we are sure logging will happen when it has been configured inside of the network we're passing as argument.

While there, make tests names more consistent with respect to whether funcs are public or private, and whether they are methods or not.

Let us make sure WrapConn correctly wraps the underlying netx and
correctly deals with the conn returnning nil addresses w/o crashing,
which is a pathologic edge case to keep into account.

While there, ensure the `maybeWrapConn` method correctly sets the
wrapper's netx field, so we are sure logging will happen when it has
been configured inside of the network we're passing as argument.

While there, make tests names more consistent with respect to whether
funcs are public or private, and whether they are methods or not.
@bassosimone bassosimone merged commit 7604ceb into main Feb 2, 2025
1 check passed
@bassosimone bassosimone deleted the feat/testing branch February 2, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant