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.10.0 lcov report (development 21188-db834f2) Lines: 535 556 96.2 %
Date: 2017-10-20 06:23:07 Functions: 47 48 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 5663
BuildTree 53185
FqV_roots_from_deg1 43873
MultiLift 53206
ZpXQM_prodFrobenius 140
ZpXQX_digits 588
ZpXQX_divrem 142422
ZpXQX_liftfact 952
ZpXQX_liftroot 91
ZpXQX_liftroot_vald 91
ZpXQX_liftroots_full 28
ZpXQX_roots 28
ZpXQ_HenselLift 24514
ZpXQ_RecTreeLift 52388
ZpXQ_div 31584
ZpXQ_inv 95515
ZpXQ_invlift 116600
ZpXQ_log 21085
ZpXQ_log_to_ath 21085
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1204
ZpX_Frobenius 287
ZpX_HenselLift 362508
ZpX_RecTreeLift 932723
ZpX_ZpXQ_liftroot 1904
ZpX_ZpXQ_liftroot_ea 4067
ZpX_liftfact 91657
ZpX_liftroot 364
ZpX_liftroots 52
ZpX_liftroots_full 43845
ZpX_roots 43793
Zp_sqrt 3262
Zp_sqrtlift 12943
Zp_sqrtnlift 47741
ZqX_liftfact 1330
ZqX_liftroot 70
ZqX_roots 2332
Zq_sqrtnlift 428
_inv_eval 293769
_inv_invd 293769
_sqrtn_eval 2037
_sqrtn_invd 2037
bezout_lift_fact 770
gen_ZpX_Dixon 199437
gen_ZpX_Newton 181638
polhensellift 21
quadratic_prec_mask 339564
to_ZX 98

Generated by: LCOV version 1.11