apjanke / octave-testify

New BIST (Built-In Self Test) functions for GNU Octave
GNU General Public License v3.0
4 stars 2 forks source link

Factor out code discovery to separate class #63

Open apjanke opened 5 years ago

apjanke commented 5 years ago

Put the code that does class/method/function discovery in a separate class. That way it'd be easy for doctest to copy it if they want it, and easier to test. Seems like this is going to be a need throughout Testify, since Octave’s methods() and meta.class aren’t currently up to the task of discovering everything we need. (Especially with the case of shadowed duck-punched methods for classes that are defined spread across multiple source directories.)