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

Support for mock hub #271

Open
atoulme opened this issue Aug 1, 2022 · 0 comments
Open

Support for mock hub #271

atoulme opened this issue Aug 1, 2022 · 0 comments

Comments

@atoulme
Copy link

atoulme commented Aug 1, 2022

Expected Behavior

When testing with this library, I want to mock the hub object so I can test its behavior.

Actual Behavior

The Hub object is not easily mockable. There is no interface for it, and the fields are not public, so one cannot instantiate a hub outside of the constructor functions.

See open-telemetry/opentelemetry-collector-contrib#12795 for context.

@atoulme atoulme mentioned this issue Aug 13, 2022
2 tasks
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 a pull request may close this issue.

1 participant