-
Notifications
You must be signed in to change notification settings - Fork 2
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
Is there a way to test private functions? #1
Comments
it's a problem i commonly run into as well, but i don't know of a solution for it |
I use the method of using feature-dependent reexporting. I found it from the following link: |
Hi, I did some research on this issue. I didn't like this Main problem is your benchmarks are run when you do I think further research in needed. This is indeed how I would write my benchmarks instead of only testing public APIs, but problems are:
|
Hi, thanks for your great work! This is my favorite benchmarking library so far.
But I wonder, is there a way to test private functions? For example, I have a crate which has 1 public function as it's API, but on this function call it determines which internal implementation to use. I would like to bench those internal implementations without making them public.
The text was updated successfully, but these errors were encountered: