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 23008-54b2e2f01) Lines: 784 806 97.3 %
Date: 2018-09-20 05:37:46 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
charpow 147
charmul0 154
charorder0 168
zncharpow 168
znlog0 280
get_cyc 483
zncharconductor 616
zncharconj 651
znchardecompose 784
znchartokronecker 847
znchartoprimitive 847
not_coprime 1855
charconj 2625
znchar 3150
chareval 3598
chardiv 4270
znchardiv 4277
coprime_tables 5152
cyc2elts_normal 5152
chargalois 5411
znstar 6629
Zideallog 6720
zncharinduce 8701
ncharvecexpo 26971
zv_cyc_minimize 28357
znconreychar 28497
charker 39816
char_check 40985
znconreyexp 50379
znstar0 55797
coprimes_zv 60704
zv_cyc_minimal 77721
zv_charorder 77847
znconreyfromchar 110334
znconreyfromchar_normalized 111468
Zideallog_2k 125734
cyc_normalize 155197
char_normalize 156737
char_simplify 157430
zncharisodd 177282
zncharcheck 187215
lcmuu 190162
charmul 302022
zncharmul 302029
znchar_quad 303422
Zideallog_pk 308763
zncharorder 371504
charorder 373037
chareval_i 454300
znchareval 456106
znconreylog 479017
znconreyconductor 486360
znconrey_normalized 498127
znconreylog_normalize 508375
znconrey_check 670292
checkznstar_i 1244348

Generated by: LCOV version 1.13