[pacman-dev] pactest coverage
allan at archlinux.org
Fri Jun 20 23:22:25 EDT 2008
I "discovered" gcov so was testing out the coverage of the pactests.
During searching for more info about gcov I saw Dan already had written
something on it
(http://toofishes.net/blog/using-gcov-code-coverage-testing/) so not as
novel as I thought...
Anyway, as an FYI, here is a list of functions/important sections of the
code that are not covered by pactests.
372-375: case 11 - symlink in package to existing dir
386-389: dir in package, symlink to non-dir in filesystem
393-396: case 10 - trying to overwrite dir tree with file, don't allow it
399: case 6 - trying to overwrite file with dir
290-300: _alpm_sync_addtarget() - adding target from given repo
pacman_upgrade() - URL targets
and everything to do with deltas...
We really should have coverage for the sections in libalpm/add.c so I am
writing pactests for those now. It would be easy to add one for -Rcs
and changelogs as well so that will give fairly complete coverage of
More information about the pacman-dev