You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method B creates the object C with some specific args and execute the d() method.
So A().b() calls C(specific args).d().
The signature of B and D methods are the same. A only exists to create C with those specifics Args. So it's kind of a proxy in order to be aligned to DRY and not call C(specific args) multiple times in different places + be more semantic. B is a generic name and D is a better name for my specific use case.
I already have all the tests written for A and B, but since C.d is a proxy to A.b that only specifies custom logic to the constructor, I don't want to retest everything again. I only want to make sure C was called with the correct arguments.
How could I do this?
The text was updated successfully, but these errors were encountered:
Thanks for the question! There are very few developers who work on this package (you can count them on one hand), so we recommend asking questions like this on a user forum with more people available to answer, such as StackOverflow.
I have a class A that has a method b().
The method B creates the object C with some specific args and execute the d() method.
So A().b() calls C(specific args).d().
The signature of B and D methods are the same. A only exists to create C with those specifics Args. So it's kind of a proxy in order to be aligned to DRY and not call C(specific args) multiple times in different places + be more semantic. B is a generic name and D is a better name for my specific use case.
I already have all the tests written for A and B, but since C.d is a proxy to A.b that only specifies custom logic to the constructor, I don't want to retest everything again. I only want to make sure C was called with the correct arguments.
How could I do this?
The text was updated successfully, but these errors were encountered: