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 - ispower.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 686 736 93.2 %
Date: 2024-05-04 08:07:34 Functions: 37 39 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
gissquare 0
gissquareall 0
polmodispower 56
rfracispower 56
sqrtint0 119
Fp_ispower 553
Up_ispower 637
Zn_ispower 749
handle_pe 777
polispower 840
Qp_ispower 1113
ispolygonal 1386
ispseudoprimepower 1971
U2_issquare 2541
Zn_issquare 2793
polissquareall 3710
Up_issquare 5229
logint0 27136
sqrtint 87589
Zp_issquare 108937
issquare 229260
issquareall 251743
uissquare 274286
split_exponent 505729
Z_ispow2 529597
uisprimepower 642137
ulogintall 820441
isprimepower 840147
isprimepower_i 842118
Z_isanypower_nosmalldiv 865662
logintall 918234
Z_ispowerall 1552287
Z_issquareall 6376059
gisanypower 7000182
Z_isanypower 7001890
Z_isanypower_aux 7001890
ispower 8548893
uissquareall 16775822
squaremod 20411892

Generated by: LCOV version 1.14