Files
autogits/common/test_utils/common.go
Adam Majer 2d52659223 test: move NewController to common/test_util subpackage
We want to share the NewController logging setup with other tests
across utilities
2026-02-03 14:25:07 +01:00

15 lines
221 B
Go

package test_utils
import (
"testing"
"go.uber.org/mock/gomock"
"src.opensuse.org/autogits/common"
)
func NewController(t *testing.T) *gomock.Controller {
common.SetTestLogger(t)
return gomock.NewController(t)
}