blob: 9b6bc072281076c0c66fdf2c5d1f5aa268cf64c0 [file] [log] [blame]
package repo_manager
import (
"context"
"testing"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"go.skia.org/infra/autoroll/go/config_vars"
"go.skia.org/infra/go/chrome_branch/mocks"
)
func setupRegistry(t *testing.T) *config_vars.Registry {
cbc := &mocks.Client{}
cbc.On("Get", mock.Anything).Return(config_vars.FakeVars().Branches.Chromium, config_vars.FakeVars().Branches.ActiveMilestones, nil)
reg, err := config_vars.NewRegistry(context.Background(), cbc)
require.NoError(t, err)
return reg
}