3 ms·
I think almost all modern languages end up with granting (unit) testing code free access to everything. The idea of testing only the public interface is about a
by justicezyx 10y ago
I think almost all modern languages end up with granting (unit) testing code free access to everything. The idea of testing only the public interface is about an unique snow flake only meaningful in C++ design, and was never a viable practice at all. Otherwise, I'd say at least one other language follow the similar approach...
- khedoros1 10y agoAre you just complaining about a lack of introspection to get around access controls? Friend classes are better for encapsulation than introspection is.