mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
fix unit tests
This commit is contained in:
@@ -48,6 +48,9 @@ func (repo *LocalRepo) String() string {
|
||||
|
||||
// NumPackages return number of packages in local repo
|
||||
func (repo *LocalRepo) NumPackages() int {
|
||||
if repo.packageRefs == nil {
|
||||
return 0
|
||||
}
|
||||
return repo.packageRefs.Len()
|
||||
}
|
||||
|
||||
|
||||
@@ -163,6 +163,9 @@ func (repo *RemoteRepo) IsFlat() bool {
|
||||
|
||||
// NumPackages return number of packages retrieved from remote repo
|
||||
func (repo *RemoteRepo) NumPackages() int {
|
||||
if repo.packageRefs == nil {
|
||||
return 0
|
||||
}
|
||||
return repo.packageRefs.Len()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user