When debug in GoLand, I found init
function run before some unit test, but not run before some unit test. I have not set any configuration related to unit test and init
function. For example:
function A:
package1/function a()
function B:
package2/function b()
function C:
package3/int()
init
runs before a(), but not befor b(). It's so weired. I have not found any law.