-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
CustomProvider only supports tagged fields #7
Comments
This is expected. The custom providers only support tagged fields. We can't check based on struct's property yet. |
Is there a way to provide data through |
What do you mean? is it something like you mention above? Or do you have any some usecase? |
Sure! For example, say I have this code:
and I'd like to test that However, as you say, This is going to be the situation for any code that uses structures defined by an external library. We may want to test the code, but we can't tag the structures the code uses. When we can test using randomized data, this isn't an issue, but how do we handle cases where we would like to have a |
I'll try to look into this in more detail. I can't promise much, it might be possible or it might not. |
I haven't looked through the code; are you using introspection to get at record fields? It's straightforward to get the public fields fields through |
Custom providers are not called for public, untagged fields.
The text was updated successfully, but these errors were encountered: