How to check private methods using matlab.unittest?

I am currently performing unit tests for a project written in Object Oriented Matlab.

From the construction, it makes sense that I cannot access the private methods of the class from the testing methods in my test class.

Is there any workaround for directly testing these methods without publishing them?

+4
source share
1 answer

If you need to test them directly, the easiest way to make them publicly available.

, , (, , ).

: /, , . , - .

, , , .

+4

All Articles