Ensure mocks are being used
masterTo prevent tests from passing when the code under test stops using its dependencies, use minimock.NewController(t) instead of passing *testing.T directly to mocks. The controller tracks all expectations and will fail the test if any expected method call was not performed.
func TestSomething(t *testing.T) {
// Using a controller ensures all expectations are met
mc := minimock.NewController(t)
formatterMock := NewFormatterMock(mc)
formatterMock.FormatMock.Return("minimock")
// If the code under test never calls formatterMock.Format(),
// the test will fail because of the controller.
}