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.10.0 lcov report (development 21921-ca7d0c8) Lines: 271 322 84.2 %
Date: 2018-02-20 06:16:13 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_5_torsion 314
random_curves_with_4_torsion 356
random_curves_with_any_torsion 390
random_curves_with_3_torsion 697
random_curves_with_2_torsion 1487
random_curves_with_6_torsion 1623
random_curves_with_7_torsion 3183
random_curves_with_9_torsion 4966
a1a3_to_a4a6 15337
random_curves_with_8_torsion 15829
random_curves_with_12_torsion 34659
a2a4_to_a4a6 35122
random_curves_with_10_torsion 50548
random_curves_with_11_torsion 63635
random_curves_with_rational_X1 113662
random_curves_with_elliptic_X1 250756
get_X1_info 341178
map_X1_points 341178
random_curves_with_general_X1 341178
random_curves_with_m_torsion 518865
torsion_compatible_with_characteristic 518865
rs_to_a4a6_and_tors 1724605
bc_to_a4a6 2427437
bc_to_a4a6_and_tors 2427437

Generated by: LCOV version 1.11