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 - char.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23348-5caea72e3) Lines: 784 806 97.3 %
Date: 2018-12-14 05:41:32 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
zncharker 21
charconj0 28
charker0 28
get_chi 35
bnr_coprime 42
chardiv0 42
charpow0 63
charmul0 154
charpow 154
charorder0 168
zncharpow 175
znlog0 280
get_cyc 483
zncharconductor 616
zncharconj 728
znchardecompose 784
znchartokronecker 847
znchartoprimitive 847
not_coprime 1855
charconj 2702
znchar 3059
chareval 3598
chardiv 4018
znchardiv 4025
coprime_tables 5159
cyc2elts_normal 5159
chargalois 5418
Zideallog 6720
znstar 6748
zncharinduce 8225
ncharvecexpo 26978
zv_cyc_minimize 45759
znconreychar 45899
znconreyexp 75047
charker 76475
char_check 77644
zv_cyc_minimal 77819
zv_charorder 78267
coprimes_zv 78309
znstar0 78323
znconreyfromchar 110334
znconreyfromchar_normalized 111468
Zideallog_2k 126231
zncharisodd 177338
zncharcheck 186795
lcmuu 191002
cyc_normalize 191856
char_normalize 193396
char_simplify 194089
charmul 301574
zncharmul 301581
znchar_quad 302960
zncharorder 370986
charorder 372519
znconreyconductor 499422
Zideallog_pk 622545
znconrey_check 682934
chareval_i 704368
znchareval 706174
znconreylog 729197
znconrey_normalized 765604
znconreylog_normalize 775852
checkznstar_i 1548764

Generated by: LCOV version 1.13