Closed cojoj closed 9 years ago
Yes. I'm even tempted to make everything private and then make what needs to be internal
and public
, so that we have a minimal public interface. Can you use @testable
on private
methods as well? Or is it just for internal
?
Just for internal
s... ðŸ˜
I even started this twitter conversation once.
Ok, so let's do this: keep indirectly tested methods as private
and directly tested ones as internal
or public
. In a way treat internal
and public
as things you'd put in a header file. But, always default to internal
and only make it public
iff you have a usecase outside of the current module.
And we will try to test all internal
and public
methods. So this task is mainly about removing the public
modifier to make it internal
again. Does that make sense?
Yes sir, I think that's the right way! Now, Beats1 and get back to work 😉
Haha same here. Loving the London style that's on right now.
Oh man... Wish I'm in London right now 🇬🇧 Love this city so much 😻
It's fucking boiling here right now though. :sweat:
Even though... 😆
I assume that
public
is in everyXcodeServerSDK
class because of Swift 1.2 leftovers? I mean from testing point of view. But now, with Swift 2 we were blessed with this beautiful@testable
annotation, so why not Zoidberg?IMHO, classes like
JSON
,HTTPUtils
and some more are not meant to be used out ofinternal
scope, so we definitely can removepublic
access. Why do you think?