CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
btree_injectable_functions.json742 linesDownload Raw Back to injectable_functions
1[2  {3    "function_name": "corruptPageError",4    "function_signature": "int corruptPageError(int lineno, MemPage *p)",5    "test_filename": "tests_btree_corruptPageError.c"6  },7  {8    "function_name": "sharedLockTrace",9    "function_signature": "static void sharedLockTrace(\n  BtShared *pBt,\n  const char *zMsg,\n  int iRoot,\n  int eLockType\n)",10    "test_filename": "tests_btree_sharedLockTrace.c"11  },12  {13    "function_name": "hasSharedCacheTableLock",14    "function_signature": "static int hasSharedCacheTableLock(\n  Btree *pBtree,         /* Handle that must hold lock */\n  Pgno iRoot,            /* Root page of b-tree */\n  int isIndex,           /* True if iRoot is the root of an index b-tree */\n  int eLockType          /* Required lock type (READ_LOCK or WRITE_LOCK) */\n)",15    "test_filename": "tests_btree_hasSharedCacheTableLock.c"16  },17  {18    "function_name": "hasReadConflicts",19    "function_signature": "static int hasReadConflicts(Btree *pBtree, Pgno iRoot)",20    "test_filename": "tests_btree_hasReadConflicts.c"21  },22  {23    "function_name": "querySharedCacheTableLock",24    "function_signature": "static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock)",25    "test_filename": "tests_btree_querySharedCacheTableLock.c"26  },27  {28    "function_name": "setSharedCacheTableLock",29    "function_signature": "static int setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock)",30    "test_filename": "tests_btree_setSharedCacheTableLock.c"31  },32  {33    "function_name": "clearAllSharedCacheTableLocks",34    "function_signature": "static void clearAllSharedCacheTableLocks(Btree *p)",35    "test_filename": "tests_btree_clearAllSharedCacheTableLocks.c"36  },37  {38    "function_name": "downgradeAllSharedCacheTableLocks",39    "function_signature": "static void downgradeAllSharedCacheTableLocks(Btree *p)",40    "test_filename": "tests_btree_downgradeAllSharedCacheTableLocks.c"41  },42  {43    "function_name": "invalidateIncrblobCursors",44    "function_signature": "static void invalidateIncrblobCursors(\n  Btree *pBtree,          /* The database file to check */\n  Pgno pgnoRoot,          /* The table that might be changing */\n  i64 iRow,               /* The rowid that might be changing */\n  int isClearTable        /* True if all rows are being deleted */\n)",45    "test_filename": "tests_btree_invalidateIncrblobCursors.c"46  },47  {48    "function_name": "btreeSetHasContent",49    "function_signature": "static int btreeSetHasContent(BtShared *pBt, Pgno pgno)",50    "test_filename": "tests_btree_btreeSetHasContent.c"51  },52  {53    "function_name": "btreeReleaseAllCursorPages",54    "function_signature": "static void btreeReleaseAllCursorPages(BtCursor *pCur)",55    "test_filename": "tests_btree_btreeReleaseAllCursorPages.c"56  },57  {58    "function_name": "saveCursorKey",59    "function_signature": "static int saveCursorKey(BtCursor *pCur)",60    "test_filename": "tests_btree_saveCursorKey.c"61  },62  {63    "function_name": "saveCursorPosition",64    "function_signature": "static int saveCursorPosition(BtCursor *pCur)",65    "test_filename": "tests_btree_saveCursorPosition.c"66  },67  {68    "function_name": "saveAllCursors",69    "function_signature": "static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept)",70    "test_filename": "tests_btree_saveAllCursors.c"71  },72  {73    "function_name": "saveCursorsOnList",74    "function_signature": "static int SQLITE_NOINLINE saveCursorsOnList(\n  BtCursor *p,         /* The first cursor that needs saving */\n  Pgno iRoot,          /* Only save cursor with this iRoot. Save all if zero */\n  BtCursor *pExcept    /* Do not save this cursor */\n)",75    "test_filename": "tests_btree_saveCursorsOnList.c"76  },77  {78    "function_name": "btreeMoveto",79    "function_signature": "static int btreeMoveto(\n  BtCursor *pCur,     /* Cursor open on the btree to be searched */\n  const void *pKey,   /* Packed key if the btree is an index */\n  i64 nKey,           /* Integer key for tables.  Size of pKey for indices */\n  int bias,           /* Bias search to the high end */\n  int *pRes           /* Write search results here */\n)",80    "test_filename": "tests_btree_btreeMoveto.c"81  },82  {83    "function_name": "btreeRestoreCursorPosition",84    "function_signature": "static int btreeRestoreCursorPosition(BtCursor *pCur)",85    "test_filename": "tests_btree_btreeRestoreCursorPosition.c"86  },87  {88    "function_name": "sqlite3BtreeCursorRestore",89    "function_signature": "int sqlite3BtreeCursorRestore(BtCursor *pCur, int *pDifferentRow)",90    "test_filename": "tests_btree_sqlite3BtreeCursorRestore.c"91  },92  {93    "function_name": "sqlite3BtreeCursorHint",94    "function_signature": "void sqlite3BtreeCursorHint(BtCursor *pCur, int eHintType, ...)",95    "test_filename": "tests_btree_sqlite3BtreeCursorHint.c"96  },97  {98    "function_name": "ptrmapPageno",99    "function_signature": "static Pgno ptrmapPageno(BtShared *pBt, Pgno pgno)",100    "test_filename": "tests_btree_ptrmapPageno.c"101  },102  {103    "function_name": "ptrmapPut",104    "function_signature": "static void ptrmapPut(BtShared *pBt, Pgno key, u8 eType, Pgno parent, int *pRC)",105    "test_filename": "tests_btree_ptrmapPut.c"106  },107  {108    "function_name": "ptrmapGet",109    "function_signature": "static int ptrmapGet(BtShared *pBt, Pgno key, u8 *pEType, Pgno *pPgno)",110    "test_filename": "tests_btree_ptrmapGet.c"111  },112  {113    "function_name": "btreeParseCellAdjustSizeForOverflow",114    "function_signature": "static SQLITE_NOINLINE void btreeParseCellAdjustSizeForOverflow(\n  MemPage *pPage,         /* Page containing the cell */\n  u8 *pCell,              /* Pointer to the cell text. */\n  CellInfo *pInfo         /* Fill in this structure */\n)",115    "test_filename": "tests_btree_btreeParseCellAdjustSizeForOverflow.c"116  },117  {118    "function_name": "btreePayloadToLocal",119    "function_signature": "static int btreePayloadToLocal(MemPage *pPage, i64 nPayload)",120    "test_filename": "tests_btree_btreePayloadToLocal.c"121  },122  {123    "function_name": "btreeParseCellPtrNoPayload",124    "function_signature": "static void btreeParseCellPtrNoPayload(\n  MemPage *pPage,         /* Page containing the cell */\n  u8 *pCell,              /* Pointer to the cell text. */\n  CellInfo *pInfo         /* Fill in this structure */\n)",125    "test_filename": "tests_btree_btreeParseCellPtrNoPayload.c"126  },127  {128    "function_name": "btreeParseCellPtr",129    "function_signature": "static void btreeParseCellPtr(\n  MemPage *pPage,         /* Page containing the cell */\n  u8 *pCell,              /* Pointer to the cell text. */\n  CellInfo *pInfo         /* Fill in this structure */\n)",130    "test_filename": "tests_btree_btreeParseCellPtr.c"131  },132  {133    "function_name": "btreeParseCellPtrIndex",134    "function_signature": "static void btreeParseCellPtrIndex(\n  MemPage *pPage,         /* Page containing the cell */\n  u8 *pCell,              /* Pointer to the cell text. */\n  CellInfo *pInfo         /* Fill in this structure */\n)",135    "test_filename": "tests_btree_btreeParseCellPtrIndex.c"136  },137  {138    "function_name": "cellSizePtr",139    "function_signature": "static u16 cellSizePtr(MemPage *pPage, u8 *pCell)",140    "test_filename": "tests_btree_cellSizePtr.c"141  },142  {143    "function_name": "cellSizePtrIdxLeaf",144    "function_signature": "static u16 cellSizePtrIdxLeaf(MemPage *pPage, u8 *pCell)",145    "test_filename": "tests_btree_cellSizePtrIdxLeaf.c"146  },147  {148    "function_name": "cellSizePtrNoPayload",149    "function_signature": "static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell)",150    "test_filename": "tests_btree_cellSizePtrNoPayload.c"151  },152  {153    "function_name": "cellSizePtrTableLeaf",154    "function_signature": "static u16 cellSizePtrTableLeaf(MemPage *pPage, u8 *pCell)",155    "test_filename": "tests_btree_cellSizePtrTableLeaf.c"156  },157  {158    "function_name": "ptrmapPutOvflPtr",159    "function_signature": "static void ptrmapPutOvflPtr(MemPage *pPage, MemPage *pSrc, u8 *pCell,int *pRC)",160    "test_filename": "tests_btree_ptrmapPutOvflPtr.c"161  },162  {163    "function_name": "defragmentPage",164    "function_signature": "static int defragmentPage(MemPage *pPage, int nMaxFrag)",165    "test_filename": "tests_btree_defragmentPage.c"166  },167  {168    "function_name": "allocateSpace",169    "function_signature": "static SQLITE_INLINE int allocateSpace(MemPage *pPage, int nByte, int *pIdx)",170    "test_filename": "tests_btree_allocateSpace.c"171  },172  {173    "function_name": "freeSpace",174    "function_signature": "static int freeSpace(MemPage *pPage, int iStart, int iSize)",175    "test_filename": "tests_btree_freeSpace.c"176  },177  {178    "function_name": "decodeFlags",179    "function_signature": "static int decodeFlags(MemPage *pPage, int flagByte)",180    "test_filename": "tests_btree_decodeFlags.c"181  },182  {183    "function_name": "btreeComputeFreeSpace",184    "function_signature": "static int btreeComputeFreeSpace(MemPage *pPage)",185    "test_filename": "tests_btree_btreeComputeFreeSpace.c"186  },187  {188    "function_name": "btreeCellSizeCheck",189    "function_signature": "static SQLITE_NOINLINE int btreeCellSizeCheck(MemPage *pPage)",190    "test_filename": "tests_btree_btreeCellSizeCheck.c"191  },192  {193    "function_name": "btreeInitPage",194    "function_signature": "static int btreeInitPage(MemPage *pPage)",195    "test_filename": "tests_btree_btreeInitPage.c"196  },197  {198    "function_name": "zeroPage",199    "function_signature": "static void zeroPage(MemPage *pPage, int flags)",200    "test_filename": "tests_btree_zeroPage.c"201  },202  {203    "function_name": "btreeGetPage",204    "function_signature": "static int btreeGetPage(\n  BtShared *pBt,       /* The btree */\n  Pgno pgno,           /* Number of the page to fetch */\n  MemPage **ppPage,    /* Return the page in this parameter */\n  int flags            /* PAGER_GET_NOCONTENT or PAGER_GET_READONLY */\n)",205    "test_filename": "tests_btree_btreeGetPage.c"206  },207  {208    "function_name": "getAndInitPage",209    "function_signature": "static int getAndInitPage(\n  BtShared *pBt,                  /* The database file */\n  Pgno pgno,                      /* Number of the page to get */\n  MemPage **ppPage,               /* Write the page pointer here */\n  int bReadOnly                   /* True for a read-only page */\n)",210    "test_filename": "tests_btree_getAndInitPage.c"211  },212  {213    "function_name": "releasePageOne",214    "function_signature": "static void releasePageOne(MemPage *pPage)",215    "test_filename": "tests_btree_releasePageOne.c"216  },217  {218    "function_name": "btreeGetUnusedPage",219    "function_signature": "static int btreeGetUnusedPage(\n  BtShared *pBt,       /* The btree */\n  Pgno pgno,           /* Number of the page to fetch */\n  MemPage **ppPage,    /* Return the page in this parameter */\n  int flags            /* PAGER_GET_NOCONTENT or PAGER_GET_READONLY */\n)",220    "test_filename": "tests_btree_btreeGetUnusedPage.c"221  },222  {223    "function_name": "pageReinit",224    "function_signature": "static void pageReinit(DbPage *pData)",225    "test_filename": "tests_btree_pageReinit.c"226  },227  {228    "function_name": "sqlite3BtreeOpen",229    "function_signature": "int sqlite3BtreeOpen(\n  sqlite3_vfs *pVfs,      /* VFS to use for this b-tree */\n  const char *zFilename,  /* Name of the file containing the BTree database */\n  sqlite3 *db,            /* Associated database handle */\n  Btree **ppBtree,        /* Pointer to new Btree object written here */\n  int flags,              /* Options */\n  int vfsFlags            /* Flags passed through to sqlite3_vfs.xOpen() */\n)",230    "test_filename": "tests_btree_sqlite3BtreeOpen.c"231  },232  {233    "function_name": "removeFromSharingList",234    "function_signature": "static int removeFromSharingList(BtShared *pBt)",235    "test_filename": "tests_btree_removeFromSharingList.c"236  },237  {238    "function_name": "allocateTempSpace",239    "function_signature": "static SQLITE_NOINLINE int allocateTempSpace(BtShared *pBt)",240    "test_filename": "tests_btree_allocateTempSpace.c"241  },242  {243    "function_name": "sqlite3BtreeClose",244    "function_signature": "int sqlite3BtreeClose(Btree *p)",245    "test_filename": "tests_btree_sqlite3BtreeClose.c"246  },247  {248    "function_name": "sqlite3BtreeSetPagerFlags",249    "function_signature": "int sqlite3BtreeSetPagerFlags(\n  Btree *p,              /* The btree to set the safety level on */\n  unsigned pgFlags       /* Various PAGER_* flags */\n)",250    "test_filename": "tests_btree_sqlite3BtreeSetPagerFlags.c"251  },252  {253    "function_name": "sqlite3BtreeSetPageSize",254    "function_signature": "int sqlite3BtreeSetPageSize(Btree *p, int pageSize, int nReserve, int iFix)",255    "test_filename": "tests_btree_sqlite3BtreeSetPageSize.c"256  },257  {258    "function_name": "sqlite3BtreeSecureDelete",259    "function_signature": "int sqlite3BtreeSecureDelete(Btree *p, int newFlag)",260    "test_filename": "tests_btree_sqlite3BtreeSecureDelete.c"261  },262  {263    "function_name": "sqlite3BtreeSetAutoVacuum",264    "function_signature": "int sqlite3BtreeSetAutoVacuum(Btree *p, int autoVacuum)",265    "test_filename": "tests_btree_sqlite3BtreeSetAutoVacuum.c"266  },267  {268    "function_name": "sqlite3BtreeGetAutoVacuum",269    "function_signature": "int sqlite3BtreeGetAutoVacuum(Btree *p)",270    "test_filename": "tests_btree_sqlite3BtreeGetAutoVacuum.c"271  },272  {273    "function_name": "setDefaultSyncFlag",274    "function_signature": "static void setDefaultSyncFlag(BtShared *pBt, u8 safety_level)",275    "test_filename": "tests_btree_setDefaultSyncFlag.c"276  },277  {278    "function_name": "lockBtree",279    "function_signature": "static int lockBtree(BtShared *pBt)",280    "test_filename": "tests_btree_lockBtree.c"281  },282  {283    "function_name": "unlockBtreeIfUnused",284    "function_signature": "static void unlockBtreeIfUnused(BtShared *pBt)",285    "test_filename": "tests_btree_unlockBtreeIfUnused.c"286  },287  {288    "function_name": "newDatabase",289    "function_signature": "static int newDatabase(BtShared *pBt)",290    "test_filename": "tests_btree_newDatabase.c"291  },292  {293    "function_name": "btreeBeginTrans",294    "function_signature": "static SQLITE_NOINLINE int btreeBeginTrans(\n  Btree *p,                 /* The btree in which to start the transaction */\n  int wrflag,               /* True to start a write transaction */\n  int *pSchemaVersion       /* Put schema version number here, if not NULL */\n)",295    "test_filename": "tests_btree_btreeBeginTrans.c"296  },297  {298    "function_name": "sqlite3BtreeBeginTrans",299    "function_signature": "int sqlite3BtreeBeginTrans(Btree *p, int wrflag, int *pSchemaVersion)",300    "test_filename": "tests_btree_sqlite3BtreeBeginTrans.c"301  },302  {303    "function_name": "setChildPtrmaps",304    "function_signature": "static int setChildPtrmaps(MemPage *pPage)",305    "test_filename": "tests_btree_setChildPtrmaps.c"306  },307  {308    "function_name": "modifyPagePointer",309    "function_signature": "static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType)",310    "test_filename": "tests_btree_modifyPagePointer.c"311  },312  {313    "function_name": "relocatePage",314    "function_signature": "static int relocatePage(\n  BtShared *pBt,           /* Btree */\n  MemPage *pDbPage,        /* Open page to move */\n  u8 eType,                /* Pointer map 'type' entry for pDbPage */\n  Pgno iPtrPage,           /* Pointer map 'page-no' entry for pDbPage */\n  Pgno iFreePage,          /* The location to move pDbPage to */\n  int isCommit             /* isCommit flag passed to sqlite3PagerMovepage */\n)",315    "test_filename": "tests_btree_relocatePage.c"316  },317  {318    "function_name": "incrVacuumStep",319    "function_signature": "static int incrVacuumStep(BtShared *pBt, Pgno nFin, Pgno iLastPg, int bCommit)",320    "test_filename": "tests_btree_incrVacuumStep.c"321  },322  {323    "function_name": "finalDbSize",324    "function_signature": "static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree)",325    "test_filename": "tests_btree_finalDbSize.c"326  },327  {328    "function_name": "sqlite3BtreeIncrVacuum",329    "function_signature": "int sqlite3BtreeIncrVacuum(Btree *p)",330    "test_filename": "tests_btree_sqlite3BtreeIncrVacuum.c"331  },332  {333    "function_name": "autoVacuumCommit",334    "function_signature": "static int autoVacuumCommit(Btree *p)",335    "test_filename": "tests_btree_autoVacuumCommit.c"336  },337  {338    "function_name": "sqlite3BtreeCommitPhaseOne",339    "function_signature": "int sqlite3BtreeCommitPhaseOne(Btree *p, const char *zSuperJrnl)",340    "test_filename": "tests_btree_sqlite3BtreeCommitPhaseOne.c"341  },342  {343    "function_name": "btreeEndTransaction",344    "function_signature": "static void btreeEndTransaction(Btree *p)",345    "test_filename": "tests_btree_btreeEndTransaction.c"346  },347  {348    "function_name": "sqlite3BtreeCommitPhaseTwo",349    "function_signature": "int sqlite3BtreeCommitPhaseTwo(Btree *p, int bCleanup)",350    "test_filename": "tests_btree_sqlite3BtreeCommitPhaseTwo.c"351  },352  {353    "function_name": "sqlite3BtreeCommit",354    "function_signature": "int sqlite3BtreeCommit(Btree *p)",355    "test_filename": "tests_btree_sqlite3BtreeCommit.c"356  },357  {358    "function_name": "sqlite3BtreeTripAllCursors",359    "function_signature": "int sqlite3BtreeTripAllCursors(Btree *pBtree, int errCode, int writeOnly)",360    "test_filename": "tests_btree_sqlite3BtreeTripAllCursors.c"361  },362  {363    "function_name": "sqlite3BtreeRollback",364    "function_signature": "int sqlite3BtreeRollback(Btree *p, int tripCode, int writeOnly)",365    "test_filename": "tests_btree_sqlite3BtreeRollback.c"366  },367  {368    "function_name": "sqlite3BtreeBeginStmt",369    "function_signature": "int sqlite3BtreeBeginStmt(Btree *p, int iStatement)",370    "test_filename": "tests_btree_sqlite3BtreeBeginStmt.c"371  },372  {373    "function_name": "sqlite3BtreeSavepoint",374    "function_signature": "int sqlite3BtreeSavepoint(Btree *p, int op, int iSavepoint)",375    "test_filename": "tests_btree_sqlite3BtreeSavepoint.c"376  },377  {378    "function_name": "btreeCursor",379    "function_signature": "static int btreeCursor(\n  Btree *p,                              /* The btree */\n  Pgno iTable,                           /* Root page of table to open */\n  int wrFlag,                            /* 1 to write. 0 read-only */\n  struct KeyInfo *pKeyInfo,              /* First arg to comparison function */\n  BtCursor *pCur                         /* Space for new cursor */\n)",380    "test_filename": "tests_btree_btreeCursor.c"381  },382  {383    "function_name": "btreeCursorWithLock",384    "function_signature": "static int btreeCursorWithLock(\n  Btree *p,                              /* The btree */\n  Pgno iTable,                           /* Root page of table to open */\n  int wrFlag,                            /* 1 to write. 0 read-only */\n  struct KeyInfo *pKeyInfo,              /* First arg to comparison function */\n  BtCursor *pCur                         /* Space for new cursor */\n)",385    "test_filename": "tests_btree_btreeCursorWithLock.c"386  },387  {388    "function_name": "sqlite3BtreeCursor",389    "function_signature": "int sqlite3BtreeCursor(\n  Btree *p,                                   /* The btree */\n  Pgno iTable,                                /* Root page of table to open */\n  int wrFlag,                                 /* 1 to write. 0 read-only */\n  struct KeyInfo *pKeyInfo,                   /* First arg to xCompare() */\n  BtCursor *pCur                              /* Write new cursor here */\n)",390    "test_filename": "tests_btree_sqlite3BtreeCursor.c"391  },392  {393    "function_name": "sqlite3BtreeClosesWithCursor",394    "function_signature": "int sqlite3BtreeClosesWithCursor(\n  Btree *pBtree,       /* the btree object */\n  BtCursor *pCur       /* Corresponding cursor */\n)",395    "test_filename": "tests_btree_sqlite3BtreeClosesWithCursor.c"396  },397  {398    "function_name": "sqlite3BtreeCloseCursor",399    "function_signature": "int sqlite3BtreeCloseCursor(BtCursor *pCur)",400    "test_filename": "tests_btree_sqlite3BtreeCloseCursor.c"401  },402  {403    "function_name": "getOverflowPage",404    "function_signature": "static int getOverflowPage(\n  BtShared *pBt,               /* The database file */\n  Pgno ovfl,                   /* Current overflow page number */\n  MemPage **ppPage,            /* OUT: MemPage handle (may be NULL) */\n  Pgno *pPgnoNext              /* OUT: Next overflow page number */\n)",405    "test_filename": "tests_btree_getOverflowPage.c"406  },407  {408    "function_name": "copyPayload",409    "function_signature": "static int copyPayload(\n  void *pPayload,           /* Pointer to page data */\n  void *pBuf,               /* Pointer to buffer */\n  int nByte,                /* Number of bytes to copy */\n  int eOp,                  /* 0 -> copy from page, 1 -> copy to page */\n  DbPage *pDbPage           /* Page containing pPayload */\n)",410    "test_filename": "tests_btree_copyPayload.c"411  },412  {413    "function_name": "accessPayload",414    "function_signature": "static int accessPayload(\n  BtCursor *pCur,      /* Cursor pointing to entry to read from */\n  u32 offset,          /* Begin reading this far into payload */\n  u32 amt,             /* Read this many bytes */\n  unsigned char *pBuf, /* Write the bytes into this buffer */\n  int eOp              /* zero to read. non-zero to write. */\n)",415    "test_filename": "tests_btree_accessPayload.c"416  },417  {418    "function_name": "accessPayloadChecked",419    "function_signature": "static SQLITE_NOINLINE int accessPayloadChecked(\n  BtCursor *pCur,\n  u32 offset,\n  u32 amt,\n  void *pBuf\n)",420    "test_filename": "tests_btree_accessPayloadChecked.c"421  },422  {423    "function_name": "moveToChild",424    "function_signature": "static int moveToChild(BtCursor *pCur, u32 newPgno)",425    "test_filename": "tests_btree_moveToChild.c"426  },427  {428    "function_name": "assertParentIndex",429    "function_signature": "static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild)",430    "test_filename": "tests_btree_assertParentIndex.c"431  },432  {433    "function_name": "moveToParent",434    "function_signature": "static void moveToParent(BtCursor *pCur)",435    "test_filename": "tests_btree_moveToParent.c"436  },437  {438    "function_name": "moveToRoot",439    "function_signature": "static int moveToRoot(BtCursor *pCur)",440    "test_filename": "tests_btree_moveToRoot.c"441  },442  {443    "function_name": "moveToLeftmost",444    "function_signature": "static int moveToLeftmost(BtCursor *pCur)",445    "test_filename": "tests_btree_moveToLeftmost.c"446  },447  {448    "function_name": "moveToRightmost",449    "function_signature": "static int moveToRightmost(BtCursor *pCur)",450    "test_filename": "tests_btree_moveToRightmost.c"451  },452  {453    "function_name": "sqlite3BtreeFirst",454    "function_signature": "int sqlite3BtreeFirst(BtCursor *pCur, int *pRes)",455    "test_filename": "tests_btree_sqlite3BtreeFirst.c"456  },457  {458    "function_name": "sqlite3BtreeIsEmpty",459    "function_signature": "int sqlite3BtreeIsEmpty(BtCursor *pCur, int *pRes)",460    "test_filename": "tests_btree_sqlite3BtreeIsEmpty.c"461  },462  {463    "function_name": "btreeLast",464    "function_signature": "static SQLITE_NOINLINE int btreeLast(BtCursor *pCur, int *pRes)",465    "test_filename": "tests_btree_btreeLast.c"466  },467  {468    "function_name": "sqlite3BtreeLast",469    "function_signature": "int sqlite3BtreeLast(BtCursor *pCur, int *pRes)",470    "test_filename": "tests_btree_sqlite3BtreeLast.c"471  },472  {473    "function_name": "sqlite3BtreeTableMoveto",474    "function_signature": "int sqlite3BtreeTableMoveto(\n  BtCursor *pCur,          /* The cursor to be moved */\n  i64 intKey,              /* The table key */\n  int biasRight,           /* If true, bias the search to the high end */\n  int *pRes                /* Write search results here */\n)",475    "test_filename": "tests_btree_sqlite3BtreeTableMoveto.c"476  },477  {478    "function_name": "indexCellCompare",479    "function_signature": "static int indexCellCompare(\n  MemPage *pPage,\n  int idx,\n  UnpackedRecord *pIdxKey,\n  RecordCompare xRecordCompare\n)",480    "test_filename": "tests_btree_indexCellCompare.c"481  },482  {483    "function_name": "sqlite3BtreeIndexMoveto",484    "function_signature": "int sqlite3BtreeIndexMoveto(\n  BtCursor *pCur,          /* The cursor to be moved */\n  UnpackedRecord *pIdxKey, /* Unpacked index key */\n  int *pRes                /* Write search results here */\n)",485    "test_filename": "tests_btree_sqlite3BtreeIndexMoveto.c"486  },487  {488    "function_name": "sqlite3BtreeRowCountEst",489    "function_signature": "i64 sqlite3BtreeRowCountEst(BtCursor *pCur)",490    "test_filename": "tests_btree_sqlite3BtreeRowCountEst.c"491  },492  {493    "function_name": "btreeNext",494    "function_signature": "static SQLITE_NOINLINE int btreeNext(BtCursor *pCur)",495    "test_filename": "tests_btree_btreeNext.c"496  },497  {498    "function_name": "sqlite3BtreeNext",499    "function_signature": "int sqlite3BtreeNext(BtCursor *pCur, int flags)",500    "test_filename": "tests_btree_sqlite3BtreeNext.c"501  },502  {503    "function_name": "btreePrevious",504    "function_signature": "static SQLITE_NOINLINE int btreePrevious(BtCursor *pCur)",505    "test_filename": "tests_btree_btreePrevious.c"506  },507  {508    "function_name": "sqlite3BtreePrevious",509    "function_signature": "int sqlite3BtreePrevious(BtCursor *pCur, int flags)",510    "test_filename": "tests_btree_sqlite3BtreePrevious.c"511  },512  {513    "function_name": "allocateBtreePage",514    "function_signature": "static int allocateBtreePage(\n  BtShared *pBt,         /* The btree */\n  MemPage **ppPage,      /* Store pointer to the allocated page here */\n  Pgno *pPgno,           /* Store the page number here */\n  Pgno nearby,           /* Search for a page near this one */\n  u8 eMode               /* BTALLOC_EXACT, BTALLOC_LT, or BTALLOC_ANY */\n)",515    "test_filename": "tests_btree_allocateBtreePage.c"516  },517  {518    "function_name": "freePage2",519    "function_signature": "static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage)",520    "test_filename": "tests_btree_freePage2.c"521  },522  {523    "function_name": "clearCellOverflow",524    "function_signature": "static SQLITE_NOINLINE int clearCellOverflow(\n  MemPage *pPage,          /* The page that contains the Cell */\n  unsigned char *pCell,    /* First byte of the Cell */\n  CellInfo *pInfo          /* Size information about the cell */\n)",525    "test_filename": "tests_btree_clearCellOverflow.c"526  },527  {528    "function_name": "fillInCell",529    "function_signature": "static int fillInCell(\n  MemPage *pPage,                /* The page that contains the cell */\n  unsigned char *pCell,          /* Complete text of the cell */\n  const BtreePayload *pX,        /* Payload with which to construct the cell */\n  int *pnSize                    /* Write cell size here */\n)",530    "test_filename": "tests_btree_fillInCell.c"531  },532  {533    "function_name": "dropCell",534    "function_signature": "static void dropCell(MemPage *pPage, int idx, int sz, int *pRC)",535    "test_filename": "tests_btree_dropCell.c"536  },537  {538    "function_name": "insertCell",539    "function_signature": "static int insertCell(\n  MemPage *pPage,   /* Page into which we are copying */\n  int i,            /* New cell becomes the i-th cell of the page */\n  u8 *pCell,        /* Content of the new cell */\n  int sz,           /* Bytes of content in pCell */\n  u8 *pTemp,        /* Temp storage space for pCell, if needed */\n  Pgno iChild       /* If non-zero, replace first 4 bytes with this value */\n)",540    "test_filename": "tests_btree_insertCell.c"541  },542  {543    "function_name": "insertCellFast",544    "function_signature": "static int insertCellFast(\n  MemPage *pPage,   /* Page into which we are copying */\n  int i,            /* New cell becomes the i-th cell of the page */\n  u8 *pCell,        /* Content of the new cell */\n  int sz            /* Bytes of content in pCell */\n)",545    "test_filename": "tests_btree_insertCellFast.c"546  },547  {548    "function_name": "populateCellCache",549    "function_signature": "static void populateCellCache(CellArray *p, int idx, int N)",550    "test_filename": "tests_btree_populateCellCache.c"551  },552  {553    "function_name": "rebuildPage",554    "function_signature": "static int rebuildPage(\n  CellArray *pCArray,             /* Content to be added to page pPg */\n  int iFirst,                     /* First cell in pCArray to use */\n  int nCell,                      /* Final number of cells on page */\n  MemPage *pPg                    /* The page to be reconstructed */\n)",555    "test_filename": "tests_btree_rebuildPage.c"556  },557  {558    "function_name": "pageInsertArray",559    "function_signature": "static int pageInsertArray(\n  MemPage *pPg,                   /* Page to add cells to */\n  u8 *pBegin,                     /* End of cell-pointer array */\n  u8 **ppData,                    /* IN/OUT: Page content-area pointer */\n  u8 *pCellptr,                   /* Pointer to cell-pointer area */\n  int iFirst,                     /* Index of first cell to add */\n  int nCell,                      /* Number of cells to add to pPg */\n  CellArray *pCArray              /* Array of cells */\n)",560    "test_filename": "tests_btree_pageInsertArray.c"561  },562  {563    "function_name": "pageFreeArray",564    "function_signature": "static int pageFreeArray(\n  MemPage *pPg,                   /* Page to edit */\n  int iFirst,                     /* First cell to delete */\n  int nCell,                      /* Cells to delete */\n  CellArray *pCArray              /* Array of cells */\n)",565    "test_filename": "tests_btree_pageFreeArray.c"566  },567  {568    "function_name": "editPage",569    "function_signature": "static int editPage(\n  MemPage *pPg,                   /* Edit this page */\n  int iOld,                       /* Index of first cell currently on page */\n  int iNew,                       /* Index of new first cell on page */\n  int nNew,                       /* Final number of cells on page */\n  CellArray *pCArray              /* Array of cells and sizes */\n)",570    "test_filename": "tests_btree_editPage.c"571  },572  {573    "function_name": "balance_quick",574    "function_signature": "static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace)",575    "test_filename": "tests_btree_balance_quick.c"576  },577  {578    "function_name": "ptrmapCheckPages",579    "function_signature": "static int ptrmapCheckPages(MemPage **apPage, int nPage)",580    "test_filename": "tests_btree_ptrmapCheckPages.c"581  },582  {583    "function_name": "copyNodeContent",584    "function_signature": "static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC)",585    "test_filename": "tests_btree_copyNodeContent.c"586  },587  {588    "function_name": "balance_nonroot",589    "function_signature": "static int balance_nonroot(\n  MemPage *pParent,               /* Parent page of siblings being balanced */\n  int iParentIdx,                 /* Index of \"the page\" in pParent */\n  u8 *aOvflSpace,                 /* page-size bytes of space for parent ovfl */\n  int isRoot,                     /* True if pParent is a root-page */\n  int bBulk                       /* True if this call is part of a bulk load */\n)",590    "test_filename": "tests_btree_balance_nonroot.c"591  },592  {593    "function_name": "balance_deeper",594    "function_signature": "static int balance_deeper(MemPage *pRoot, MemPage **ppChild)",595    "test_filename": "tests_btree_balance_deeper.c"596  },597  {598    "function_name": "anotherValidCursor",599    "function_signature": "static int anotherValidCursor(BtCursor *pCur)",600    "test_filename": "tests_btree_anotherValidCursor.c"601  },602  {603    "function_name": "balance",604    "function_signature": "static int balance(BtCursor *pCur)",605    "test_filename": "tests_btree_balance.c"606  },607  {608    "function_name": "btreeOverwriteContent",609    "function_signature": "static int btreeOverwriteContent(\n  MemPage *pPage,           /* MemPage on which writing will occur */\n  u8 *pDest,                /* Pointer to the place to start writing */\n  const BtreePayload *pX,   /* Source of data to write */\n  int iOffset,              /* Offset of first byte to write */\n  int iAmt                  /* Number of bytes to be written */\n)",610    "test_filename": "tests_btree_btreeOverwriteContent.c"611  },612  {613    "function_name": "btreeOverwriteOverflowCell",614    "function_signature": "static SQLITE_NOINLINE int btreeOverwriteOverflowCell(\n  BtCursor *pCur,                     /* Cursor pointing to cell to overwrite */\n  const BtreePayload *pX              /* Content to write into the cell */\n)",615    "test_filename": "tests_btree_btreeOverwriteOverflowCell.c"616  },617  {618    "function_name": "btreeOverwriteCell",619    "function_signature": "static int btreeOverwriteCell(BtCursor *pCur, const BtreePayload *pX)",620    "test_filename": "tests_btree_btreeOverwriteCell.c"621  },622  {623    "function_name": "sqlite3BtreeInsert",624    "function_signature": "int sqlite3BtreeInsert(\n  BtCursor *pCur,                /* Insert data into the table of this cursor */\n  const BtreePayload *pX,        /* Content of the row to be inserted */\n  int flags,                     /* True if this is likely an append */\n  int seekResult                 /* Result of prior IndexMoveto() call */\n)",625    "test_filename": "tests_btree_sqlite3BtreeInsert.c"626  },627  {628    "function_name": "sqlite3BtreeTransferRow",629    "function_signature": "int sqlite3BtreeTransferRow(BtCursor *pDest, BtCursor *pSrc, i64 iKey)",630    "test_filename": "tests_btree_sqlite3BtreeTransferRow.c"631  },632  {633    "function_name": "sqlite3BtreeDelete",634    "function_signature": "int sqlite3BtreeDelete(BtCursor *pCur, u8 flags)",635    "test_filename": "tests_btree_sqlite3BtreeDelete.c"636  },637  {638    "function_name": "btreeCreateTable",639    "function_signature": "static int btreeCreateTable(Btree *p, Pgno *piTable, int createTabFlags)",640    "test_filename": "tests_btree_btreeCreateTable.c"641  },642  {643    "function_name": "clearDatabasePage",644    "function_signature": "static int clearDatabasePage(\n  BtShared *pBt,           /* The BTree that contains the table */\n  Pgno pgno,               /* Page number to clear */\n  int freePageFlag,        /* Deallocate page if true */\n  i64 *pnChange            /* Add number of Cells freed to this counter */\n)",645    "test_filename": "tests_btree_clearDatabasePage.c"646  },647  {648    "function_name": "sqlite3BtreeClearTable",649    "function_signature": "int sqlite3BtreeClearTable(Btree *p, int iTable, i64 *pnChange)",650    "test_filename": "tests_btree_sqlite3BtreeClearTable.c"651  },652  {653    "function_name": "btreeDropTable",654    "function_signature": "static int btreeDropTable(Btree *p, Pgno iTable, int *piMoved)",655    "test_filename": "tests_btree_btreeDropTable.c"656  },657  {658    "function_name": "sqlite3BtreeGetMeta",659    "function_signature": "void sqlite3BtreeGetMeta(Btree *p, int idx, u32 *pMeta)",660    "test_filename": "tests_btree_sqlite3BtreeGetMeta.c"661  },662  {663    "function_name": "sqlite3BtreeUpdateMeta",664    "function_signature": "int sqlite3BtreeUpdateMeta(Btree *p, int idx, u32 iMeta)",665    "test_filename": "tests_btree_sqlite3BtreeUpdateMeta.c"666  },667  {668    "function_name": "sqlite3BtreeCount",669    "function_signature": "int sqlite3BtreeCount(sqlite3 *db, BtCursor *pCur, i64 *pnEntry)",670    "test_filename": "tests_btree_sqlite3BtreeCount.c"671  },672  {673    "function_name": "checkProgress",674    "function_signature": "static void checkProgress(IntegrityCk *pCheck)",675    "test_filename": "tests_btree_checkProgress.c"676  },677  {678    "function_name": "checkAppendMsg",679    "function_signature": "static void checkAppendMsg(\n  IntegrityCk *pCheck,\n  const char *zFormat,\n  ...\n)",680    "test_filename": "tests_btree_checkAppendMsg.c"681  },682  {683    "function_name": "checkRef",684    "function_signature": "static int checkRef(IntegrityCk *pCheck, Pgno iPage)",685    "test_filename": "tests_btree_checkRef.c"686  },687  {688    "function_name": "checkPtrmap",689    "function_signature": "static void checkPtrmap(\n  IntegrityCk *pCheck,   /* Integrity check context */\n  Pgno iChild,           /* Child page number */\n  u8 eType,              /* Expected pointer map type */\n  Pgno iParent           /* Expected pointer map parent page number */\n)",690    "test_filename": "tests_btree_checkPtrmap.c"691  },692  {693    "function_name": "checkList",694    "function_signature": "static void checkList(\n  IntegrityCk *pCheck,  /* Integrity checking context */\n  int isFreeList,       /* True for a freelist.  False for overflow page list */\n  Pgno iPage,           /* Page number for first page in the list */\n  u32 N                 /* Expected number of pages in the list */\n)",695    "test_filename": "tests_btree_checkList.c"696  },697  {698    "function_name": "btreeHeapInsert",699    "function_signature": "static void btreeHeapInsert(u32 *aHeap, u32 x)",700    "test_filename": "tests_btree_btreeHeapInsert.c"701  },702  {703    "function_name": "btreeHeapPull",704    "function_signature": "static int btreeHeapPull(u32 *aHeap, u32 *pOut)",705    "test_filename": "tests_btree_btreeHeapPull.c"706  },707  {708    "function_name": "checkTreePage",709    "function_signature": "static int checkTreePage(\n  IntegrityCk *pCheck,  /* Context for the sanity check */\n  Pgno iPage,           /* Page number of the page to check */\n  i64 *piMinKey,        /* Write minimum integer primary key here */\n  i64 maxKey            /* Error if integer primary key greater than this */\n)",710    "test_filename": "tests_btree_checkTreePage.c"711  },712  {713    "function_name": "sqlite3BtreeIntegrityCheck",714    "function_signature": "int sqlite3BtreeIntegrityCheck(\n  sqlite3 *db,  /* Database connection that is running the check */\n  Btree *p,     /* The btree to be checked */\n  Pgno *aRoot,  /* An array of root pages numbers for individual trees */\n  Mem *aCnt,    /* Memory cells to write counts for each tree to */\n  int nRoot,    /* Number of entries in aRoot[] */\n  int mxErr,    /* Stop reporting errors after this many */\n  int *pnErr,   /* OUT: Write number of errors seen to this variable */\n  char **pzOut  /* OUT: Write the error message string here */\n)",715    "test_filename": "tests_btree_sqlite3BtreeIntegrityCheck.c"716  },717  {718    "function_name": "sqlite3BtreeCheckpoint",719    "function_signature": "int sqlite3BtreeCheckpoint(Btree *p, int eMode, int *pnLog, int *pnCkpt)",720    "test_filename": "tests_btree_sqlite3BtreeCheckpoint.c"721  },722  {723    "function_name": "sqlite3BtreeSchemaLocked",724    "function_signature": "int sqlite3BtreeSchemaLocked(Btree *p)",725    "test_filename": "tests_btree_sqlite3BtreeSchemaLocked.c"726  },727  {728    "function_name": "sqlite3BtreeLockTable",729    "function_signature": "int sqlite3BtreeLockTable(Btree *p, int iTab, u8 isWriteLock)",730    "test_filename": "tests_btree_sqlite3BtreeLockTable.c"731  },732  {733    "function_name": "sqlite3BtreePutData",734    "function_signature": "int sqlite3BtreePutData(BtCursor *pCsr, u32 offset, u32 amt, void *z)",735    "test_filename": "tests_btree_sqlite3BtreePutData.c"736  },737  {738    "function_name": "sqlite3BtreeSetVersion",739    "function_signature": "int sqlite3BtreeSetVersion(Btree *pBtree, int iVersion)",740    "test_filename": "tests_btree_sqlite3BtreeSetVersion.c"741  }742]