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

getAllMethodNames does not differentiate between overloaded methods #83

Open
markgoho opened this issue Dec 8, 2023 · 0 comments
Open

Comments

@markgoho
Copy link

markgoho commented Dec 8, 2023

Describe the bug
When finding the methods within a class, overloaded method signatures are ignored.

To Reproduce
Steps to reproduce the behavior:

Create a class with a method that has multiple signatures with the same name (called function overloading).

Try to create an auto-spy from that class and spy on that method. There is no way to specify which overload is to be mocked/spied on.

Expected behavior
Among the overloaded signatures, one is able to be selected or specified.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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

1 participant