1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
package git
import (
"testing"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/v16/internal/testhelper"
)
func TestMain(m *testing.M) {
testhelper.Run(m)
}
func newCommandFactory(tb testing.TB, cfg config.Cfg, opts ...ExecCommandFactoryOption) *ExecCommandFactory {
gitCmdFactory, cleanup, err := NewExecCommandFactory(cfg, opts...)
require.NoError(tb, err)
tb.Cleanup(cleanup)
return gitCmdFactory
}
|