Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - basemath - Hensel.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16746-c2cb716) Lines: 495 512 96.7 %
Date: 2014-08-31 Functions: 32 33 97.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 189 232 81.5 %

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 3850
BuildTree 5145
MultiLift 5150
ZpXQX_liftroot 20
ZpXQX_liftroot_vald 20
ZpXQ_HenselLift 15325
ZpXQ_RecTreeLift 32520
ZpXQ_inv 9725
ZpXQ_invlift 17050
ZpXQ_log 7325
ZpXQ_log_to_ath 7325
ZpXQ_sqrtnlift 815
ZpX_Frobenius 0
ZpX_HenselLift 104528
ZpX_RecTreeLift 232123
ZpX_ZpXQ_liftroot 110
ZpX_ZpXQ_liftroot_ea 1275
ZpX_liftfact 4905
ZpX_liftroot 27350
ZpX_liftroots 25
ZpX_liftroots_full 25
ZpX_roots 28595
Zp_sqrtlift 10335
Zp_sqrtnlift 14640
_inv_eval 38565
_inv_invd 38565
_sqrtn_eval 1270
_sqrtn_invd 1270
bezout_lift_fact 385
gen_ZpX_Dixon 71370
gen_ZpX_Newton 40225
polhensellift 15
quadratic_prec_mask 112185

Generated by: LCOV version 1.9