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

unit testing difficulties #6

Open
jdamick opened this issue Sep 11, 2017 · 1 comment
Open

unit testing difficulties #6

jdamick opened this issue Sep 11, 2017 · 1 comment

Comments

@jdamick
Copy link

jdamick commented Sep 11, 2017

Without being able to change the "backend/backendStdin/backendRun" or having defined interfaces for Ipvs, Service, etc. it is difficult to mock out this library. Would you be open to either exposing the backend variables or providing a way to set them or creating interfaces for the existing structs? I am happy to create a PR to help.

I have had to resort to creating a set of adapters around the library in order to mock it, however this is time consuming and only benefits me. So i'm happy to contribute in any way.

@tylerflint
Copy link
Contributor

@jdamick this is already on our todo list, just buried behind a bunch of other things. We would be very grateful if you were willing to assist here.

Thanks!

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

2 participants