chore(style): run gofumpt on packages

This commit is contained in:
jguer 2021-08-02 14:07:33 +02:00 committed by J Guerreiro
parent 827adab4b8
commit 50c0ece9a7
2 changed files with 19 additions and 14 deletions

View file

@ -6,8 +6,10 @@ import (
alpm "github.com/Jguer/go-alpm/v2"
)
type IPackage = alpm.IPackage
type Depend = alpm.Depend
type (
IPackage = alpm.IPackage
Depend = alpm.Depend
)
func VerCmp(a, b string) int {
return alpm.VerCmp(a, b)

View file

@ -203,18 +203,21 @@ func Test_upDevel(t *testing.T) {
"hello4": {Version: "2.0.0", Name: "hello4"},
},
},
want: UpSlice{Repos: []string{"devel"}, Up: []Upgrade{{
Name: "hello",
Repository: "devel",
LocalVersion: "2.0.0",
RemoteVersion: "latest-commit",
},
{
Name: "hello4",
Repository: "devel",
LocalVersion: "4.0.0",
RemoteVersion: "latest-commit",
}},
want: UpSlice{
Repos: []string{"devel"}, Up: []Upgrade{
{
Name: "hello",
Repository: "devel",
LocalVersion: "2.0.0",
RemoteVersion: "latest-commit",
},
{
Name: "hello4",
Repository: "devel",
LocalVersion: "4.0.0",
RemoteVersion: "latest-commit",
},
},
},
},
{