Private functions as being less stable
- related
- Learn go with tests
- link
- But isn’t mocking evil?
Altough Golang lets you test private functions, I would avoid it, as private functions are implementation detail to support public behaviour.
Test the public behaviour – Sandi Metsz
Sandi Metz describes private functions as being less stable and you don’t want to couple your tests to them.