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 to exceed 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 23157-9c2a597eb) Lines: 270 322 83.9 %
Date: 2018-10-16 05:38:41 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_any_torsion 686
random_curves_with_4_torsion 840
random_curves_with_5_torsion 866
random_curves_with_3_torsion 890
random_curves_with_6_torsion 966
random_curves_with_2_torsion 1764
random_curves_with_7_torsion 3435
random_curves_with_9_torsion 5756
random_curves_with_8_torsion 15678
a1a3_to_a4a6 17181
a2a4_to_a4a6 32657
random_curves_with_12_torsion 34235
random_curves_with_10_torsion 49850
random_curves_with_11_torsion 63660
random_curves_with_rational_X1 114280
random_curves_with_elliptic_X1 245753
get_X1_info 328722
map_X1_points 328722
random_curves_with_general_X1 328722
random_curves_with_m_torsion 507348
torsion_compatible_with_characteristic 507348
rs_to_a4a6_and_tors 1656896
bc_to_a4a6 2349311
bc_to_a4a6_and_tors 2349311

Generated by: LCOV version 1.13