Merge pull request #297 from cpunion/decl-test

cl: test decl only pkg kind
This commit is contained in:
xushiwei
2024-06-11 08:28:41 +08:00
committed by GitHub

View File

@@ -121,6 +121,12 @@ func TestPkgKind(t *testing.T) {
if v, _ := pkgKind(""); v != PkgLLGo {
t.Fatal("pkgKind:", v)
}
if v, _ := pkgKind("decl"); v != PkgDeclOnly {
t.Fatal("pkgKind:", v)
}
if v, _ := pkgKind("decl: test.ll"); v != PkgDeclOnly {
t.Fatal("pkgKind:", v)
}
}
func TestPkgKindOf(t *testing.T) {