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

Targeting more types and fields automatically using reflect #31

Open
chrisprijic opened this issue Aug 31, 2023 · 1 comment
Open

Targeting more types and fields automatically using reflect #31

chrisprijic opened this issue Aug 31, 2023 · 1 comment

Comments

@chrisprijic
Copy link

Is it useful to target property names, types, and tags with new methods in this library?

E.g.

  • A tag targeted by AddTagProvider which is an alias for AddProvider
  • a type by AddTypeProvider (reflect-based)
  • a field by AddFieldProvider matching field name?
  • leaves room for other types of strategies later

It would probably require providing different "targeting" strategies for determining faking values. I understand there'd have to be precedence for applicability too. I think each of these could be valuable, though I don't know if its considered applicable here.

I can provide some implementation/PR if this is within scope. I'm going to try things out tomorrow and come back with some more details.

@snorwin
Copy link

snorwin commented Apr 17, 2024

+1

(especially if you would like to fake values of a dependency where tags can't be used)

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