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 17110-9967e23) Lines: 486 507 95.9 %
Date: 2014-11-26 Functions: 35 36 97.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 186 232 80.2 %

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 3835
BuildTree 6125
MultiLift 6130
ZpXQM_prodFrobenius 10
ZpXQX_liftroot 65
ZpXQX_liftroot_vald 65
ZpXQ_HenselLift 21190
ZpXQ_RecTreeLift 44525
ZpXQ_inv 10080
ZpXQ_invlift 17420
ZpXQ_log 7340
ZpXQ_log_to_ath 7340
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 815
ZpX_Frobenius 25
ZpX_HenselLift 125690
ZpX_RecTreeLift 279116
ZpX_ZpXQ_liftroot 135
ZpX_ZpXQ_liftroot_ea 1325
ZpX_liftfact 5890
ZpX_liftroot 27325
ZpX_liftroots 25
ZpX_liftroots_full 25
ZpX_roots 28915
Zp_sqrt 1120
Zp_sqrtlift 5020
Zp_sqrtnlift 20090
_inv_eval 39145
_inv_invd 39145
_sqrtn_eval 1270
_sqrtn_invd 1270
bezout_lift_fact 380
gen_ZpX_Dixon 71860
gen_ZpX_Newton 40635
polhensellift 15
quadratic_prec_mask 169877

Generated by: LCOV version 1.9