OpenCoverage

SQLite Code Coverage

Function Tree

Page:<>1
McCabe - Cyclomatic Complexity: 655
23
McCabe - Cyclomatic Complexity: 10
4
McCabe - Cyclomatic Complexity: 7
5
McCabe - Cyclomatic Complexity: 6
6
McCabe - Cyclomatic Complexity: 5
...10
McCabe - Cyclomatic Complexity: 2
...17
McCabe - Cyclomatic Complexity: 1
FunctionCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexityâ–¾
sqlite3AffinityType
Name: sqlite3AffinityType
Prototype: char sqlite3AffinityType(const char *zIn, Column *pCol)
Coverage:  83.051% (49/59)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 1178-1243
 83.051% (49/59)
4617
fillInUnixFile
Name: fillInUnixFile
Prototype: static int fillInUnixFile( sqlite3_vfs *pVfs, int h, sqlite3_file *pId, const char *zFilename, int ctrlFlags )
Coverage:  43.750% (28/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 5472-5642
 43.750% (28/64)
21117
exprNodeIsConstant
Name: exprNodeIsConstant
Prototype: static int exprNodeIsConstant(Walker *pWalker, Expr *pExpr)
Coverage:  88.636% (39/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 1821-1887
 88.636% (39/44)
2217
btreeInitPage
Name: btreeInitPage
Prototype: static int btreeInitPage(MemPage *pPage)
Coverage:  48.980% (24/49)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 1835-1967
 48.980% (24/49)
8917
accessPayload
Name: accessPayload
Prototype: static int accessPayload( BtCursor *pCur, u32 offset, u32 amt, unsigned char *pBuf, int eOp )
Coverage:  94.915% (56/59)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 4641-4826
 94.915% (56/59)
10117
withExpand
Name: withExpand
Prototype: static int withExpand( Walker *pWalker, struct SrcList_item *pFrom )
Coverage: 100.000% (58/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 4608-4721
100.000% (58/58)
9216
whereScanNext
Name: whereScanNext
Prototype: static WhereTerm *whereScanNext(WhereScan *pScan)
Coverage:  98.529% (67/68)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 231-311
 98.529% (67/68)
6516
walBeginShmUnreliable
Name: walBeginShmUnreliable
Prototype: static int walBeginShmUnreliable(Wal *pWal, int *pChanged)
Coverage:  79.167% (38/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 2245-2388
 79.167% (38/48)
7516
unixFullPathname
Name: unixFullPathname
Prototype: static int unixFullPathname( sqlite3_vfs *pVfs, const char *zPath, int nOut, char *zOut )
Coverage:  89.091% (49/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 6269-6350
 89.091% (49/55)
5816
unixFileControl
Name: unixFileControl
Prototype: static int unixFileControl(sqlite3_file *id, int op, void *pArg)
Coverage:  88.095% (37/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 3917-4029
 88.095% (37/42)
4016
sqlite3BitvecBuiltinTest
Name: sqlite3BitvecBuiltinTest
Prototype: int sqlite3BitvecBuiltinTest(int sz, int *aOp)
Coverage:  97.368% (37/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/bitvec.c
Lines: 337-410
 97.368% (37/38)
4116
pager_end_transaction
Name: pager_end_transaction
Prototype: static int pager_end_transaction(Pager *pPager, int hasMaster, int bCommit)
Coverage:  97.143% (68/70)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 2022-2151
 97.143% (68/70)
7416
isLikeOrGlob
Name: isLikeOrGlob
Prototype: static int isLikeOrGlob( Parse *pParse, Expr *pExpr, Expr **ppPrefix, int *pisComplete, int *pnoCase )
Coverage:  93.750% (75/80)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/whereexpr.c
Lines: 190-320
 93.750% (75/80)
6716
freeSpace
Name: freeSpace
Prototype: static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize)
Coverage:  72.222% (39/54)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 1671-1763
 72.222% (39/54)
7216
fillInCell
Name: fillInCell
Prototype: static int fillInCell( MemPage *pPage, unsigned char *pCell, const BtreePayload *pX, int *pnSize )
Coverage:  94.643% (53/56)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 6341-6521
 94.643% (53/56)
10516
defragmentPage
Name: defragmentPage
Prototype: static int defragmentPage(MemPage *pPage, int nMaxFrag)
Coverage:  84.615% (44/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 1379-1504
 84.615% (44/52)
12016
btreeCreateTable
Name: btreeCreateTable
Prototype: static int btreeCreateTable(Btree *p, int *piTable, int createTabFlags)
Coverage:  60.377% (32/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 8765-8907
 60.377% (32/53)
8916
windowCodeRowExprStep
Name: windowCodeRowExprStep
Prototype: static void windowCodeRowExprStep( Parse *pParse, Select *p, WhereInfo *pWInfo, int regGosub, int addrGosub )
Coverage: 100.000% (53/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 1579-1757
100.000% (53/53)
11515
windowAggStep
Name: windowAggStep
Prototype: static void windowAggStep( Parse *pParse, Window *pMWin, int csr, int bInverse, int reg, int regPartSize )
Coverage: 100.000% (51/51)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 1111-1203
100.000% (51/51)
7215
whereLoopOutputAdjust
Name: whereLoopOutputAdjust
Prototype: static void whereLoopOutputAdjust( WhereClause *pWC, WhereLoop *pLoop, LogEst nRow )
Coverage: 100.000% (50/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 2259-2303
100.000% (50/50)
2715
whereLoopAddVirtualOne
Name: whereLoopAddVirtualOne
Prototype: static int whereLoopAddVirtualOne( WhereLoopBuilder *pBuilder, Bitmask mPrereq, Bitmask mUsable, u16 mExclude, sqlite3_index_info *pIdxInfo, u16 mNoOmit, int *pbIn )
Coverage:  86.207% (50/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 3097-3232
 86.207% (50/58)
9515
vdbeRecordCompareInt
Name: vdbeRecordCompareInt
Prototype: static int vdbeRecordCompareInt( int nKey1, const void *pKey1, UnpackedRecord *pPKey2 )
Coverage: 100.000% (32/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 4331-4417
100.000% (32/32)
4515
sqlite3UtfSelfTest
Name: sqlite3UtfSelfTest
Prototype: void sqlite3UtfSelfTest(void)
Coverage: 100.000% (56/56)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/utf.c
Lines: 485-530
100.000% (56/56)
5815
quoteFunc
Name: quoteFunc
Prototype: static void quoteFunc(sqlite3_context *context, int argc, sqlite3_value **argv)
Coverage:  89.189% (33/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1004-1074
 89.189% (33/37)
5715
isAuxiliaryVtabOperator
Name: isAuxiliaryVtabOperator
Prototype: static int isAuxiliaryVtabOperator( sqlite3 *db, Expr *pExpr, unsigned char *peOp2, Expr **ppLeft, Expr **ppRight )
Coverage:  81.356% (48/59)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/whereexpr.c
Lines: 351-445
 81.356% (48/59)
5215
incrVacuumStep
Name: incrVacuumStep
Prototype: static int incrVacuumStep(BtShared *pBt, Pgno nFin, Pgno iLastPg, int bCommit)
Coverage:  83.673% (41/49)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 3665-3754
 83.673% (41/49)
6015
exprDup
Name: exprDup
Prototype: static Expr *exprDup(sqlite3 *db, Expr *p, int dupFlags, u8 **pzBuffer)
Coverage: 100.000% (53/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 1207-1304
100.000% (53/53)
7315
whereShortCut
Name: whereShortCut
Prototype: static int whereShortCut(WhereLoopBuilder *pBuilder)
Coverage: 100.000% (49/49)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 4374-4451
100.000% (49/49)
6714
unixSetSystemCall
Name: unixSetSystemCall
Prototype: static int unixSetSystemCall( sqlite3_vfs *pNotUsed, const char *zName, sqlite3_syscall_ptr pNewFunc )
Coverage:  43.396% (23/53)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 556-592
 43.396% (23/53)
17914
syncJournal
Name: syncJournal
Prototype: static int syncJournal(Pager *pPager, int newHdr)
Coverage:  96.000% (48/50)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 4257-4366
 96.000% (48/50)
5914
sqlite3_initialize
Name: sqlite3_initialize
Prototype: int sqlite3_initialize(void)
Coverage:  97.727% (43/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 140-301
 97.727% (43/44)
5114
sqlite3WalCheckpoint
Name: sqlite3WalCheckpoint
Prototype: int sqlite3WalCheckpoint( Wal *pWal, sqlite3 *db, int eMode, int (*xBusy)(void*), void *pBusyArg, int sync_flags, int nBuf, u8 *zBuf, int *pnLog, int *pnCkpt )
Coverage:  94.118% (48/51)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 3547-3650
 94.118% (48/51)
4314
sqlite3VdbeSerialGet
Name: sqlite3VdbeSerialGet
Prototype: u32 sqlite3VdbeSerialGet( const unsigned char *buf, u32 serial_type, Mem *pMem )
Coverage:  95.833% (23/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3566-3656
 95.833% (23/24)
3114
sqlite3VdbeMemSetStr
Name: sqlite3VdbeMemSetStr
Prototype: int sqlite3VdbeMemSetStr( Mem *pMem, const char *z, int n, u8 enc, void (*xDel)(void*) )
Coverage:  83.636% (46/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbemem.c
Lines: 1019-1101
 83.636% (46/55)
5014
sqlite3LeaveMutexAndCloseZombie
Name: sqlite3LeaveMutexAndCloseZombie
Prototype: void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db)
Coverage: 100.000% (42/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 1152-1266
100.000% (42/42)
6114
sqlite3FinishCoding
Name: sqlite3FinishCoding
Prototype: void sqlite3FinishCoding(Parse *pParse)
Coverage: 100.000% (52/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 132-236
100.000% (52/52)
5414
selectWindowRewriteExprCb
Name: selectWindowRewriteExprCb
Prototype: static int selectWindowRewriteExprCb(Walker *pWalker, Expr *pExpr)
Coverage:  97.222% (35/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 602-664
 97.222% (35/36)
3614
getPageNormal
Name: getPageNormal
Prototype: static int getPageNormal( Pager *pPager, Pgno pgno, DbPage **ppPage, int flags )
Coverage:  95.745% (45/47)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 5441-5539
 95.745% (45/47)
7614
freeP4
Name: freeP4
Prototype: static void freeP4(sqlite3 *db, int p4type, void *p4)
Coverage:  88.889% (24/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 935-977
 88.889% (24/27)
1814
codeAllEqualityTerms
Name: codeAllEqualityTerms
Prototype: static int codeAllEqualityTerms( Parse *pParse, WhereLevel *pLevel, int bRev, int nExtraReg, char **pzAff )
Coverage:  97.619% (41/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wherecode.c
Lines: 662-762
 97.619% (41/42)
6514
clearDatabasePage
Name: clearDatabasePage
Prototype: static int clearDatabasePage( BtShared *pBt, Pgno pgno, int freePageFlag, int *pnChange )
Coverage:  94.737% (36/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 8920-8972
 94.737% (36/38)
4014
btreeNext
Name: btreeNext
Prototype: static __attribute__((noinline)) int btreeNext(BtCursor *pCur)
Coverage:  90.476% (38/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 5590-5662
 90.476% (38/42)
4814
whereLoopInsert
Name: whereLoopInsert
Prototype: static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate)
Coverage:  87.805% (36/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 2123-2228
 87.805% (36/41)
3813
whereLoopAddOr
Name: whereLoopAddOr
Prototype: static int whereLoopAddOr( WhereLoopBuilder *pBuilder, Bitmask mPrereq, Bitmask mUnusable )
Coverage:  93.333% (42/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 3404-3522
 93.333% (42/45)
7313
walIndexReadHdr
Name: walIndexReadHdr
Prototype: static int walIndexReadHdr(Wal *pWal, int *pChanged)
Coverage:  84.091% (37/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 2125-2216
 84.091% (37/44)
5813
updateAccumulator
Name: updateAccumulator
Prototype: static void updateAccumulator(Parse *pParse, int regAcc, AggInfo *pAggInfo)
Coverage: 100.000% (44/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 5285-5349
100.000% (44/44)
5213
unixOpenSharedMemory
Name: unixOpenSharedMemory
Prototype: static int unixOpenSharedMemory(unixFile *pDbFd)
Coverage:  70.270% (26/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 4486-4605
 70.270% (26/37)
7713
statDecodePage
Name: statDecodePage
Prototype: static int statDecodePage(Btree *pBt, StatPage *p)
Coverage:  86.667% (39/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/dbstat.c
Lines: 316-405
 86.667% (39/45)
7613
sqliteProcessJoin
Name: sqliteProcessJoin
Prototype: static int sqliteProcessJoin(Parse *pParse, Select *p)
Coverage:  93.333% (42/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 441-526
 93.333% (42/45)
5013
sqlite3GetInt32
Name: sqlite3GetInt32
Prototype: int sqlite3GetInt32(const char *zNum, int *pValue)
Coverage:  98.039% (50/51)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/util.c
Lines: 738-791
 98.039% (50/51)
3213
sqlite3ExprCollSeq
Name: sqlite3ExprCollSeq
Prototype: CollSeq *sqlite3ExprCollSeq(Parse *pParse, Expr *pExpr)
Coverage:  96.364% (53/55)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 137-194
 96.364% (53/55)
3813
sqlite3AddPrimaryKey
Name: sqlite3AddPrimaryKey
Prototype: void sqlite3AddPrimaryKey( Parse *pParse, ExprList *pList, int onError, int autoInc, int sortOrder )
Coverage: 100.000% (45/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 1333-1401
100.000% (45/45)
5013
posixUnlock
Name: posixUnlock
Prototype: static int posixUnlock(sqlite3_file *id, int eFileLock, int handleNFSUnlock)
Coverage:  74.286% (26/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 1885-2036
 74.286% (26/35)
10613
pagerWriteLargeSector
Name: pagerWriteLargeSector
Prototype: static __attribute__((noinline)) int pagerWriteLargeSector(PgHdr *pPg)
Coverage:  93.182% (41/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 6029-6107
 93.182% (41/44)
6013
pagerPlaybackSavepoint
Name: pagerPlaybackSavepoint
Prototype: static int pagerPlaybackSavepoint(Pager *pPager, PagerSavepoint *pSavepoint)
Coverage:  86.207% (50/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 3402-3508
 86.207% (50/58)
6713
moveToRoot
Name: moveToRoot
Prototype: static int moveToRoot(BtCursor *pCur)
Coverage:  89.744% (35/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 5045-5123
 89.744% (35/39)
7113
hasHotJournal
Name: hasHotJournal
Prototype: static int hasHotJournal(Pager *pPager, int *pExists)
Coverage:  88.372% (38/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 5040-5131
 88.372% (38/43)
5213
windowCodeDefaultStep
Name: windowCodeDefaultStep
Prototype: static void windowCodeDefaultStep( Parse *pParse, Select *p, WhereInfo *pWInfo, int regGosub, int addrGosub )
Coverage: 100.000% (42/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 2007-2122
100.000% (42/42)
7412
whereLoopCheaperProperSubset
Name: whereLoopCheaperProperSubset
Prototype: static int whereLoopCheaperProperSubset( const WhereLoop *pX, const WhereLoop *pY )
Coverage:  94.444% (34/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 1957-1982
 94.444% (34/36)
1612
unixNextSystemCall
Name: unixNextSystemCall
Prototype: static const char *unixNextSystemCall(sqlite3_vfs *p, const char *zName)
Coverage:  32.609% (15/46)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 618-631
 32.609% (15/46)
17012
statColumn
Name: statColumn
Prototype: static int statColumn( sqlite3_vtab_cursor *pCursor, sqlite3_context *ctx, int i )
Coverage:  91.304% (21/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/dbstat.c
Lines: 619-664
 91.304% (21/23)
2712
sqlite3VdbeSerialType
Name: sqlite3VdbeSerialType
Prototype: u32 sqlite3VdbeSerialType(Mem *pMem, int file_format, u32 *pLen)
Coverage: 100.000% (37/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3324-3371
100.000% (37/37)
4012
sqlite3PagerSetJournalMode
Name: sqlite3PagerSetJournalMode
Prototype: int sqlite3PagerSetJournalMode(Pager *pPager, int eMode)
Coverage: 100.000% (42/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 7282-7368
100.000% (42/42)
7212
sqlite3InitCallback
Name: sqlite3InitCallback
Prototype: int sqlite3InitCallback(void *pInit, int argc, char **argv, char **NotUsed)
Coverage:  78.049% (32/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/prepare.c
Lines: 59-133
 78.049% (32/41)
5512
sqlite3FixSelect
Name: sqlite3FixSelect
Prototype: int sqlite3FixSelect( DbFixer *pFix, Select *pSelect )
Coverage:  88.235% (30/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/attach.c
Lines: 515-552
 88.235% (30/34)
2212
replaceFunc
Name: replaceFunc
Prototype: static void replaceFunc( sqlite3_context *context, int argc, sqlite3_value **argv )
Coverage:  83.333% (30/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1187-1274
 83.333% (30/36)
8512
pushOntoSorter
Name: pushOntoSorter
Prototype: static void pushOntoSorter( Parse *pParse, SortCtx *pSort, Select *pSelect, int regData, int regOrigData, int nData, int nPrefixReg )
Coverage:  95.122% (39/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 588-724
 95.122% (39/41)
8512
modifyPagePointer
Name: modifyPagePointer
Prototype: static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType)
Coverage:  89.744% (35/39)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 3511-3560
 89.744% (35/39)
3612
isCandidateForInOpt
Name: isCandidateForInOpt
Prototype: static Select *isCandidateForInOpt(Expr *pX)
Coverage: 100.000% (34/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 2161-2196
100.000% (34/34)
4112
indexMightHelpWithOrderBy
Name: indexMightHelpWithOrderBy
Prototype: static int indexMightHelpWithOrderBy( WhereLoopBuilder *pBuilder, Index *pIndex, int iCursor )
Coverage: 100.000% (36/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 2755-2783
100.000% (36/36)
1712
generateWithRecursiveQuery
Name: generateWithRecursiveQuery
Prototype: static void generateWithRecursiveQuery( Parse *pParse, Select *p, SelectDest *pDest )
Coverage:  97.500% (39/40)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 2298-2427
 97.500% (39/40)
8212
substExpr
Name: substExpr
Prototype: static Expr *substExpr( SubstContext *pSubst, Expr *pExpr )
Coverage: 100.000% (44/44)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 3427-3482
100.000% (44/44)
4111
sqlite3_vfs_find
Name: sqlite3_vfs_find
Prototype: sqlite3_vfs *sqlite3_vfs_find(const char *zVfs)
Coverage:  25.581% (11/43)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os.c
Lines: 338-357
 25.581% (11/43)
17311
sqlite3PagerMovepage
Name: sqlite3PagerMovepage
Prototype: int sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno, int isCommit)
Coverage:  86.486% (32/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 7083-7208
 86.486% (32/37)
6311
sqlite3OpenTableAndIndices
Name: sqlite3OpenTableAndIndices
Prototype: int sqlite3OpenTableAndIndices( Parse *pParse, Table *pTab, int op, u8 p5, int iBase, u8 *aToOpen, int *piDataCur, int *piIdxCur )
Coverage: 100.000% (40/40)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/insert.c
Lines: 1967-2019
100.000% (40/40)
3911
sqlite3ExprAssignVarNumber
Name: sqlite3ExprAssignVarNumber
Prototype: void sqlite3ExprAssignVarNumber(Parse *pParse, Expr *pExpr, u32 n)
Coverage: 100.000% (38/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 983-1046
100.000% (38/38)
4911
sqlite3DropIndex
Name: sqlite3DropIndex
Prototype: void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists)
Coverage:  90.625% (29/32)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 3604-3666
 90.625% (29/32)
4711
sqlite3CompleteInsertion
Name: sqlite3CompleteInsertion
Prototype: void sqlite3CompleteInsertion( Parse *pParse, Table *pTab, int iDataCur, int iIdxCur, int regNewData, int *aRegIdx, int update_flags, int appendBias, int useSeekResult )
Coverage: 100.000% (38/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/insert.c
Lines: 1866-1944
100.000% (38/38)
5411
pushDownWhereTerms
Name: pushDownWhereTerms
Prototype: static int pushDownWhereTerms( Parse *pParse, Select *pSubq, Expr *pWhere, int iCursor, int isLeftJoin )
Coverage: 100.000% (38/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 4286-4353
100.000% (38/38)
3411
isDistinctRedundant
Name: isDistinctRedundant
Prototype: static int isDistinctRedundant( Parse *pParse, SrcList *pTabList, WhereClause *pWC, ExprList *pDistinct )
Coverage: 100.000% (35/35)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 480-535
100.000% (35/35)
1911
editPage
Name: editPage
Prototype: static int editPage( MemPage *pPg, int iOld, int iNew, int nNew, CellArray *pCArray )
Coverage: 100.000% (33/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 6906-6998
100.000% (33/33)
5111
checkList
Name: checkList
Prototype: static void checkList( IntegrityCk *pCheck, int isFreeList, int iPage, int N )
Coverage:  86.842% (33/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 9387-9451
 86.842% (33/38)
3611
btreePrevious
Name: btreePrevious
Prototype: static __attribute__((noinline)) int btreePrevious(BtCursor *pCur)
Coverage:  94.444% (34/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 5704-5758
 94.444% (34/36)
5511
xferCompatibleIndex
Name: xferCompatibleIndex
Prototype: static int xferCompatibleIndex(Index *pDest, Index *pSrc)
Coverage:  75.000% (21/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/insert.c
Lines: 2045-2079
 75.000% (21/28)
2810
whereOrInsert
Name: whereOrInsert
Prototype: static int whereOrInsert( WhereOrSet *pSet, Bitmask prereq, LogEst rRun, LogEst nOut )
Coverage:  87.097% (27/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 165-196
 87.097% (27/31)
1810
whereCombineDisjuncts
Name: whereCombineDisjuncts
Prototype: static void whereCombineDisjuncts( SrcList *pSrc, WhereClause *pWC, WhereTerm *pOne, WhereTerm *pTwo )
Coverage:  93.333% (28/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/whereexpr.c
Lines: 503-539
 93.333% (28/30)
3410
vdbeCloseStatement
Name: vdbeCloseStatement
Prototype: static __attribute__((noinline)) int vdbeCloseStatement(Vdbe *p, int eOp)
Coverage:  85.714% (24/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 2643-2688
 85.714% (24/28)
3410
sqlite3_uri_parameter
Name: sqlite3_uri_parameter
Prototype: const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam)
Coverage:  26.190% (11/42)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 4077-4087
 26.190% (11/42)
17210
sqlite3_db_config
Name: sqlite3_db_config
Prototype: int sqlite3_db_config(sqlite3 *db, int op, ...)
Coverage:  88.000% (22/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 806-866
 88.000% (22/25)
12010
sqlite3WindowRewrite
Name: sqlite3WindowRewrite
Prototype: int sqlite3WindowRewrite(Parse *pParse, Select *p)
Coverage:  83.333% (30/36)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 747-847
 83.333% (30/36)
6110
sqlite3ViewGetColumnNames
Name: sqlite3ViewGetColumnNames
Prototype: int sqlite3ViewGetColumnNames(Parse *pParse, Table *pTable)
Coverage:  85.294% (29/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 2228-2353
 85.294% (29/34)
7010
sqlite3VListNameToNum
Name: sqlite3VListNameToNum
Prototype: int sqlite3VListNameToNum(VList *pIn, const char *zName, int nName)
Coverage:  25.000% (13/52)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/util.c
Lines: 1613-1624
 25.000% (13/52)
21110
sqlite3Reindex
Name: sqlite3Reindex
Prototype: void sqlite3Reindex(Parse *pParse, Token *pName1, Token *pName2)
Coverage:  70.000% (21/30)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 4417-4468
 70.000% (21/30)
4310
sqlite3IntFloatCompare
Name: sqlite3IntFloatCompare
Prototype: static int sqlite3IntFloatCompare(i64 i, double r)
Coverage:  28.571% (8/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3956-3975
 28.571% (8/28)
1610
sqlite3ExprNeedsNoAffinityChange
Name: sqlite3ExprNeedsNoAffinityChange
Prototype: int sqlite3ExprNeedsNoAffinityChange(const Expr *p, char aff)
Coverage:  86.486% (32/37)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 2113-2141
 86.486% (32/37)
1610
sqlite3CreateView
Name: sqlite3CreateView
Prototype: void sqlite3CreateView( Parse *pParse, Token *pBegin, Token *pName1, Token *pName2, ExprList *pCNames, Select *pSelect, int isTemp, int noErr )
Coverage:  89.655% (26/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 2148-2219
 89.655% (26/29)
4510
sqlite3CreateFunc
Name: sqlite3CreateFunc
Prototype: int sqlite3CreateFunc( sqlite3 *db, const char *zFunctionName, int nArg, int enc, void *pUserData, void (*xSFunc)(sqlite3_context*,int,sqlite3_value **), void (*xStep)(sqlite3_context*,int,sqlite3_value **), void (*xFinal)(sqlite3_context*), void (*xValue)(sqlite3_context*), void (*xInverse)(sqlite3_context*,int,sqlite3_value **), FuncDestructor *pDestructor )
Coverage:  95.833% (46/48)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 1687-1787
 95.833% (46/48)
6110
sqlite3AddColumn
Name: sqlite3AddColumn
Prototype: void sqlite3AddColumn(Parse *pParse, Token *pName, Token *pType)
Coverage: 100.000% (29/29)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 1064-1123
100.000% (29/29)
4210
setupLookaside
Name: setupLookaside
Prototype: static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt)
Coverage:  76.471% (26/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 676-734
 76.471% (26/34)
4210
relocatePage
Name: relocatePage
Prototype: static int relocatePage( BtShared *pBt, MemPage *pDbPage, u8 eType, Pgno iPtrPage, Pgno iFreePage, int isCommit )
Coverage:  80.645% (25/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 3572-3643
 80.645% (25/31)
4010
Page:<>1
McCabe - Cyclomatic Complexity: 655
23
McCabe - Cyclomatic Complexity: 10
4
McCabe - Cyclomatic Complexity: 7
5
McCabe - Cyclomatic Complexity: 6
6
McCabe - Cyclomatic Complexity: 5
...10
McCabe - Cyclomatic Complexity: 2
...17
McCabe - Cyclomatic Complexity: 1

Generated by Squish Coco 4.2.2