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 20459-9710128) Lines: 531 553 96.0 %
Date: 2017-04-29 05:33:44 Functions: 47 48 97.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 4692
BuildTree 42888
FqV_roots_from_deg1 35802
MultiLift 42906
ZpXQM_prodFrobenius 120
ZpXQX_digits 504
ZpXQX_divrem 122076
ZpXQX_liftfact 816
ZpXQX_liftroot 78
ZpXQX_liftroot_vald 78
ZpXQX_liftroots_full 24
ZpXQX_roots 24
ZpXQ_HenselLift 20472
ZpXQ_RecTreeLift 43830
ZpXQ_div 27084
ZpXQ_inv 81870
ZpXQ_invlift 99729
ZpXQ_log 17859
ZpXQ_log_to_ath 17859
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1020
ZpX_Frobenius 246
ZpX_HenselLift 293286
ZpX_RecTreeLift 754536
ZpX_ZpXQ_liftroot 1416
ZpX_ZpXQ_liftroot_ea 3060
ZpX_liftfact 75048
ZpX_liftroot 312
ZpX_liftroots 48
ZpX_liftroots_full 35778
ZpX_roots 35730
Zp_sqrt 2730
Zp_sqrtlift 11094
Zp_sqrtnlift 40770
ZqX_liftfact 1074
ZqX_liftroot 60
ZqX_roots 690
Zq_sqrtnlift 366
_inv_eval 250257
_inv_invd 250257
_sqrtn_eval 1722
_sqrtn_invd 1722
bezout_lift_fact 606
gen_ZpX_Dixon 171018
gen_ZpX_Newton 155049
polhensellift 18
quadratic_prec_mask 266337
to_ZX 84

Generated by: LCOV version 1.11