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 19352-1b11b25) Lines: 514 536 95.9 %
Date: 2016-08-25 06:11:27 Functions: 38 39 97.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 5558
BuildTree 10041
MultiLift 10048
ZpXQM_prodFrobenius 140
ZpXQX_digits 588
ZpXQX_divrem 142422
ZpXQX_liftroot 91
ZpXQX_liftroot_vald 91
ZpXQ_HenselLift 33712
ZpXQ_RecTreeLift 71253
ZpXQ_div 31577
ZpXQ_inv 95431
ZpXQ_invlift 116222
ZpXQ_log 20791
ZpXQ_log_to_ath 20791
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1141
ZpX_Frobenius 287
ZpX_HenselLift 188886
ZpX_RecTreeLift 421745
ZpX_ZpXQ_liftroot 441
ZpX_ZpXQ_liftroot_ea 1925
ZpX_liftfact 9782
ZpX_liftroot 38948
ZpX_liftroots 59
ZpX_liftroots_full 59
ZpX_roots 41265
Zp_sqrt 2807
Zp_sqrtlift 13174
Zp_sqrtnlift 47250
_inv_eval 291410
_inv_invd 291410
_sqrtn_eval 1778
_sqrtn_invd 1778
bezout_lift_fact 595
gen_ZpX_Dixon 198380
gen_ZpX_Newton 180596
polhensellift 21
quadratic_prec_mask 300790

Generated by: LCOV version 1.11