How can I open class only to test class?
问题 I'm mainly a Java developer and wonder about structure when writing unit test in kotlin, Assuming there's no package-private in kotlin private to restrict visibility to the file internal to restrict visibility to the module How can I open class only to test class ? Must I write test inside kotlin class or open class to all module (internal)? What's the kotlin way to open method for unit test only? EDIT Found similar question/request in kotlin discuss by @bentolor: How am I supposed to do unit