Moving NewIndexInfo, NewRepositoryInfo and associated helpers into config.go

Signed-off-by: Don Kjer <don.kjer@gmail.com>
This commit is contained in:
Don Kjer 2015-01-07 23:42:01 +00:00
parent 64b000c3ea
commit c899a49a95
6 changed files with 290 additions and 282 deletions

View file

@ -561,7 +561,7 @@ func TestParseRepositoryInfo(t *testing.T) {
func TestNewIndexInfo(t *testing.T) {
testIndexInfo := func(config *ServiceConfig, expectedIndexInfos map[string]*IndexInfo) {
for indexName, expectedIndexInfo := range expectedIndexInfos {
index, err := NewIndexInfo(config, indexName)
index, err := config.NewIndexInfo(indexName)
if err != nil {
t.Fatal(err)
} else {