OpenCoverage

SQLite Code Coverage

Function Tree

Page:<>1
eLOC - Effective Lines of Code: 3680
2
eLOC - Effective Lines of Code: 85
3
eLOC - Effective Lines of Code: 45
4
eLOC - Effective Lines of Code: 33
5
eLOC - Effective Lines of Code: 25
67
eLOC - Effective Lines of Code: 17
8
eLOC - Effective Lines of Code: 13
9
eLOC - Effective Lines of Code: 11
10
eLOC - Effective Lines of Code: 9
...17
eLOC - Effective Lines of Code: 1
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
zeroJournalHdr
Name: zeroJournalHdr
Prototype: static int zeroJournalHdr(Pager *pPager, int doTruncate)
Coverage:  96.000% (24/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 1400-1433
 96.000% (24/25)
206
windowAggFinal
Name: windowAggFinal
Prototype: static void windowAggFinal(Parse *pParse, Window *pMWin, int bFinal)
Coverage: 100.000% (18/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 1211-1241
100.000% (18/18)
206
whereRangeScanEst
Name: whereRangeScanEst
Prototype: static int whereRangeScanEst( Parse *pParse, WhereLoopBuilder *pBuilder, WhereTerm *pLower, WhereTerm *pUpper, WhereLoop *pLoop )
Coverage:  93.750% (15/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 1459-1620
 93.750% (15/16)
204
walDecodeFrame
Name: walDecodeFrame
Prototype: static int walDecodeFrame( Wal *pWal, u32 *piPage, u32 *pnTruncate, u8 *aData, u8 *aFrame )
Coverage:  75.000% (9/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 768-815
 75.000% (9/12)
204
unixMapfile
Name: unixMapfile
Prototype: static int unixMapfile(unixFile *pFd, i64 nMap)
Coverage:  75.000% (12/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 5074-5096
 75.000% (12/16)
206
sqlite3_str_appendf
Name: sqlite3_str_appendf
Prototype: void sqlite3_str_appendf(StrAccum *p, const char *zFormat, ...)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/printf.c
Lines: 1242-1247
100.000% (1/1)
201
sqlite3_str_append
Name: sqlite3_str_append
Prototype: void sqlite3_str_append(sqlite3_str *p, const char *z, int N)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/printf.c
Lines: 925-937
100.000% (7/7)
203
sqlite3WindowCodeStep
Name: sqlite3WindowCodeStep
Prototype: void sqlite3WindowCodeStep( Parse *pParse, Select *p, WhereInfo *pWInfo, int regGosub, int addrGosub )
Coverage: 100.000% (33/33)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/window.c
Lines: 2174-2252
100.000% (33/33)
206
sqlite3VdbeDelete
Name: sqlite3VdbeDelete
Prototype: void sqlite3VdbeDelete(Vdbe *p)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3173-3192
100.000% (8/8)
203
sqlite3PcacheTruncate
Name: sqlite3PcacheTruncate
Prototype: void sqlite3PcacheTruncate(PCache *pCache, Pgno pgno)
Coverage:  94.444% (17/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache.c
Lines: 640-668
 94.444% (17/18)
206
sqlite3LockAndPrepare
Name: sqlite3LockAndPrepare
Prototype: static int sqlite3LockAndPrepare( sqlite3 *db, const char *zSql, int nBytes, u32 prepFlags, Vdbe *pOld, sqlite3_stmt **ppStmt, const char **pzTail )
Coverage:  84.615% (11/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/prepare.c
Lines: 676-710
 84.615% (11/13)
203
sqlite3LocateTable
Name: sqlite3LocateTable
Prototype: Table *sqlite3LocateTable( Parse *pParse, u32 flags, const char *zName, const char *zDbase )
Coverage:  96.774% (30/31)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 338-383
 96.774% (30/31)
208
sqlite3FixSrcList
Name: sqlite3FixSrcList
Prototype: int sqlite3FixSrcList( DbFixer *pFix, SrcList *pList )
Coverage:  84.615% (22/26)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/attach.c
Lines: 482-513
 84.615% (22/26)
208
sqlite3ExprCodeAtInit
Name: sqlite3ExprCodeAtInit
Prototype: int sqlite3ExprCodeAtInit( Parse *pParse, Expr *pExpr, int regDest )
Coverage: 100.000% (20/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 4029-4056
100.000% (20/20)
206
sqlite3ExpandSubquery
Name: sqlite3ExpandSubquery
Prototype: int sqlite3ExpandSubquery(Parse *pParse, struct SrcList_item *pFrom)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 4754-4774
 81.818% (9/11)
204
sqlite3BtreeTripAllCursors
Name: sqlite3BtreeTripAllCursors
Prototype: int sqlite3BtreeTripAllCursors(Btree *pBtree, int errCode, int writeOnly)
Coverage:  71.429% (15/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 4066-4092
 71.429% (15/21)
206
sqlite3BlobCompare
Name: sqlite3BlobCompare
Prototype: int sqlite3BlobCompare(const Mem *pB1, const Mem *pB2)
Coverage:  78.947% (15/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3923-3949
 78.947% (15/19)
207
sqlite3AddCollateType
Name: sqlite3AddCollateType
Prototype: void sqlite3AddCollateType(Parse *pParse, Token *pToken)
Coverage:  75.000% (12/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 1431-1461
 75.000% (12/16)
206
resizeIndexObject
Name: resizeIndexObject
Prototype: static int resizeIndexObject(sqlite3 *db, Index *pIdx, int N)
Coverage:  71.429% (5/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 1650-1669
 71.429% (5/7)
203
releaseMemArray
Name: releaseMemArray
Prototype: static void releaseMemArray(Mem *p, int N)
Coverage: 100.000% (24/24)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 1636-1675
100.000% (24/24)
208
putVarint64
Name: putVarint64
Prototype: static int __attribute__((noinline)) putVarint64(unsigned char *p, u64 v)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/util.c
Lines: 832-855
100.000% (13/13)
205
pcacheSortDirtyList
Name: pcacheSortDirtyList
Prototype: static PgHdr *pcacheSortDirtyList(PgHdr *pIn)
Coverage:  85.714% (18/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache.c
Lines: 727-757
 85.714% (18/21)
207
pcacheMergeDirtyList
Name: pcacheMergeDirtyList
Prototype: static PgHdr *pcacheMergeDirtyList(PgHdr *pA, PgHdr *pB)
Coverage: 100.000% (11/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache.c
Lines: 690-714
100.000% (11/11)
205
pcache1AllocPage
Name: pcache1AllocPage
Prototype: static PgHdr1 *pcache1AllocPage(PCache1 *pCache, int benignMalloc)
Coverage: 100.000% (18/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Lines: 407-450
100.000% (18/18)
205
lengthFunc
Name: lengthFunc
Prototype: static void lengthFunc( sqlite3_context *context, int argc, sqlite3_value **argv )
Coverage:  90.000% (18/20)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 101-135
 90.000% (18/20)
2010
hexFunc
Name: hexFunc
Prototype: static void hexFunc( sqlite3_context *context, int argc, sqlite3_value **argv )
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1136-1159
 85.714% (6/7)
203
closeAllCursors
Name: closeAllCursors
Prototype: static void closeAllCursors(Vdbe *p)
Coverage: 100.000% (16/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 2265-2287
100.000% (16/16)
206
backupUpdate
Name: backupUpdate
Prototype: static __attribute__((noinline)) void backupUpdate( sqlite3_backup *p, Pgno iPage, const u8 *aData )
Coverage:  66.667% (8/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/backup.c
Lines: 690-714
 66.667% (8/12)
204
walIteratorNext
Name: walIteratorNext
Prototype: static int walIteratorNext( WalIterator *p, u32 *piPage, u32 *piFrame )
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 1423-1451
100.000% (13/13)
195
vdbeCompareMemString
Name: vdbeCompareMemString
Prototype: static int vdbeCompareMemString( const Mem *pMem1, const Mem *pMem2, const CollSeq *pColl, u8 *prcErr )
Coverage:  53.846% (7/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3873-3904
 53.846% (7/13)
194
unixTruncate
Name: unixTruncate
Prototype: static int unixTruncate(sqlite3_file *id, i64 nByte)
Coverage:  82.353% (14/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 3744-3789
 82.353% (14/17)
195
translateColumnToCopy
Name: translateColumnToCopy
Prototype: static void translateColumnToCopy( Parse *pParse, int iStart, int iTabCur, int iRegister, int bIncrRowid )
Coverage:  89.474% (17/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/where.c
Lines: 557-588
 89.474% (17/19)
197
sqlite3IdListDup
Name: sqlite3IdListDup
Prototype: IdList *sqlite3IdListDup(sqlite3 *db, IdList *p)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 1446-1469
100.000% (13/13)
195
sqlite3IdListAppend
Name: sqlite3IdListAppend
Prototype: IdList *sqlite3IdListAppend(Parse *pParse, IdList *pList, Token *pToken)
Coverage:  66.667% (10/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 3716-3739
 66.667% (10/15)
195
sqlite3ExprFunction
Name: sqlite3ExprFunction
Prototype: Expr *sqlite3ExprFunction( Parse *pParse, ExprList *pList, Token *pToken, int eDistinct )
Coverage:  83.333% (10/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 942-965
 83.333% (10/12)
194
sqlite3BtreeSetVersion
Name: sqlite3BtreeSetVersion
Prototype: int sqlite3BtreeSetVersion(Btree *pBtree, int iVersion)
Coverage:  83.333% (15/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 10130-10159
 83.333% (15/18)
196
sqlite3BeginTransaction
Name: sqlite3BeginTransaction
Prototype: void sqlite3BeginTransaction(Parse *pParse, int type)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 4076-4096
100.000% (13/13)
195
saveCursorPosition
Name: saveCursorPosition
Prototype: static int saveCursorPosition(BtCursor *pCur)
Coverage:  87.500% (7/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 689-710
 87.500% (7/8)
193
resetAccumulator
Name: resetAccumulator
Prototype: static void resetAccumulator(Parse *pParse, AggInfo *pAggInfo)
Coverage: 100.000% (15/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 5222-5257
100.000% (15/15)
195
releasePageNotNull
Name: releasePageNotNull
Prototype: static void releasePageNotNull(MemPage *pPage)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 2151-2159
100.000% (1/1)
191
propagateConstantExprRewrite
Name: propagateConstantExprRewrite
Prototype: static int propagateConstantExprRewrite(Walker *pWalker, Expr *pExpr)
Coverage: 100.000% (19/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 4144-4164
100.000% (19/19)
197
pcache1Fetch
Name: pcache1Fetch
Prototype: static sqlite3_pcache_page *pcache1Fetch( sqlite3_pcache *p, unsigned int iKey, int createFlag )
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Lines: 1025-1048
100.000% (1/1)
191
openDirectory
Name: openDirectory
Prototype: static int openDirectory(const char *zFilename, int *pFd)
Coverage:  50.000% (11/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 3657-3677
 50.000% (11/22)
197
moveToParent
Name: moveToParent
Prototype: static void moveToParent(BtCursor *pCur)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 5004-5022
100.000% (1/1)
191
isSimpleCount
Name: isSimpleCount
Prototype: static Table *isSimpleCount(Select *p, AggInfo *pAggInfo)
Coverage:  92.000% (23/25)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 4409-4431
 92.000% (23/25)
197
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
isDate
Name: isDate
Prototype: static int isDate( sqlite3_context *context, int argc, sqlite3_value **argv, DateTime *p )
Coverage: 100.000% (28/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/date.c
Lines: 873-903
100.000% (28/28)
197
growOpArray
Name: growOpArray
Prototype: static int growOpArray(Vdbe *v, int nOp)
Coverage:  81.818% (9/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 104-137
 81.818% (9/11)
193
codeExprOrVector
Name: codeExprOrVector
Prototype: static void codeExprOrVector(Parse *pParse, Expr *p, int iReg, int nReg)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wherecode.c
Lines: 1073-1095
100.000% (12/12)
194
absFunc
Name: absFunc
Prototype: static void absFunc(sqlite3_context *context, int argc, sqlite3_value **argv)
Coverage: 100.000% (15/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 143-179
100.000% (15/15)
197
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
substSelect
Name: substSelect
Prototype: static void substSelect( SubstContext *pSubst, Select *p, int doPrior )
Coverage: 100.000% (15/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/select.c
Lines: 3493-3517
100.000% (15/15)
185
sqlite3WalBeginWriteTransaction
Name: sqlite3WalBeginWriteTransaction
Prototype: int sqlite3WalBeginWriteTransaction(Wal *pWal)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wal.c
Lines: 2989-3021
100.000% (10/10)
184
sqlite3VdbeRewind
Name: sqlite3VdbeRewind
Prototype: void sqlite3VdbeRewind(Vdbe *p)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 2029-2062
100.000% (1/1)
181
sqlite3VdbeIntValue
Name: sqlite3VdbeIntValue
Prototype: i64 sqlite3VdbeIntValue(Mem *pMem)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbemem.c
Lines: 552-567
100.000% (10/10)
184
sqlite3ValueText
Name: sqlite3ValueText
Prototype: const void *sqlite3ValueText(sqlite3_value* pVal, u8 enc)
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbemem.c
Lines: 1216-1229
100.000% (12/12)
184
sqlite3Utf16to8
Name: sqlite3Utf16to8
Prototype: char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/utf.c
Lines: 439-453
 50.000% (2/4)
182
sqlite3UnlinkAndDeleteTable
Name: sqlite3UnlinkAndDeleteTable
Prototype: void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 661-674
100.000% (1/1)
181
sqlite3TableAffinity
Name: sqlite3TableAffinity
Prototype: void sqlite3TableAffinity(Vdbe *v, Table *pTab, int iReg)
Coverage: 100.000% (21/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/insert.c
Lines: 130-157
100.000% (21/21)
187
sqlite3OpenTempDatabase
Name: sqlite3OpenTempDatabase
Prototype: int sqlite3OpenTempDatabase(Parse *pParse)
Coverage:  66.667% (8/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 4145-4172
 66.667% (8/12)
184
sqlite3FindIndex
Name: sqlite3FindIndex
Prototype: Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb)
Coverage: 100.000% (14/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 422-437
100.000% (14/14)
184
sqlite3EndTransaction
Name: sqlite3EndTransaction
Prototype: void sqlite3EndTransaction(Parse *pParse, int eType)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 4103-4119
100.000% (7/7)
183
sqlite3BtreePrevious
Name: sqlite3BtreePrevious
Prototype: int sqlite3BtreePrevious(BtCursor *pCur, int flags)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 5759-5774
100.000% (8/8)
182
sqlite3BtreeLockTable
Name: sqlite3BtreeLockTable
Prototype: int sqlite3BtreeLockTable(Btree *p, int iTab, u8 isWriteLock)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 10041-10057
100.000% (7/7)
183
sqlite3BtreeGetMeta
Name: sqlite3BtreeGetMeta
Prototype: void sqlite3BtreeGetMeta(Btree *p, int idx, u32 *pMeta)
Coverage: 100.000% (5/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 9146-9170
100.000% (5/5)
182
sqlite3BtreeCursorRestore
Name: sqlite3BtreeCursorRestore
Prototype: int sqlite3BtreeCursorRestore(BtCursor *pCur, int *pDifferentRow)
Coverage: 100.000% (10/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 898-915
100.000% (10/10)
183
sqlite3BitvecTestNotNull
Name: sqlite3BitvecTestNotNull
Prototype: int sqlite3BitvecTestNotNull(Bitvec *p, u32 i)
Coverage: 100.000% (19/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/bitvec.c
Lines: 130-152
100.000% (19/19)
187
sqlite3AllocateIndexObject
Name: sqlite3AllocateIndexObject
Prototype: Index *sqlite3AllocateIndexObject( sqlite3 *db, i16 nCol, int nExtra, char **ppExtra )
Coverage:  75.000% (3/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 2956-2982
 75.000% (3/4)
182
pcache1Init
Name: pcache1Init
Prototype: static int pcache1Init(void *NotUsed)
Coverage: 100.000% (16/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Lines: 681-727
100.000% (16/16)
183
pcache1EnforceMaxPage
Name: pcache1EnforceMaxPage
Prototype: static void pcache1EnforceMaxPage(PCache1 *pCache)
Coverage: 100.000% (11/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Lines: 605-621
100.000% (11/11)
183
pagerUnlockDb
Name: pagerUnlockDb
Prototype: static int pagerUnlockDb(Pager *pPager, int eLock)
Coverage:  88.889% (8/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 1147-1162
 88.889% (8/9)
183
minmaxStep
Name: minmaxStep
Prototype: static void minmaxStep( sqlite3_context *context, int NotUsed, sqlite3_value **argv )
Coverage:  90.909% (20/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1624-1661
 90.909% (20/22)
186
handleDeferredMoveto
Name: handleDeferredMoveto
Prototype: static int __attribute__((noinline)) handleDeferredMoveto(VdbeCursor *p)
Coverage:  42.857% (3/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeaux.c
Lines: 3199-3216
 42.857% (3/7)
183
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
exprMightBeIndexed
Name: exprMightBeIndexed
Prototype: static int exprMightBeIndexed( SrcList *pFrom, Bitmask mPrereq, int *aiCurCol, Expr *pExpr, int op )
Coverage:  94.118% (16/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/whereexpr.c
Lines: 980-1005
 94.118% (16/17)
185
exprINAffinity
Name: exprINAffinity
Prototype: static char *exprINAffinity(Parse *pParse, Expr *pExpr)
Coverage:  91.667% (11/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 2536-2558
 91.667% (11/12)
184
disableTerm
Name: disableTerm
Prototype: static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm)
Coverage: 100.000% (22/22)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/wherecode.c
Lines: 295-314
100.000% (22/22)
185
btreeOverwriteContent
Name: btreeOverwriteContent
Prototype: static int btreeOverwriteContent( MemPage *pPage, u8 *pDest, const BtreePayload *pX, int iOffset, int iAmt )
Coverage:  71.429% (20/28)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/btree.c
Lines: 8205-8238
 71.429% (20/28)
189
vdbeMemClearExternAndSetNull
Name: vdbeMemClearExternAndSetNull
Prototype: static __attribute__((noinline)) void vdbeMemClearExternAndSetNull(Mem *p)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbemem.c
Lines: 455-468
100.000% (7/7)
173
unixGetTempname
Name: unixGetTempname
Prototype: static int unixGetTempname(int nBuf, char *zBuf)
Coverage:  42.105% (8/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 5682-5705
 42.105% (8/19)
175
unixFileSize
Name: unixFileSize
Prototype: static int unixFileSize(sqlite3_file *id, i64 *pSize)
Coverage: 100.000% (14/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/os_unix.c
Lines: 3794-3816
100.000% (14/14)
174
sumStep
Name: sumStep
Prototype: static void sumStep(sqlite3_context *context, int argc, sqlite3_value **argv)
Coverage:  92.857% (13/14)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1495-1515
 92.857% (13/14)
174
sqliteDefaultBusyCallback
Name: sqliteDefaultBusyCallback
Prototype: static int sqliteDefaultBusyCallback( void *ptr, int count, sqlite3_file *pFile )
Coverage: 100.000% (11/11)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 1505-1561
100.000% (11/11)
174
sqlite3VdbeIntegerAffinity
Name: sqlite3VdbeIntegerAffinity
Prototype: void sqlite3VdbeIntegerAffinity(Mem *pMem)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbemem.c
Lines: 610-633
100.000% (8/8)
172
sqlite3UnlinkAndDeleteIndex
Name: sqlite3UnlinkAndDeleteIndex
Prototype: void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName)
Coverage:  77.778% (14/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 462-485
 77.778% (14/18)
175
sqlite3RootPageMoved
Name: sqlite3RootPageMoved
Prototype: void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo)
Coverage: 100.000% (13/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 2396-2417
100.000% (13/13)
175
sqlite3PcacheMakeDirty
Name: sqlite3PcacheMakeDirty
Prototype: void sqlite3PcacheMakeDirty(PgHdr *p)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache.c
Lines: 548-561
100.000% (7/7)
173
sqlite3PcacheMakeClean
Name: sqlite3PcacheMakeClean
Prototype: void sqlite3PcacheMakeClean(PgHdr *p)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache.c
Lines: 567-579
100.000% (4/4)
172
sqlite3PagerLockingMode
Name: sqlite3PagerLockingMode
Prototype: int sqlite3PagerLockingMode(Pager *pPager, int eMode)
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 7249-7260
100.000% (8/8)
172
sqlite3PagerExclusiveLock
Name: sqlite3PagerExclusiveLock
Prototype: int sqlite3PagerExclusiveLock(Pager *pPager)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pager.c
Lines: 6312-6326
 85.714% (6/7)
173
sqlite3PCacheBufferSetup
Name: sqlite3PCacheBufferSetup
Prototype: void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n)
Coverage: 100.000% (15/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/pcache1.c
Lines: 251-271
100.000% (15/15)
175
sqlite3FindTable
Name: sqlite3FindTable
Prototype: Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase)
Coverage: 100.000% (21/21)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 297-326
100.000% (21/21)
177
sqlite3ExprSkipCollate
Name: sqlite3ExprSkipCollate
Prototype: Expr *sqlite3ExprSkipCollate(Expr *pExpr)
Coverage: 100.000% (9/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/expr.c
Lines: 108-121
100.000% (9/9)
173
sqlite3Dequote
Name: sqlite3Dequote
Prototype: void sqlite3Dequote(char *z)
Coverage: 100.000% (17/17)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/util.c
Lines: 245-266
100.000% (17/17)
177
sqlite3CodeVerifySchema
Name: sqlite3CodeVerifySchema
Prototype: void sqlite3CodeVerifySchema(Parse *pParse, int iDb)
Coverage: 100.000% (9/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/build.c
Lines: 4180-4193
100.000% (9/9)
173
sqlite3Close
Name: sqlite3Close
Prototype: static int sqlite3Close(sqlite3 *db, int forceZombie)
Coverage: 100.000% (15/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Lines: 1081-1129
100.000% (15/15)
175
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
groupConcatInverse
Name: groupConcatInverse
Prototype: static void groupConcatInverse( sqlite3_context *context, int argc, sqlite3_value **argv )
Coverage:  83.333% (15/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/func.c
Lines: 1719-1746
 83.333% (15/18)
176
findBtree
Name: findBtree
Prototype: static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb)
Coverage:  69.231% (9/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/backup.c
Lines: 82-107
 69.231% (9/13)
175
exprSelectUsage
Name: exprSelectUsage
Prototype: static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS)
Coverage:  92.308% (12/13)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/whereexpr.c
Lines: 919-941
 92.308% (12/13)
175
Page:<>1
eLOC - Effective Lines of Code: 3680
2
eLOC - Effective Lines of Code: 85
3
eLOC - Effective Lines of Code: 45
4
eLOC - Effective Lines of Code: 33
5
eLOC - Effective Lines of Code: 25
67
eLOC - Effective Lines of Code: 17
8
eLOC - Effective Lines of Code: 13
9
eLOC - Effective Lines of Code: 11
10
eLOC - Effective Lines of Code: 9
...17
eLOC - Effective Lines of Code: 1

Generated by Squish Coco 4.2.2