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-bordeaux1.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 16804-345a01c) Lines: 502 517 97.1 %
Date: 2014-09-20 Functions: 34 34 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 189 232 81.5 %

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 5390
BuildTree 7217
MultiLift 7224
ZpXQM_prodFrobenius 35
ZpXQX_liftroot 28
ZpXQX_liftroot_vald 28
ZpXQ_HenselLift 21455
ZpXQ_RecTreeLift 45528
ZpXQ_inv 13650
ZpXQ_invlift 23912
ZpXQ_log 10262
ZpXQ_log_to_ath 10262
ZpXQ_sqrtnlift 1141
ZpX_Frobenius 70
ZpX_HenselLift 147159
ZpX_RecTreeLift 326748
ZpX_ZpXQ_liftroot 224
ZpX_ZpXQ_liftroot_ea 1862
ZpX_liftfact 6881
ZpX_liftroot 38290
ZpX_liftroots 35
ZpX_liftroots_full 35
ZpX_roots 40040
Zp_sqrtlift 14469
Zp_sqrtnlift 20538
_inv_eval 54145
_inv_invd 54145
_sqrtn_eval 1778
_sqrtn_invd 1778
bezout_lift_fact 539
gen_ZpX_Dixon 99918
gen_ZpX_Newton 56371
polhensellift 21
quadratic_prec_mask 157367

Generated by: LCOV version 1.9