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

Provide a way for the consumers of this library to create a dummy netlink connection for testing purposes #246

Open
n-peugnet opened this issue Feb 4, 2025 · 0 comments

Comments

@n-peugnet
Copy link

For example, the underlying netlink package provides a nltest package, with a Dial() function that allows to create a dummy connection, and test that expected netlink messages are sent.

I see that this library already has an internal newConn() helper used for its own tests, so a way to fulfil this request would simply be to export this function, and let consumers call it together with nltest.Dial(). But maybe it would be better to put it in its own package, as netlink did it?

What do you think about this?

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

No branches or pull requests

1 participant