|
|
|
|
|
by charleslmunger
866 days ago
|
|
Maybe this is heresy in the Go community, but this is a problem that automatic dependency injection solves. https://dagger.dev/hilt/testing-philosophy.html The biggest problem with the "pass nil for unused dependencies" approach is that when you modify some code to actually use one of those dependencies when it didn't before, you have to go back through every test and populate it. |
|