fix test case

This commit is contained in:
John 2021-02-07 10:54:57 +08:00
parent 824fa639f0
commit 9428a53176
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func TestCheckAndLoadPackageOnGoMod(t *testing.T) {
for _, v := range astPkgs {
if v.Name == test.pkgName {
result = true
break
}
}
if test.expected != result {
@ -212,6 +213,7 @@ type Common struct {
for _, v := range astPkgs {
if v.Name == test.pkgName {
result = true
break
}
}
if test.expected != result {