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 21730-50db3b0) Lines: 535 556 96.2 %
Date: 2018-01-19 06:18:47 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
polhensellift 21
ZpXQX_liftroots_full 28
ZpXQX_roots 28
ZqX_liftroot 42
ZpX_liftroots 52
ZpXQX_liftroot 63
ZpXQX_liftroot_vald 63
to_ZX 98
ZpXQM_prodFrobenius 140
ZpX_Frobenius 287
ZpX_liftroot 406
Zq_sqrtnlift 428
ZpXQX_digits 588
bezout_lift_fact 770
ZpXQX_liftfact 952
ZpXQ_sqrtnlift 1204
ZqX_liftfact 1351
ZpX_ZpXQ_liftroot 1904
_sqrtn_eval 2037
_sqrtn_invd 2037
ZqX_roots 2332
Zp_sqrt 3780
ZpX_ZpXQ_liftroot_ea 4067
BezoutPropagate 5663
Zp_sqrtlift 13125
ZpXQ_log 20787
ZpXQ_log_to_ath 20787
ZpXQ_HenselLift 24514
ZpXQ_div 31584
ZpX_roots 43443
ZpX_liftroots_full 43495
FqV_roots_from_deg1 43523
Zp_sqrtnlift 48028
ZpXQ_RecTreeLift 52388
BuildTree 52751
MultiLift 52772
ZpX_liftfact 91097
ZpXQ_inv 95333
ZpXQ_invlift 116120
ZpXQX_divrem 142422
gen_ZpX_Newton 180562
gen_ZpX_Dixon 199437
_inv_eval 291500
_inv_invd 291501
ZpX_HenselLift 361962
quadratic_prec_mask 456597
ZpX_RecTreeLift 930924

Generated by: LCOV version 1.11