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 17234-4181bc5) Lines: 486 507 95.9 %
Date: 2014-12-18 Functions: 35 36 97.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 186 232 80.2 %

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 5369
BuildTree 9016
MultiLift 9023
ZpXQM_prodFrobenius 14
ZpXQX_liftroot 91
ZpXQX_liftroot_vald 91
ZpXQ_HenselLift 31430
ZpXQ_RecTreeLift 65947
ZpXQ_inv 14112
ZpXQ_invlift 24388
ZpXQ_log 10276
ZpXQ_log_to_ath 10276
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1141
ZpX_Frobenius 35
ZpX_HenselLift 179809
ZpX_RecTreeLift 400369
ZpX_ZpXQ_liftroot 189
ZpX_ZpXQ_liftroot_ea 1967
ZpX_liftfact 8687
ZpX_liftroot 38458
ZpX_liftroots 35
ZpX_liftroots_full 35
ZpX_roots 40810
Zp_sqrt 1575
Zp_sqrtlift 7035
Zp_sqrtnlift 28154
_inv_eval 54803
_inv_invd 54803
_sqrtn_eval 1778
_sqrtn_invd 1778
bezout_lift_fact 532
gen_ZpX_Dixon 100604
gen_ZpX_Newton 56889
polhensellift 21
quadratic_prec_mask 241883

Generated by: LCOV version 1.9