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-bordeaux.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 19611-73a567d) Lines: 530 552 96.0 %
Date: 2016-09-27 05:54:40 Functions: 46 47 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 5579
BuildTree 49132
FqV_roots_from_deg1 41143
MultiLift 49153
ZpXQM_prodFrobenius 140
ZpXQX_digits 588
ZpXQX_divrem 142422
ZpXQX_liftfact 973
ZpXQX_liftroot 91
ZpXQX_liftroot_vald 91
ZpXQX_liftroots_full 28
ZpXQX_roots 28
ZpXQ_HenselLift 32949
ZpXQ_RecTreeLift 69580
ZpXQ_div 31577
ZpXQ_inv 95473
ZpXQ_invlift 116262
ZpXQ_log 20789
ZpXQ_log_to_ath 20789
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1183
ZpX_Frobenius 287
ZpX_HenselLift 336746
ZpX_RecTreeLift 866030
ZpX_ZpXQ_liftroot 1582
ZpX_ZpXQ_liftroot_ea 3136
ZpX_liftfact 86610
ZpX_liftroot 364
ZpX_liftroots 66
ZpX_liftroots_full 41115
ZpX_roots 41049
Zp_sqrt 3185
Zp_sqrtlift 12929
Zp_sqrtnlift 47419
ZqX_liftfact 1582
ZqX_liftroot 70
ZqX_roots 589
Zq_sqrtnlift 414
_inv_eval 291550
_inv_invd 291550
_sqrtn_eval 1974
_sqrtn_invd 1974
bezout_lift_fact 602
gen_ZpX_Dixon 198380
gen_ZpX_Newton 180673
polhensellift 21
quadratic_prec_mask 301733

Generated by: LCOV version 1.11