mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 14:31:49 +00:00
Move status loader into the git package
- Loading status belongs to git domain so it makes more sense for it to be in git package. - It also makes the `list` file simpler. - Because status loader is now part of the RepoFinder, the ugly Repo interface is no longer necessary.
This commit is contained in:
@@ -38,10 +38,10 @@ func TestFinder(t *testing.T) {
|
||||
root := test.reposMaker(t)
|
||||
|
||||
finder := NewRepoFinder(root)
|
||||
paths, _ := finder.Find()
|
||||
finder.Find()
|
||||
|
||||
if len(paths) != test.want {
|
||||
t.Errorf("expected %d; got %d", test.want, len(paths))
|
||||
if len(finder.repos) != test.want {
|
||||
t.Errorf("expected %d; got %d", test.want, len(finder.repos))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user