I just created a super simple internal Model object in my brand new TestingTests project with one function:
Again, notice that I’m not adding this model to my test target and not making the class or my method public!
In your test target, just import the module you want to test using the @testable keyword:
That’s it, now you can use all the internals of your class for testing purposes 🙂
Thank you Swift team!