How to test private / non-exported methods of a module?

When writing a module, I would like to test the methods as I code them up, but how do I test the methods that are not exported?

1 Like

Just call them with the module prefixed Package.func(1,2) or bring them into the namespace using Package: func for example.

3 Likes