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 - crvwtors.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 22931-a5c6f641e) Lines: 270 322 83.9 %
Date: 2018-08-17 05:36:45 Functions: 24 29 82.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_div4 0
Fl_div8 0
qt_to_a4a6_and_tors 0
t_to_a4a6_and_tors 0
tq_to_a4a6_and_tors 0
random_curves_with_4_torsion 588
random_curves_with_5_torsion 682
random_curves_with_3_torsion 695
random_curves_with_any_torsion 718
random_curves_with_6_torsion 998
random_curves_with_2_torsion 1784
random_curves_with_7_torsion 3215
random_curves_with_9_torsion 5195
a1a3_to_a4a6 14422
random_curves_with_8_torsion 14999
a2a4_to_a4a6 32882
random_curves_with_12_torsion 33854
random_curves_with_10_torsion 48562
random_curves_with_11_torsion 64804
random_curves_with_rational_X1 110572
random_curves_with_elliptic_X1 246689
get_X1_info 329544
map_X1_points 329544
random_curves_with_general_X1 329544
random_curves_with_m_torsion 505638
torsion_compatible_with_characteristic 505638
rs_to_a4a6_and_tors 1663309
bc_to_a4a6 2332141
bc_to_a4a6_and_tors 2332141

Generated by: LCOV version 1.13