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 - quad.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 690 719 96.0 %
Date: 2024-03-18 08:03:28 Functions: 57 60 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfi_log 0
unegquadclassnoF 0
uposquadclassnoF 0
prod_fm 7
quadunit_uv 7
quadclassnoF_fact 48
classno2 49
hclassno 49
quadregulator 49
quadunit_mod 98
quadunit_uvmod 98
quadunitindex_i 98
quadunitindex 112
split_lcm 182
update_g1 182
ok_q 301
relative_order 350
qfbclassno0 462
get_forms 651
two_rank 651
quadclassnoF_u 652
quadclassnoF 700
Shanks_order 749
classno 798
geomsum 973
geomsumu 973
fa_isfundamental 1407
fa_quaddisc 2072
quaddisc 2926
find_order 5397
equal1 5684
uquadclassnoF_fact 7011
usumpow 9147
sqr_primeform 12334
uposisfundamental 16743
Z_isfundamental 19712
isfundamental 20552
ui_pow 21378
sisfundamental 25109
quadunitindex_ii 26544
quadclassnoEuler_fact 26592
unegisfundamental 29372
ui_equal1 38612
hclassnoF_fact 60720
hclassno6_large 60723
quadunitnorm 69027
quadunit_uv_basecase 69034
quadunit 69048
quadunit0 69048
quadunit_q 69118
hclassno6 132477
uhclassnoF_fact 160450
qfi_Shanks 706890
Zn_quad_roots 2551766
qfi_order 3297427
qfi_comp 6928973
qfb_equal1 9010275
qfi_pow 10071260
update_f 21199714
update_fm 21360738

Generated by: LCOV version 1.14