package service import ( "testing" "github.com/golang/mock/gomock" ) type TestSuite struct { svc *Service mockRepo *MockRepository } func NewSuite(t *testing.T) *TestSuite { t.Helper() ctrl := gomock.NewController(t) mockRepo := NewMockRepository(ctrl) svc := New(mockRepo) return &TestSuite{ svc: svc, mockRepo: mockRepo, } }