We want to share the NewController logging setup with other tests across utilities
15 lines
221 B
Go
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)
|
|
}
|
|
|