Converted all collections from repositories to *collections

This commit is contained in:
Deluan
2016-03-08 20:33:09 -05:00
parent e9ab07e4d3
commit 60d4cb5d9f
16 changed files with 53 additions and 49 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/deluan/gosonic/domain"
)
@@ -29,9 +30,9 @@ func (m *MockArtistIndex) SetData(j string, length int) {
}
}
func (m *MockArtistIndex) GetAll() (domain.ArtistIndexes, error) {
func (m *MockArtistIndex) GetAll() (*domain.ArtistIndexes, error) {
if m.err {
return nil, errors.New("Error!")
}
return m.data, nil
return &m.data, nil
}