3 ms·
You can keep your private functions private and still test them. In your testing file, add the following at the top @testable import 'target' All of the priv
by robdashnash 10y ago
You can keep your private functions private and still test them.
In your testing file, add the following at the top
@testable import 'target'
All of the private functions in your target will now be exposed for your test cases to utilise.