Search code examples
vala

Does Vala provide something like C++ friend classes?


With C++ I like unit test functions or classes to be friends of the classes they test. That way I am not limited to the public interface. I need less mocking or boilerplate to test all methods. At the same time separating public and private methods.

With Vala is made most methods public to be able to test them. This exposes too much of the class interface.

Is there a way to make unit tests (classes or functions) friends like in C++?


Solution

  • I asked in this Vala chat(you can try it). The short answer seems to be no. There is a dead framework for testing ValaDate.