-
Notifications
You must be signed in to change notification settings - Fork 4
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
Revise IO test class hierarchy to employ composition over inheritance #6
Comments
expected data depends on the pulse, the masks and the mode, so calculating the expected data can only really be done in TestSetup in this diagram. Everywhere else there is information missing. |
This looks promising. Do you need help with the implementation? |
I have already begun and done the most of it. I think I can finish the rest today in the evening. |
are you also writing the matlab unit tests (#10) ? |
Currently not. This can be done by someone else or I can tackle it after I've finished this issue here. |
I'm done with the implementation of the hierarchy outlined above. However, I think I will add some comments/documentation in the near future, so I will not close this issue right now. |
The current TestSetup classes were implemented with only a very small number of tests in mind and rely on inheritance to overload specific message (typically only pulse generation).
The current situation however exposes two drawbacks of this approach:
To alleviate these issues, composition should be preferred to inheritance, meaning that to change how, e.g., pulse generation for a specific test works, the class should not be inherited and modified directly but be parameterized via pulse generation objects. I will add a UML diagram with explanations shortly.
The text was updated successfully, but these errors were encountered: