3 ms·
Go comes with this kind of “public” and “private” separation. Only the private tests can access private functions. It also serves to differentiate which tests a
by randomdata 3y ago
Go comes with this kind of “public” and “private” separation. Only the private tests can access private functions. It also serves to differentiate which tests are for API documentation, which the API must conform to forevermore, and which were used to help with development and can be considered throwaway.
I'm not sure why all testing frameworks don't have this.