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 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.10.0 lcov report (development 21350-3349c1d) Lines: 776 798 97.2 %
Date: 2017-11-21 06:21:18 Functions: 63 63 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
zncharconductor 21
zncharker 21
charconj0 28
charker0 28
get_chi 35
bnr_coprime 42
chardiv0 42
charpow0 63
charpow 105
zncharpow 126
znchartoprimitive 140
charmul0 154
zncharconj 154
charorder0 168
znlog0 280
get_cyc 483
znchardecompose 784
znchartokronecker 819
not_coprime 1855
charconj 2212
znchar 2835
chareval 3598
znstar 4368
coprime_tables 4872
cyc2elts_normal 4872
chargalois 4886
chardiv 6510
znchardiv 6517
Zideallog 6720
zncharinduce 9786
zv_cyc_minimize 27965
znconreychar 28098
Zideallog_2k 28357
ncharvecexpo 28574
charker 39886
char_check 40229
znconreyexp 47852
znstar0 49672
coprimes_zv 58191
zv_cyc_minimal 77539
zv_charorder 77665
znconreyfromchar 108521
znconreyfromchar_normalized 108612
cyc_normalize 152761
char_normalize 154238
char_simplify 154959
zncharisodd 172606
zncharcheck 183624
lcmuu 189742
Zideallog_pk 213353
chareval_i 237657
znchareval 239463
znconreylog 252469
znconrey_normalized 290451
znconreylog_normalize 294077
charmul 301133
zncharmul 301140
znchar_quad 302659
zncharorder 370013
charorder 371546
znconreyconductor 471891
znconrey_check 653653
checkznstar_i 972384

Generated by: LCOV version 1.11