build: skip PkgDeclOnly

This commit is contained in:
xushiwei
2024-04-29 11:34:59 +08:00
parent d4ddc61a9f
commit bb1da81a01
4 changed files with 52 additions and 20 deletions

View File

@@ -36,10 +36,10 @@ func TestPkgNoInit(t *testing.T) {
}
func TestPkgKind(t *testing.T) {
if v := pkgKind("noinit"); v != pkgNoInit {
if v := pkgKind("noinit"); v != PkgNoInit {
t.Fatal("pkgKind:", v)
}
if v := pkgKind(""); v != pkgNormal {
if v := pkgKind(""); v != PkgLLGo {
t.Fatal("pkgKind:", v)
}
}