Rework index decode and handling old format

This commit is contained in:
Alexander Neumann 2015-08-08 12:22:17 +02:00
parent 356bb62243
commit eb73182fcf
8 changed files with 180 additions and 48 deletions

View file

@ -199,7 +199,7 @@ func TestLoadJSONUnpacked(t *testing.T) {
var repoFixture = filepath.Join("testdata", "test-repo.tar.gz")
func TestLoadIndex(t *testing.T) {
func TestRepositoryLoadIndex(t *testing.T) {
WithTestEnvironment(t, repoFixture, func(repodir string) {
repo := OpenLocalRepo(t, repodir)
OK(t, repo.LoadIndex())