forked from TrueCloudLab/distribution
Moving NewIndexInfo, NewRepositoryInfo and associated helpers into config.go
Signed-off-by: Don Kjer <don.kjer@gmail.com>
This commit is contained in:
parent
64b000c3ea
commit
c899a49a95
6 changed files with 290 additions and 282 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue