increase coverage rate

This commit is contained in:
Li Jie
2024-09-15 11:09:51 +08:00
parent 4a447f5c12
commit 7ddc8c6aeb
4 changed files with 27 additions and 32 deletions

View File

@@ -131,6 +131,7 @@ func testFrom(t *testing.T, pkgDir, sel string, byLLGen bool) {
dbg := isDbgSymEnabled(pkgDir + "/flags.txt")
if dbg {
cl.EnableDebugSymbols()
cl.DebugSymbols() // just for coverage
}
defer cl.DisableDebugSymbols()
b, err := os.ReadFile(out)