LCOV - code coverage report
Current view: top level - home/olly/git/atia-xapian/xapian-core/tests - api_collated.h (source / functions) Hit Total Coverage
Test: Test Coverage for xapian-core r Lines: 62 62 100.0 %
Date: 2011-08-21 Functions: 0 0 -
Branches: 103 104 99.0 %

           Branch data     Line data    Source code
       1                 :            : /* Warning: This file is generated by ./collate-test - do not modify directly! */
       2                 :            : 
       3         [ +  + ]:         14 :     if (!backend) {
       4                 :            :         static const test_desc tests[] = {
       5                 :            :             { "defaultctor1", test_defaultctor1 },
       6                 :            :             { "copyassign1", test_copyassign1 },
       7                 :            :             { "matchspy6", test_matchspy6 },
       8                 :            :             { "trivial1", test_trivial1 },
       9                 :            :             { "getqterms1", test_getqterms1 },
      10                 :            :             { "getqterms2", test_getqterms2 },
      11                 :            :             { "emptyquery2", test_emptyquery2 },
      12                 :            :             { "emptyquery3", test_emptyquery3 },
      13                 :            :             { "querylen1", test_querylen1 },
      14                 :            :             { "querylen2", test_querylen2 },
      15                 :            :             { "queryvalid1", test_queryvalid1 },
      16                 :            :             { "subqcollapse1", test_subqcollapse1 },
      17                 :            :             { "emptyquerypart1", test_emptyquerypart1 },
      18                 :            :             { "singlesubq1", test_singlesubq1 },
      19                 :            :             { "stemlangs1", test_stemlangs1 },
      20                 :            :             { "weight1", test_weight1 },
      21                 :            :             { "nosuchdb1", test_nosuchdb1 },
      22                 :            :             { "addvalue1", test_addvalue1 },
      23                 :            :             { "poscollapse2", test_poscollapse2 },
      24                 :            :             { "uninitdb1", test_uninitdb1 },
      25                 :            :             { "scaleweight3", test_scaleweight3 },
      26                 :            :             { "scaleweight4", test_scaleweight4 },
      27                 :            :             { "rset3", test_rset3 },
      28                 :            :             { "rset4", test_rset4 },
      29                 :            :             { "valuesetmatchdecider1", test_valuesetmatchdecider1 },
      30                 :            :             { "emptymset1", test_emptymset1 },
      31                 :            :             { "nosubdatabases1", test_nosubdatabases1 },
      32                 :            :             { "document1", test_document1 },
      33                 :            :             { "document2", test_document2 },
      34                 :            :             { "valuege3", test_valuege3 },
      35                 :            :             { "queryterms1", test_queryterms1 },
      36                 :            :             { "matchnothing1", test_matchnothing1 },
      37                 :            :             { "nearsubqueries1", test_nearsubqueries1 },
      38                 :            :             { "serialise_document1", test_serialise_document1 },
      39                 :            :             { "serialise_query1", test_serialise_query1 },
      40                 :            :             { "serialise_query2", test_serialise_query2 },
      41                 :            :             { "serialise_query3", test_serialise_query3 },
      42                 :            :             { "serialise_query4", test_serialise_query4 },
      43                 :            :             { "double_register_leak", test_double_register_leak },
      44                 :            :             { "registry1", test_registry1 },
      45                 :            :             { "registry2", test_registry2 },
      46                 :            :             { "registry3", test_registry3 },
      47                 :            :             { "multivaluekeymaker1", test_multivaluekeymaker1 },
      48                 :            :             { "stem1", test_stem1 },
      49                 :            :             { "stem2", test_stem2 },
      50                 :            :             { "stemlangs2", test_stemlangs2 },
      51                 :            :             { "utf8iterator1", test_utf8iterator1 },
      52                 :            :             { "utf8iterator2", test_utf8iterator2 },
      53                 :            :             { "unicode1", test_unicode1 },
      54                 :            :             { "caseconvert1", test_caseconvert1 },
      55                 :            :             { "caseconvert2", test_caseconvert2 },
      56                 :            :             { "utf8convert1", test_utf8convert1 },
      57                 :            :             { "unicodepredicates1", test_unicodepredicates1 },
      58                 :            :             { "valuestats5", test_valuestats5 },
      59                 :            :             { "fixedweightsource2", test_fixedweightsource2 },
      60                 :            :             { 0, 0 }
      61                 :            :         };
      62                 :          1 :         result = max(result, test_driver::run(tests));
      63                 :            :     }
      64         [ +  + ]:         14 :     if (backend) {
      65                 :            :         static const test_desc tests[] = {
      66                 :            :             { "zerodocid1", test_zerodocid1 },
      67                 :            :             { "emptyquery1", test_emptyquery1 },
      68                 :            :             { "simplequery1", test_simplequery1 },
      69                 :            :             { "simplequery2", test_simplequery2 },
      70                 :            :             { "simplequery3", test_simplequery3 },
      71                 :            :             { "wildquery1", test_wildquery1 },
      72                 :            :             { "multidb1", test_multidb1 },
      73                 :            :             { "msetmaxitems1", test_msetmaxitems1 },
      74                 :            :             { "expandweights1", test_expandweights1 },
      75                 :            :             { "expandweights2", test_expandweights2 },
      76                 :            :             { "expandweights3", test_expandweights3 },
      77                 :            :             { "expandweights4", test_expandweights4 },
      78                 :            :             { "expandmaxitems1", test_expandmaxitems1 },
      79                 :            :             { "boolquery1", test_boolquery1 },
      80                 :            :             { "msetfirst1", test_msetfirst1 },
      81                 :            :             { "topercent1", test_topercent1 },
      82                 :            :             { "topercent2", test_topercent2 },
      83                 :            :             { "expandfunctor1", test_expandfunctor1 },
      84                 :            :             { "pctcutoff1", test_pctcutoff1 },
      85                 :            :             { "pctcutoff2", test_pctcutoff2 },
      86                 :            :             { "pctcutoff3", test_pctcutoff3 },
      87                 :            :             { "cutoff1", test_cutoff1 },
      88                 :            :             { "allowqterms1", test_allowqterms1 },
      89                 :            :             { "maxattain1", test_maxattain1 },
      90                 :            :             { "reversebool1", test_reversebool1 },
      91                 :            :             { "reversebool2", test_reversebool2 },
      92                 :            :             { "getmterms1", test_getmterms1 },
      93                 :            :             { "getmterms2", test_getmterms2 },
      94                 :            :             { "poscollapse1", test_poscollapse1 },
      95                 :            :             { "repeatquery1", test_repeatquery1 },
      96                 :            :             { "fetchdocs1", test_fetchdocs1 },
      97                 :            :             { "absentterm1", test_absentterm1 },
      98                 :            :             { "absentterm2", test_absentterm2 },
      99                 :            :             { "rset1", test_rset1 },
     100                 :            :             { "rset2", test_rset2 },
     101                 :            :             { "eliteset1", test_eliteset1 },
     102                 :            :             { "eliteset2", test_eliteset2 },
     103                 :            :             { "eliteset3", test_eliteset3 },
     104                 :            :             { "eliteset4", test_eliteset4 },
     105                 :            :             { "eliteset5", test_eliteset5 },
     106                 :            :             { "termlisttermfreq1", test_termlisttermfreq1 },
     107                 :            :             { "qterminfo1", test_qterminfo1 },
     108                 :            :             { "qterminfo2", test_qterminfo2 },
     109                 :            :             { "msetzeroitems1", test_msetzeroitems1 },
     110                 :            :             { "matches1", test_matches1 },
     111                 :            :             { "wqf1", test_wqf1 },
     112                 :            :             { "qlen1", test_qlen1 },
     113                 :            :             { "termlist1", test_termlist1 },
     114                 :            :             { "termlist2", test_termlist2 },
     115                 :            :             { "termlist3", test_termlist3 },
     116                 :            :             { "termlist4", test_termlist4 },
     117                 :            :             { "puncterms1", test_puncterms1 },
     118                 :            :             { "spaceterms1", test_spaceterms1 },
     119                 :            :             { "xor1", test_xor1 },
     120                 :            :             { "xor2", test_xor2 },
     121                 :            :             { "getdoc1", test_getdoc1 },
     122                 :            :             { "emptyop1", test_emptyop1 },
     123                 :            :             { "checkatleast1", test_checkatleast1 },
     124                 :            :             { "checkatleast2", test_checkatleast2 },
     125                 :            :             { "checkatleast3", test_checkatleast3 },
     126                 :            :             { "allpostlist1", test_allpostlist1 },
     127                 :            :             { "emptyterm1", test_emptyterm1 },
     128                 :            :             { "scaleweight1", test_scaleweight1 },
     129                 :            :             { "scaleweight2", test_scaleweight2 },
     130                 :            :             { "bm25weight1", test_bm25weight1 },
     131                 :            :             { "tradweight1", test_tradweight1 },
     132                 :            :             { "dbstats1", test_dbstats1 },
     133                 :            :             { "alldocspl3", test_alldocspl3 },
     134                 :            :             { "msetfirst2", test_msetfirst2 },
     135                 :            :             { "bm25weight2", test_bm25weight2 },
     136                 :            :             { "tradweight2", test_tradweight2 },
     137                 :            :             { "closedb1", test_closedb1 },
     138                 :            :             { "closedb3", test_closedb3 },
     139                 :            :             { "collapsekey5", test_collapsekey5 },
     140                 :            :             { "termstats", test_termstats },
     141                 :            :             { "msetiterator1", test_msetiterator1 },
     142                 :            :             { "msetiterator2", test_msetiterator2 },
     143                 :            :             { "msetiterator3", test_msetiterator3 },
     144                 :            :             { "esetiterator1", test_esetiterator1 },
     145                 :            :             { "esetiterator2", test_esetiterator2 },
     146                 :            :             { "collapsekey1", test_collapsekey1 },
     147                 :            :             { "collapsekey2", test_collapsekey2 },
     148                 :            :             { "collapsekey3", test_collapsekey3 },
     149                 :            :             { "collapsekey4", test_collapsekey4 },
     150                 :            :             { "allterms1", test_allterms1 },
     151                 :            :             { "allterms2", test_allterms2 },
     152                 :            :             { "allterms3", test_allterms3 },
     153                 :            :             { "allterms4", test_allterms4 },
     154                 :            :             { "allterms5", test_allterms5 },
     155                 :            :             { "allterms6", test_allterms6 },
     156                 :            :             { "specialterms1", test_specialterms1 },
     157                 :            :             { "specialterms2", test_specialterms2 },
     158                 :            :             { "postlist1", test_postlist1 },
     159                 :            :             { "postlist2", test_postlist2 },
     160                 :            :             { "postlist3", test_postlist3 },
     161                 :            :             { "postlist4", test_postlist4 },
     162                 :            :             { "postlist5", test_postlist5 },
     163                 :            :             { "postlist6", test_postlist6 },
     164                 :            :             { "collfreq1", test_collfreq1 },
     165                 :            :             { "sortvalue1", test_sortvalue1 },
     166                 :            :             { "sortrel1", test_sortrel1 },
     167                 :            :             { "matchall1", test_matchall1 },
     168                 :            :             { "matchspy5", test_matchspy5 },
     169                 :            :             { "synonym1", test_synonym1 },
     170                 :            :             { "synonym2", test_synonym2 },
     171                 :            :             { "synonym3", test_synonym3 },
     172                 :            :             { "synonym4", test_synonym4 },
     173                 :            :             { "valuerange1", test_valuerange1 },
     174                 :            :             { "valuege1", test_valuege1 },
     175                 :            :             { "valuege2", test_valuege2 },
     176                 :            :             { "valuele1", test_valuele1 },
     177                 :            :             { "valuege4", test_valuege4 },
     178                 :            :             { "valuerange3", test_valuerange3 },
     179                 :            :             { "valuerange4", test_valuerange4 },
     180                 :            :             { "consistency3", test_consistency3 },
     181                 :            :             { "pctcutoff5", test_pctcutoff5 },
     182                 :            :             { "topercent4", test_topercent4 },
     183                 :            :             { "topercent5", test_topercent5 },
     184                 :            :             { "valueweightsource1", test_valueweightsource1 },
     185                 :            :             { "fixedweightsource1", test_fixedweightsource1 },
     186                 :            :             { "valuestream2", test_valuestream2 },
     187                 :            :             { "valuestream3", test_valuestream3 },
     188                 :            :             { "valuemapsource1", test_valuemapsource1 },
     189                 :            :             { 0, 0 }
     190                 :            :         };
     191                 :         13 :         result = max(result, test_driver::run(tests));
     192                 :            :     }
     193 [ +  + ][ +  + ]:         14 :     if (backend&&!inmemory&&!remote) {
                 [ +  + ]
     194                 :            :         static const test_desc tests[] = {
     195                 :            :             { "stubdb1", test_stubdb1 },
     196                 :            :             { "stubdb2", test_stubdb2 },
     197                 :            :             { "stubdb3", test_stubdb3 },
     198                 :            :             { "stubdb4", test_stubdb4 },
     199                 :            :             { "stubdb5", test_stubdb5 },
     200                 :            :             { 0, 0 }
     201                 :            :         };
     202                 :          6 :         result = max(result, test_driver::run(tests));
     203                 :            :     }
     204 [ +  + ][ +  + ]:         14 :     if (backend&&!multi) {
     205                 :            :         static const test_desc tests[] = {
     206                 :            :             { "multidb2", test_multidb2 },
     207                 :            :             { "multidb3", test_multidb3 },
     208                 :            :             { "multidb4", test_multidb4 },
     209                 :            :             { "multidb5", test_multidb5 },
     210                 :            :             { "rsetmultidb1", test_rsetmultidb1 },
     211                 :            :             { "rsetmultidb3", test_rsetmultidb3 },
     212                 :            :             { "uuid1", test_uuid1 },
     213                 :            :             { "rsetmultidb2", test_rsetmultidb2 },
     214                 :            :             { "multiexpand1", test_multiexpand1 },
     215                 :            :             { "valuestream1", test_valuestream1 },
     216                 :            :             { "valuemapsource2", test_valuemapsource2 },
     217                 :            :             { "decvalwtsource4", test_decvalwtsource4 },
     218                 :            :             { 0, 0 }
     219                 :            :         };
     220                 :         10 :         result = max(result, test_driver::run(tests));
     221                 :            :     }
     222 [ +  + ][ +  + ]:         14 :     if (backend&&!remote) {
     223                 :            :         static const test_desc tests[] = {
     224                 :            :             { "matchdecider1", test_matchdecider1 },
     225                 :            :             { "matchdecider2", test_matchdecider2 },
     226                 :            :             { "matchdecider3", test_matchdecider3 },
     227                 :            :             { "consistency1", test_consistency1 },
     228                 :            :             { "userweight1", test_userweight1 },
     229                 :            :             { "valuesetmatchdecider2", test_valuesetmatchdecider2 },
     230                 :            :             { "matchspy1", test_matchspy1 },
     231                 :            :             { "externalsource4", test_externalsource4 },
     232                 :            :             { "sortfunctor1", test_sortfunctor1 },
     233                 :            :             { "changesorter1", test_changesorter1 },
     234                 :            :             { "sortfunctorempty1", test_sortfunctorempty1 },
     235                 :            :             { "oldsortfunctor1", test_oldsortfunctor1 },
     236                 :            :             { "oldchangesorter1", test_oldchangesorter1 },
     237                 :            :             { "oldsortfunctorempty1", test_oldsortfunctorempty1 },
     238                 :            :             { 0, 0 }
     239                 :            :         };
     240                 :          7 :         result = max(result, test_driver::run(tests));
     241                 :            :     }
     242 [ +  + ][ +  + ]:         14 :     if (backend&&!remote&&!multi) {
                 [ +  + ]
     243                 :            :         static const test_desc tests[] = {
     244                 :            :             { "pctcutoff4", test_pctcutoff4 },
     245                 :            :             { "externalsource1", test_externalsource1 },
     246                 :            :             { "externalsource3", test_externalsource3 },
     247                 :            :             { "changemaxweightsource1", test_changemaxweightsource1 },
     248                 :            :             { "emptyvalwtsource1", test_emptyvalwtsource1 },
     249                 :            :             { 0, 0 }
     250                 :            :         };
     251                 :          4 :         result = max(result, test_driver::run(tests));
     252                 :            :     }
     253 [ +  + ][ +  + ]:         14 :     if (brass||chert||flint) {
                 [ +  + ]
     254                 :            :         static const test_desc tests[] = {
     255                 :            :             { "lockfileumask1", test_lockfileumask1 },
     256                 :            :             { "lockfilefd0or1", test_lockfilefd0or1 },
     257                 :            :             { "failedreplace1", test_failedreplace1 },
     258                 :            :             { "failedreplace2", test_failedreplace2 },
     259                 :            :             { "compactmerge1", test_compactmerge1 },
     260                 :            :             { "compactstub1", test_compactstub1 },
     261                 :            :             { "compactstub2", test_compactstub2 },
     262                 :            :             { "compactstub3", test_compactstub3 },
     263                 :            :             { "compactstub4", test_compactstub4 },
     264                 :            :             { "crashrecovery1", test_crashrecovery1 },
     265                 :            :             { "lazytablebug1", test_lazytablebug1 },
     266                 :            :             { "cursordelbug1", test_cursordelbug1 },
     267                 :            :             { 0, 0 }
     268                 :            :         };
     269                 :          3 :         result = max(result, test_driver::run(tests));
     270                 :            :     }
     271         [ +  + ]:         14 :     if (flint) {
     272                 :            :         static const test_desc tests[] = {
     273                 :            :             { "flintdatabaseopeningerror1", test_flintdatabaseopeningerror1 },
     274                 :            :             { "flintdatabaseformaterror1", test_flintdatabaseformaterror1 },
     275                 :            :             { "flintdatabaseformaterror2", test_flintdatabaseformaterror2 },
     276                 :            :             { "flintdatabaseformaterror3", test_flintdatabaseformaterror3 },
     277                 :            :             { "flintbackwardcompat1", test_flintbackwardcompat1 },
     278                 :            :             { "flintbackwardcompat2", test_flintbackwardcompat2 },
     279                 :            :             { "flintdatabaseopen1", test_flintdatabaseopen1 },
     280                 :            :             { 0, 0 }
     281                 :            :         };
     282                 :          1 :         result = max(result, test_driver::run(tests));
     283                 :            :     }
     284         [ +  + ]:         14 :     if (generated) {
     285                 :            :         static const test_desc tests[] = {
     286                 :            :             { "msize1", test_msize1 },
     287                 :            :             { "msize2", test_msize2 },
     288                 :            :             { "xordecay1", test_xordecay1 },
     289                 :            :             { "ordecay1", test_ordecay1 },
     290                 :            :             { "ordecay2", test_ordecay2 },
     291                 :            :             { "orcheck1", test_orcheck1 },
     292                 :            :             { "compactnorenumber1", test_compactnorenumber1 },
     293                 :            :             { "compactmultichunks1", test_compactmultichunks1 },
     294                 :            :             { "compactmissingtables1", test_compactmissingtables1 },
     295                 :            :             { "valuerange5", test_valuerange5 },
     296                 :            :             { 0, 0 }
     297                 :            :         };
     298                 :          3 :         result = max(result, test_driver::run(tests));
     299                 :            :     }
     300         [ +  + ]:         14 :     if (inmemory) {
     301                 :            :         static const test_desc tests[] = {
     302                 :            :             { "stubdb6", test_stubdb6 },
     303                 :            :             { 0, 0 }
     304                 :            :         };
     305                 :          1 :         result = max(result, test_driver::run(tests));
     306                 :            :     }
     307         [ +  + ]:         14 :     if (metadata) {
     308                 :            :         static const test_desc tests[] = {
     309                 :            :             { "metadata3", test_metadata3 },
     310                 :            :             { 0, 0 }
     311                 :            :         };
     312                 :         10 :         result = max(result, test_driver::run(tests));
     313                 :            :     }
     314 [ +  + ][ +  + ]:         14 :     if (metadata&&!inmemory) {
     315                 :            :         static const test_desc tests[] = {
     316                 :            :             { "metadata2", test_metadata2 },
     317                 :            :             { "metadata4", test_metadata4 },
     318                 :            :             { 0, 0 }
     319                 :            :         };
     320                 :          9 :         result = max(result, test_driver::run(tests));
     321                 :            :     }
     322         [ +  + ]:         14 :     if (positional) {
     323                 :            :         static const test_desc tests[] = {
     324                 :            :             { "phrase3", test_phrase3 },
     325                 :            :             { "near1", test_near1 },
     326                 :            :             { "near2", test_near2 },
     327                 :            :             { "phrase1", test_phrase1 },
     328                 :            :             { "phrase2", test_phrase2 },
     329                 :            :             { "poslist1", test_poslist1 },
     330                 :            :             { "positfromtermit1", test_positfromtermit1 },
     331                 :            :             { 0, 0 }
     332                 :            :         };
     333                 :         13 :         result = max(result, test_driver::run(tests));
     334                 :            :     }
     335 [ +  + ][ +  + ]:         14 :     if (positional&&writable) {
     336                 :            :         static const test_desc tests[] = {
     337                 :            :             { "poslist2", test_poslist2 },
     338                 :            :             { "poslist3", test_poslist3 },
     339                 :            :             { "poslistupdate1", test_poslistupdate1 },
     340                 :            :             { 0, 0 }
     341                 :            :         };
     342                 :         10 :         result = max(result, test_driver::run(tests));
     343                 :            :     }
     344         [ +  + ]:         14 :     if (remote) {
     345                 :            :         static const test_desc tests[] = {
     346                 :            :             { "matchdecider4", test_matchdecider4 },
     347                 :            :             { "keepalive1", test_keepalive1 },
     348                 :            :             { "netstats1", test_netstats1 },
     349                 :            :             { "topercent3", test_topercent3 },
     350                 :            :             { "externalsource2", test_externalsource2 },
     351                 :            :             { "sortfunctorremote1", test_sortfunctorremote1 },
     352                 :            :             { 0, 0 }
     353                 :            :         };
     354                 :          6 :         result = max(result, test_driver::run(tests));
     355                 :            :     }
     356         [ +  + ]:         14 :     if (replicas) {
     357                 :            :         static const test_desc tests[] = {
     358                 :            :             { "replicate1", test_replicate1 },
     359                 :            :             { "replicate2", test_replicate2 },
     360                 :            :             { "replicate3", test_replicate3 },
     361                 :            :             { "replicate4", test_replicate4 },
     362                 :            :             { "replicate5", test_replicate5 },
     363                 :            :             { 0, 0 }
     364                 :            :         };
     365                 :          3 :         result = max(result, test_driver::run(tests));
     366                 :            :     }
     367         [ +  + ]:         14 :     if (spelling) {
     368                 :            :         static const test_desc tests[] = {
     369                 :            :             { "spell1", test_spell1 },
     370                 :            :             { "spell2", test_spell2 },
     371                 :            :             { "spell3", test_spell3 },
     372                 :            :             { "spell4", test_spell4 },
     373                 :            :             { "spell5", test_spell5 },
     374                 :            :             { "spell6", test_spell6 },
     375                 :            :             { "spell7", test_spell7 },
     376                 :            :             { 0, 0 }
     377                 :            :         };
     378                 :          3 :         result = max(result, test_driver::run(tests));
     379                 :            :     }
     380 [ +  + ][ +  + ]:         14 :     if (spelling||remote) {
     381                 :            :         static const test_desc tests[] = {
     382                 :            :             { "spell0", test_spell0 },
     383                 :            :             { 0, 0 }
     384                 :            :         };
     385                 :          9 :         result = max(result, test_driver::run(tests));
     386                 :            :     }
     387         [ +  + ]:         14 :     if (synonyms) {
     388                 :            :         static const test_desc tests[] = {
     389                 :            :             { "qpsynonympartial1", test_qpsynonympartial1 },
     390                 :            :             { 0, 0 }
     391                 :            :         };
     392                 :          3 :         result = max(result, test_driver::run(tests));
     393                 :            :     }
     394         [ +  + ]:         14 :     if (transactions) {
     395                 :            :         static const test_desc tests[] = {
     396                 :            :             { "badtransaction1", test_badtransaction1 },
     397                 :            :             { "committransaction1", test_committransaction1 },
     398                 :            :             { "canceltransaction1", test_canceltransaction1 },
     399                 :            :             { "canceltransaction2", test_canceltransaction2 },
     400                 :            :             { 0, 0 }
     401                 :            :         };
     402                 :          9 :         result = max(result, test_driver::run(tests));
     403                 :            :     }
     404 [ +  + ][ +  + ]:         14 :     if (transactions&&!remote) {
     405                 :            :         static const test_desc tests[] = {
     406                 :            :             { "closedb5", test_closedb5 },
     407                 :            :             { 0, 0 }
     408                 :            :         };
     409                 :          3 :         result = max(result, test_driver::run(tests));
     410                 :            :     }
     411 [ +  + ][ +  + ]:         14 :     if (transactions&&valuestats) {
     412                 :            :         static const test_desc tests[] = {
     413                 :            :             { "valuestats2", test_valuestats2 },
     414                 :            :             { "valuestats4", test_valuestats4 },
     415                 :            :             { 0, 0 }
     416                 :            :         };
     417                 :          6 :         result = max(result, test_driver::run(tests));
     418                 :            :     }
     419         [ +  + ]:         14 :     if (valuestats) {
     420                 :            :         static const test_desc tests[] = {
     421                 :            :             { "valueweightsource2", test_valueweightsource2 },
     422                 :            :             { "valuestats3", test_valuestats3 },
     423                 :            :             { 0, 0 }
     424                 :            :         };
     425                 :          9 :         result = max(result, test_driver::run(tests));
     426                 :            :     }
     427 [ +  + ][ +  + ]:         14 :     if (valuestats&&!multi) {
     428                 :            :         static const test_desc tests[] = {
     429                 :            :             { "valueweightsource3", test_valueweightsource3 },
     430                 :            :             { 0, 0 }
     431                 :            :         };
     432                 :          7 :         result = max(result, test_driver::run(tests));
     433                 :            :     }
     434         [ +  + ]:         14 :     if (writable) {
     435                 :            :         static const test_desc tests[] = {
     436                 :            :             { "alldocspl1", test_alldocspl1 },
     437                 :            :             { "alldocspl2", test_alldocspl2 },
     438                 :            :             { "totaldoclen1", test_totaldoclen1 },
     439                 :            :             { "modifiedpostlist1", test_modifiedpostlist1 },
     440                 :            :             { "doclenaftercommit1", test_doclenaftercommit1 },
     441                 :            :             { "valuesaftercommit1", test_valuesaftercommit1 },
     442                 :            :             { "replacedoc8", test_replacedoc8 },
     443                 :            :             { "matchspy2", test_matchspy2 },
     444                 :            :             { "matchspy4", test_matchspy4 },
     445                 :            :             { "metadata1", test_metadata1 },
     446                 :            :             { "metadata5", test_metadata5 },
     447                 :            :             { "valuerange2", test_valuerange2 },
     448                 :            :             { "modtermwdf1", test_modtermwdf1 },
     449                 :            :             { "bigoaddvalue1", test_bigoaddvalue1 },
     450                 :            :             { "serialise_document2", test_serialise_document2 },
     451                 :            :             { "decvalwtsource1", test_decvalwtsource1 },
     452                 :            :             { "decvalwtsource2", test_decvalwtsource2 },
     453                 :            :             { "decvalwtsource3", test_decvalwtsource3 },
     454                 :            :             { "decvalwtsource5", test_decvalwtsource5 },
     455                 :            :             { "adddoc1", test_adddoc1 },
     456                 :            :             { "adddoc2", test_adddoc2 },
     457                 :            :             { "adddoc3", test_adddoc3 },
     458                 :            :             { "adddoc4", test_adddoc4 },
     459                 :            :             { "adddoc5", test_adddoc5 },
     460                 :            :             { "adddoc6", test_adddoc6 },
     461                 :            :             { "implicitendsession1", test_implicitendsession1 },
     462                 :            :             { "databaseassign1", test_databaseassign1 },
     463                 :            :             { "deldoc1", test_deldoc1 },
     464                 :            :             { "deldoc2", test_deldoc2 },
     465                 :            :             { "deldoc3", test_deldoc3 },
     466                 :            :             { "deldoc4", test_deldoc4 },
     467                 :            :             { "deldoc5", test_deldoc5 },
     468                 :            :             { "deldoc6", test_deldoc6 },
     469                 :            :             { "replacedoc1", test_replacedoc1 },
     470                 :            :             { "replacedoc2", test_replacedoc2 },
     471                 :            :             { "replacedoc3", test_replacedoc3 },
     472                 :            :             { "replacedoc4", test_replacedoc4 },
     473                 :            :             { "replacedoc5", test_replacedoc5 },
     474                 :            :             { "replacedoc6", test_replacedoc6 },
     475                 :            :             { "uniqueterm1", test_uniqueterm1 },
     476                 :            :             { "allpostlist2", test_allpostlist2 },
     477                 :            :             { "emptyterm2", test_emptyterm2 },
     478                 :            :             { "phraseorneartoand1", test_phraseorneartoand1 },
     479                 :            :             { "longpositionlist1", test_longpositionlist1 },
     480                 :            :             { "consistency2", test_consistency2 },
     481                 :            :             { "nomoredocids1", test_nomoredocids1 },
     482                 :            :             { "termtoolong1", test_termtoolong1 },
     483                 :            :             { "postlist7", test_postlist7 },
     484                 :            :             { "modifyvalues1", test_modifyvalues1 },
     485                 :            :             { 0, 0 }
     486                 :            :         };
     487                 :         10 :         result = max(result, test_driver::run(tests));
     488                 :            :     }
     489 [ +  + ][ +  + ]:         14 :     if (writable&&!inmemory) {
     490                 :            :         static const test_desc tests[] = {
     491                 :            :             { "qpmemoryleak1", test_qpmemoryleak1 },
     492                 :            :             { "closedb4", test_closedb4 },
     493                 :            :             { 0, 0 }
     494                 :            :         };
     495                 :          9 :         result = max(result, test_driver::run(tests));
     496                 :            :     }
     497 [ +  + ][ +  + ]:         14 :     if (writable&&!inmemory&&!remote) {
                 [ +  + ]
     498                 :            :         static const test_desc tests[] = {
     499                 :            :             { "replacedoc7", test_replacedoc7 },
     500                 :            :             { "databasemodified1", test_databasemodified1 },
     501                 :            :             { "closedb2", test_closedb2 },
     502                 :            :             { 0, 0 }
     503                 :            :         };
     504                 :          3 :         result = max(result, test_driver::run(tests));
     505                 :            :     }
     506 [ +  + ][ +  + ]:         14 :     if (writable&&!remote) {
     507                 :            :         static const test_desc tests[] = {
     508                 :            :             { "sortfunctor2", test_sortfunctor2 },
     509                 :            :             { "oldsortfunctor2", test_oldsortfunctor2 },
     510                 :            :             { 0, 0 }
     511                 :            :         };
     512                 :          4 :         result = max(result, test_driver::run(tests));
     513                 :            :     }
     514 [ +  + ][ +  - ]:         14 :     if (writable&&metadata) {
     515                 :            :         static const test_desc tests[] = {
     516                 :            :             { "writeread1", test_writeread1 },
     517                 :            :             { 0, 0 }
     518                 :            :         };
     519                 :         10 :         result = max(result, test_driver::run(tests));
     520                 :            :     }
     521 [ +  + ][ +  + ]:         14 :     if (writable&&synonyms) {
     522                 :            :         static const test_desc tests[] = {
     523                 :            :             { "synonymitor1", test_synonymitor1 },
     524                 :            :             { 0, 0 }
     525                 :            :         };
     526                 :          3 :         result = max(result, test_driver::run(tests));
     527                 :            :     }
     528 [ +  + ][ +  + ]:         14 :     if (writable&&valuestats) {
     529                 :            :         static const test_desc tests[] = {
     530                 :            :             { "valuestats1", test_valuestats1 },
     531                 :            :             { "valueweightsource5", test_valueweightsource5 },
     532                 :            :             { 0, 0 }
     533                 :            :         };
     534                 :          7 :         result = max(result, test_driver::run(tests));
     535                 :            :     }

Generated by: LCOV version 1.8