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.1 lcov report (development 28676-df828f1c94) Lines: 689 718 96.0 %
Date: 2023-08-26 07:54:43 Functions: 57 60 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Shanks_order 749
Z_isfundamental 19642
Zn_quad_roots 2551765
classno 798
classno2 49
equal1 5684
fa_isfundamental 1407
fa_quaddisc 2072
find_order 5397
geomsum 973
geomsumu 973
get_forms 651
hclassno 49
hclassno6 132475
hclassno6_large 60728
hclassnoF_fact 60718
isfundamental 20482
ok_q 301
prod_fm 7
qfb_equal1 9010275
qfbclassno0 462
qfi_Shanks 706890
qfi_comp 6928973
qfi_log 0
qfi_order 3297427
qfi_pow 10071260
quadclassnoEuler_fact 26585
quadclassnoF 700
quadclassnoF_fact 48
quadclassnoF_u 652
quaddisc 2926
quadregulator 49
quadunit 69048
quadunit0 69048
quadunit_mod 91
quadunit_q 69111
quadunit_uv 7
quadunit_uv_basecase 69034
quadunit_uvmod 91
quadunitindex 105
quadunitindex_i 91
quadunitindex_ii 26537
quadunitnorm 69027
relative_order 350
sisfundamental 25053
split_lcm 182
sqr_primeform 12334
two_rank 651
uhclassnoF_fact 160441
ui_equal1 38605
ui_pow 21378
unegisfundamental 29337
unegquadclassnoF 0
update_f 21199714
update_fm 21360738
update_g1 182
uposisfundamental 16652
uposquadclassnoF 0
uquadclassnoF_fact 7011
usumpow 9146

Generated by: LCOV version 1.14