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 - perm.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19191-d7615ef) Lines: 540 573 94.2 %
Date: 2016-07-23 07:10:28 Functions: 62 64 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
abelian_group 154
cyc_pow 1295
cyc_pow_perm 7252
cyclicgroup 3941
dicyclicgroup 77
group_abelianHNF 329
group_abelianSNF 280
group_domain 4900
group_elts 56896
group_export 28
group_export_GAP 14
group_export_MAGMA 14
group_isA4S4 3626
group_isabelian 854
group_leftcoset 127575
group_order 288085
group_perm_normalize 57407
group_quotient 3808
group_rightcoset 57407
group_set 50120
group_subgroup_isnormal 56
group_subgroups 4396
groupelts_abelian_group 0
groupelts_center 693
groupelts_set 10668
grp_get_gen 388339
grp_get_ord 666729
liftlistsubgroups 42511
liftsubgroup 26208
perm_commute 536718
perm_cycles 10675
perm_generate 6867
perm_mul_inplace2 7
perm_order 55230
perm_pow 7252
perm_relorder 111286
perm_to_GAP 21
quo_get_coset 10024
quo_get_gen 66241
quotient_group 3801
quotient_perm 10024
quotient_subgroup_lift 26208
sgcmp 1267
subgroups_tableset 14
tableset_find_index 63
trivialgroup 26978
trivialsubgroups 26978
vec_insert 75642
vec_is1to1 2226
vec_isconst 2772
vecperm_orbits 560
vecperm_orbits_i 66465
vecsmall_duplicate 12600
vecsmall_duplicate_sorted 0
vecsmall_indexsort 2337562
vecsmall_indexsortspec 18419106
vecsmall_sort 4667810
vecsmall_sortspec 1406158
vecsmall_uniq 1078
vecsmall_uniq_sorted 1078
vecvecsmall_indexsort 21
vecvecsmall_search 13935173
vecvecsmall_sort 114912
vecvecsmall_sort_uniq 322

Generated by: LCOV version 1.11