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.10.0 lcov report (development 21741-70cf009) Lines: 653 701 93.2 %
Date: 2018-01-21 06:18:30 Functions: 75 79 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Z_to_perm 5915
abelian_group 189
conjclasses_repr 4109
cyc_pow 1883
cyc_pow_perm 0
cyclicgroup 6979
dicyclicgroup 945
galois_elts_sorted 3738
group_abelianHNF 329
group_abelianSNF 280
group_domain 6545
group_elts 70609
group_export 28
group_export_GAP 14
group_export_MAGMA 14
group_isA4S4 4914
group_isabelian 917
group_leftcoset 136353
group_order 318024
group_perm_normalize 60438
group_quotient 5096
group_rightcoset 60438
group_set 58114
group_subgroup_isnormal 56
group_subgroups 6146
group_to_cc 4123
groupelts_abelian_group 0
groupelts_center 693
groupelts_conjclasses 4109
groupelts_exponent 0
groupelts_set 13146
grp_get_gen 431956
grp_get_ord 737289
isperm 1890
liftlistsubgroups 44870
liftsubgroup 29456
numtoperm 5915
perm_commute 536732
perm_cycles 4018
perm_generate 8057
perm_mul_inplace2 7
perm_order 382620
perm_pow 8302
perm_relorder 122654
perm_sign 162661
perm_to_GAP 21
perm_to_Z 1680
perm_to_Z_inplace 1701
permorder 91
permsign 98
permtonum 1708
quo_get_coset 12173
quo_get_gen 76174
quotient_group 5089
quotient_perm 12173
quotient_subgroup_lift 29456
sgcmp 16646
subgroups_tableset 462
tableset_find_index 1897
trivialgroup 30688
trivialsubgroups 30688
vec_insert 75642
vec_is1to1 2660
vec_isconst 5607
vecperm_orbits 805
vecperm_orbits_i 550102
vecsmall_duplicate 13690
vecsmall_duplicate_sorted 0
vecsmall_indexsort 2846072
vecsmall_indexsortspec 20903088
vecsmall_sort 18126772
vecsmall_sortspec 97898246
vecsmall_uniq 1372
vecsmall_uniq_sorted 1442
vecvecsmall_indexsort 21
vecvecsmall_max 133
vecvecsmall_search 13935600
vecvecsmall_sort 120960
vecvecsmall_sort_uniq 322

Generated by: LCOV version 1.11