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.11.0 lcov report (development 22860-5579deb0b) Lines: 535 555 96.4 %
Date: 2018-07-18 05:36:42 Functions: 47 48 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZpXQ_sqrt 0
ZpX_liftroots 28
polhensellift 28
ZpXQX_liftroots_full 35
ZpXQX_roots 35
ZqX_liftroot 42
ZpXQX_liftroot 70
ZpXQX_liftroot_vald 70
to_ZX 98
ZpXQM_prodFrobenius 140
ZpX_Frobenius 287
ZpX_liftroot 406
Zq_sqrtnlift 415
ZpXQX_digits 588
bezout_lift_fact 777
ZpXQX_liftfact 959
ZpXQ_sqrtnlift 1204
ZpX_ZpXQ_liftroot 1904
ZqX_liftfact 1925
_sqrtn_eval 2037
_sqrtn_invd 2037
ZqX_roots 2353
Zp_sqrt 3801
ZpX_ZpXQ_liftroot_ea 4054
BezoutPropagate 5684
Zp_sqrtlift 13139
ZpXQ_log 20876
ZpXQ_log_to_ath 20876
ZpXQ_HenselLift 23009
ZpXQ_div 31584
ZpX_roots 43675
ZpX_liftroots_full 43703
FqV_roots_from_deg1 43738
ZpXQ_RecTreeLift 49329
Zp_sqrtnlift 50213
BuildTree 54394
MultiLift 54422
ZpX_liftfact 92950
ZpXQX_divrem 142422
ZpXQ_inv 176253
ZpXQ_invlift 197129
gen_ZpX_Dixon 199437
gen_ZpX_Newton 261750
ZpX_HenselLift 373088
_inv_eval 506574
_inv_invd 506575
quadratic_prec_mask 862418
ZpX_RecTreeLift 960100

Generated by: LCOV version 1.13