Lines Matching refs:testcase
9078 ** The testcase() macro is used to aid in coverage testing. When
9080 ** testcase() must be evaluated both true and false in order to
9081 ** get full branch coverage. The testcase() macro is inserted
9083 ** condition/decision coverage is inadequate. For example, testcase()
9085 ** bitmask tests, testcase() can be used to make sure each bit
9087 ** where multiple cases go to the same block of code, testcase()
9093 # define testcase(X) if( X ){ sqlite3Coverage(__LINE__); }
9095 # define testcase(X)
9101 ** within testcase() and assert() macros.
9177 ** to fit in 32-bits. This macro is used inside of various testcase()
15938 testcase( op==SQLITE_DBSTATUS_LOOKASIDE_HIT );
15939 testcase( op==SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE );
15940 testcase( op==SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL );
17020 testcase( n==sizeof(zBuf)-1 );
17021 testcase( n==sizeof(zBuf) );
17022 testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH]+1 );
17023 testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH] );
17904 testcase( sqlite3GlobalConfig.xLog!=0 );
17917 testcase( sqlite3GlobalConfig.xLog!=0 );
17973 testcase( sqlite3GlobalConfig.xLog!=0 );
17989 testcase( sqlite3GlobalConfig.xLog!=0 );
19546 testcase( sqlite3GlobalConfig.xLog!=0 );
22384 testcase( wx>0x7fffffff );
22407 testcase( px>0x7fffffff );
22572 testcase( precision>0xfff );
22860 testcase(p->accError==STRACCUM_TOOBIG);
22861 testcase(p->accError==STRACCUM_NOMEM);
22907 testcase( p->nChar + (i64)N > 0x7fffffff );
24603 ** Routine needed to support the testcase() macro.
24672 testcase( rc );
25066 testcase( c==(-1) );
25067 testcase( c==0 );
25068 testcase( c==(+1) );
25133 testcase( i==18 );
25134 testcase( i==19 );
25135 testcase( i==20 );
25244 testcase( i==10 );
25248 testcase( v-neg==2147483647 );
25671 testcase( p[0]&0x80 );
25768 testcase( sqlite3GlobalConfig.xLog!=0 );
25782 testcase( sqlite3GlobalConfig.xLog!=0 );
25798 testcase( iA==0 ); testcase( iA==1 );
25799 testcase( iB==-1 ); testcase( iB==0 );
25801 testcase( iA>0 && LARGEST_INT64 - iA == iB );
25802 testcase( iA>0 && LARGEST_INT64 - iA == iB - 1 );
25805 testcase( iA<0 && -(iA + LARGEST_INT64) == iB + 1 );
25806 testcase( iA<0 && -(iA + LARGEST_INT64) == iB + 2 );
25813 testcase( iB==SMALLEST_INT64+1 );
25815 testcase( (*pA)==(-1) ); testcase( (*pA)==0 );
25845 testcase( r==(-TWOPOWER31)-1 );
25846 testcase( r==(-TWOPOWER31) );
25847 testcase( r==TWOPOWER31 );
25848 testcase( r==TWOPOWER31-1 );
44607 ** Use a testcase() macro to make sure that malloc failure within
44611 testcase( rc!=SQLITE_OK );
44760 testcase( rc==SQLITE_NOMEM );
45331 testcase( !isSavepnt && pPg!=0 && (pPg->flags&PGHDR_NEED_SYNC)!=0 );
45591 testcase( (newSize-szPage) == currentSize );
45592 testcase( (newSize-szPage) > currentSize );
45879 testcase( rc!=SQLITE_OK );
45888 testcase( rc!=SQLITE_OK );
45895 testcase( rc!=SQLITE_OK );
46265 testcase( sqlite3PcachePagecount(pPager->pPCache)==0 );
47460 testcase( pPager->doNotSpill & SPILLFLAG_ROLLBACK );
47461 testcase( pPager->doNotSpill & SPILLFLAG_OFF );
47462 testcase( pPager->doNotSpill & SPILLFLAG_NOSYNC );
47752 testcase( rc!=SQLITE_OK );
48417 testcase( rc==SQLITE_NOMEM );
48420 testcase( rc==SQLITE_NOMEM );
48721 testcase( rc==SQLITE_NOMEM );
51238 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE-1 );
51239 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE );
51240 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE+1 );
51496 testcase( szPage<=32768 );
51497 testcase( szPage>=65536 );
52032 testcase( szPage<=32768 );
52033 testcase( szPage>=65536 );
52111 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL file */
52115 testcase( IS_BIG_INT(iOffset) );
52124 testcase( IS_BIG_INT(szDb) );
52326 testcase( pWal->szPage<=32768 );
52327 testcase( pWal->szPage>=65536 );
52674 testcase( (rc&0xff)==SQLITE_BUSY );
52675 testcase( (rc&0xff)==SQLITE_IOERR );
52676 testcase( rc==SQLITE_PROTOCOL );
52677 testcase( rc==SQLITE_OK );
52813 testcase( sz<=32768 );
52814 testcase( sz>=65536 );
52816 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */
53028 testcase( (rc&0xff)==SQLITE_IOERR );
53029 testcase( rc==SQLITE_PROTOCOL );
53030 testcase( rc==SQLITE_OK );
53272 testcase( szPage<=32768 );
53273 testcase( szPage>=65536 );
53336 testcase( rc==SQLITE_BUSY );
53337 testcase( xBusy!=0 );
55243 testcase( p->iPage>0 );
55548 testcase( surplus==maxLocal );
55549 testcase( surplus==maxLocal+1 );
55649 testcase( nPayload==pPage->maxLocal );
55650 testcase( nPayload==pPage->maxLocal+1 );
55688 testcase( nPayload==pPage->maxLocal );
55689 testcase( nPayload==pPage->maxLocal+1 );
55753 testcase( nSize==pPage->maxLocal );
55754 testcase( nSize==pPage->maxLocal+1 );
55761 testcase( nSize==pPage->maxLocal );
55762 testcase( nSize==pPage->maxLocal+1 );
55867 testcase( pc==iCellFirst );
55868 testcase( pc==iCellLast );
55882 testcase( cbrk+size==usableSize );
55883 testcase( pc+size==usableSize );
55944 testcase( x==4 );
55945 testcase( x==3 );
56022 testcase( gap+2==top );
56023 testcase( gap+1==top );
56024 testcase( gap==top );
56039 testcase( gap+2+nByte==top );
56282 testcase( pPage->nCell==MX_CELL(pBt) );
56305 testcase( pc==iCellFirst );
56306 testcase( pc==iCellLast );
56311 testcase( pc+sz==usableSize );
56526 testcase( pgno==0 );
58446 testcase( nPage==0 );
58448 testcase( pBt->nPage!=nPage );
59293 testcase( pCur->aiIdx[pCur->iPage-1] > pCur->apPage[pCur->iPage-1]->nCell );
59663 testcase( pCell+nCell+1==pPage->aDataEnd );
59670 testcase( pCell+nCell+2==pPage->aDataEnd );
59686 testcase( nCell<0 ); /* True if key size is 2^32 or more */
59687 testcase( nCell==0 ); /* Invalid key size: 0x80 0x80 0x00 */
59688 testcase( nCell==1 ); /* Invalid key size: 0x80 0x80 0x01 */
59689 testcase( nCell==2 ); /* Minimum legal index key size */
59829 testcase( idx>pPage->nCell );
60022 testcase( n==mxPage-1 );
60078 testcase( iTrunk==mxPage );
60146 testcase( iNewTrunk==mxPage );
60206 testcase( iPage==mxPage );
60211 testcase( iPage==mxPage );
60593 testcase( n==3 );
60594 testcase( n==4 );
60602 testcase( n==pPage->maxLocal );
60603 testcase( n==pPage->maxLocal+1 );
60748 testcase( pc==get2byte(&data[hdr+5]) );
60749 testcase( pc+sz==pPage->pBt->usableSize );
60961 testcase( szCell[i]!=pPg->xCellSize(pPg,pCell) );
62156 testcase( rc!=SQLITE_OK );
62789 testcase( pgnoRoot<3 );
62940 testcase( !pPage->intKey );
63846 testcase( pBt->db->flags & SQLITE_CellSizeCk );
65101 testcase( bPreserve && pMem->z==0 );
65238 testcase( (pMem->flags & (MEM_Term|MEM_Str))==(MEM_Term|MEM_Str) );
65239 testcase( (pMem->flags & (MEM_Term|MEM_Str))==0 );
65343 testcase( p->flags & MEM_Dyn );
65881 testcase( nAlloc==0 );
65882 testcase( nAlloc==31 );
65883 testcase( nAlloc==32 );
66279 testcase( rc!=SQLITE_OK );
66614 testcase( iHdr==nHdr );
66615 testcase( iHdr==nHdr+1 );
66620 testcase( iField==nRec );
66621 testcase( iField==nRec+1 );
68044 testcase( p->flags & MEM_Agg );
68045 testcase( p->flags & MEM_Dyn );
68046 testcase( p->flags & MEM_Frame );
68047 testcase( p->flags & MEM_RowSet );
69456 testcase( pAux->iArg==31 );
69832 testcase( pMem->u.i<0 );
69873 testcase( pMem->u.i<0 );
69881 testcase( pMem->u.i<0 );
69889 testcase( pMem->u.i<0 );
69897 testcase( pMem->u.i<0 );
69905 testcase( pMem->u.i<0 );
70313 testcase( aKey[0]&0x80 );
70316 testcase( aKey[0]&0x80 );
70319 testcase( aKey[0]&0x80 );
70322 testcase( aKey[0]&0x80 );
70327 testcase( aKey[0]&0x80 );
70332 testcase( aKey[0]&0x80 );
70409 testcase( serial_type==12 );
70464 testcase( serial_type==12 );
70471 testcase( (d1+mem1.n)==(unsigned)nKey1 );
70472 testcase( (d1+mem1.n+1)==(unsigned)nKey1 );
70495 testcase( serial_type==12 );
70500 testcase( (d1+nStr)==(unsigned)nKey1 );
70501 testcase( (d1+nStr+1)==(unsigned)nKey1 );
70582 testcase( lhs<0 );
70587 testcase( lhs<0 );
70592 testcase( lhs<0 );
70598 testcase( lhs<0 );
70603 testcase( lhs<0 );
70610 testcase( lhs<0 );
70742 testcase( flags & MEM_Real );
70743 testcase( flags & MEM_Null );
70744 testcase( flags & MEM_Blob );
70789 testcase( szHdr==3 );
70790 testcase( szHdr==m.n );
70798 testcase( typeRowid==1 );
70799 testcase( typeRowid==2 );
70800 testcase( typeRowid==3 );
70801 testcase( typeRowid==4 );
70802 testcase( typeRowid==5 );
70803 testcase( typeRowid==6 );
70804 testcase( typeRowid==8 );
70805 testcase( typeRowid==9 );
70810 testcase( (u32)m.n==szHdr+lenRowid );
70824 testcase( m.szMalloc!=0 );
71750 testcase( nByte<0 );
72754 testcase( zRawSql[0]==':' );
72755 testcase( zRawSql[0]=='$' );
72756 testcase( zRawSql[0]=='@' );
72757 testcase( zRawSql[0]=='#' );
73873 testcase( pOp->p5==1 );
73874 testcase( pOp->p5==2 );
73875 testcase( pOp->p5==3 );
73876 testcase( pOp->p5==4 );
74738 testcase( pOp->p2==SQLITE_AFF_TEXT );
74739 testcase( pOp->p2==SQLITE_AFF_BLOB );
74740 testcase( pOp->p2==SQLITE_AFF_NUMERIC );
74741 testcase( pOp->p2==SQLITE_AFF_INTEGER );
74742 testcase( pOp->p2==SQLITE_AFF_REAL );
74896 testcase( pIn1->flags & MEM_Int );
74897 testcase( pIn1->flags & MEM_Real );
74899 testcase( (flags1&MEM_Dyn) != (pIn1->flags&MEM_Dyn) );
74903 testcase( pIn3->flags & MEM_Int );
74904 testcase( pIn3->flags & MEM_Real );
74906 testcase( (flags3&MEM_Dyn) != (pIn3->flags&MEM_Dyn) );
75629 testcase( serial_type==127 );
75630 testcase( serial_type==128 );
75638 testcase( nHdr==126 );
75639 testcase( nHdr==127 );
76005 testcase( rc==SQLITE_BUSY_SNAPSHOT );
76006 testcase( rc==SQLITE_BUSY_RECOVERY );
76289 testcase( nField==0 ); /* Table with INTEGER PRIMARY KEY and nothing else */
77405 testcase( n==0 );
77678 testcase( res==1 );
79316 testcase( pName->enc==SQLITE_UTF8 );
79317 testcase( pName->enc==SQLITE_UTF16BE );
79318 testcase( pName->enc==SQLITE_UTF16LE );
79557 testcase( sqlite3GlobalConfig.xLog!=0 );
79572 testcase( nVmStep>0 );
80715 testcase( rc!=SQLITE_OK );
80762 testcase( rc!=SQLITE_OK );
80794 testcase( rc!=SQLITE_OK );
80805 testcase( rc!=SQLITE_OK );
83383 testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
83384 testcase( ExprHasProperty(pExpr, EP_Reduced) );
83717 testcase( pNC->ncFlags & NC_PartIdx );
83718 testcase( pNC->ncFlags & NC_IsCheck );
83842 testcase( iCol==31 );
83843 testcase( iCol==32 );
83846 testcase( iCol==31 );
83847 testcase( iCol==32 );
83967 testcase( n==BMS-1 );
84016 testcase( iCol==BMS );
84017 testcase( iCol==BMS-1 );
84246 testcase( (pDef->funcFlags & SQLITE_FUNC_MINMAX)!=0 );
84259 case TK_EXISTS: testcase( pExpr->op==TK_EXISTS );
84262 testcase( pExpr->op==TK_IN );
85672 testcase( i==0 );
85673 testcase( i==1 );
85674 testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]-1 );
85675 testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] );
86237 testcase( pEList && pEList->nExpr==mx );
86238 testcase( pEList && pEList->nExpr==mx+1 );
86327 testcase( pExpr->op==TK_ID );
86328 testcase( pExpr->op==TK_COLUMN );
86329 testcase( pExpr->op==TK_AGG_FUNCTION );
86330 testcase( pExpr->op==TK_AGG_COLUMN );
86351 testcase( pExpr->op==TK_SELECT ); /* selectNodeIsConstant will disallow */
86352 testcase( pExpr->op==TK_EXISTS ); /* selectNodeIsConstant will disallow */
86559 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
86560 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
86925 testcase( pSelect->selFlags & SF_Distinct );
86926 testcase( pKeyInfo==0 ); /* Caused by OOM in sqlite3KeyInfoAlloc() */
87015 testcase( pExpr->op==TK_EXISTS );
87016 testcase( pExpr->op==TK_SELECT );
87563 ** This routine is used within assert() and testcase() macros only
87714 testcase( usedAsColumnCache(pParse, inReg, inReg) );
87729 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
87730 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
87731 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
87732 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
87733 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
87734 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
87735 testcase( regFree1==0 );
87736 testcase( regFree2==0 );
87741 testcase( op==TK_IS );
87742 testcase( op==TK_ISNOT );
87750 testcase( regFree1==0 );
87751 testcase( regFree2==0 );
87766 assert( TK_AND==OP_And ); testcase( op==TK_AND );
87767 assert( TK_OR==OP_Or ); testcase( op==TK_OR );
87768 assert( TK_PLUS==OP_Add ); testcase( op==TK_PLUS );
87769 assert( TK_MINUS==OP_Subtract ); testcase( op==TK_MINUS );
87770 assert( TK_REM==OP_Remainder ); testcase( op==TK_REM );
87771 assert( TK_BITAND==OP_BitAnd ); testcase( op==TK_BITAND );
87772 assert( TK_BITOR==OP_BitOr ); testcase( op==TK_BITOR );
87773 assert( TK_SLASH==OP_Divide ); testcase( op==TK_SLASH );
87774 assert( TK_LSHIFT==OP_ShiftLeft ); testcase( op==TK_LSHIFT );
87775 assert( TK_RSHIFT==OP_ShiftRight ); testcase( op==TK_RSHIFT );
87776 assert( TK_CONCAT==OP_Concat ); testcase( op==TK_CONCAT );
87780 testcase( regFree1==0 );
87781 testcase( regFree2==0 );
87801 testcase( regFree2==0 );
87808 assert( TK_BITNOT==OP_BitNot ); testcase( op==TK_BITNOT );
87809 assert( TK_NOT==OP_Not ); testcase( op==TK_NOT );
87811 testcase( regFree1==0 );
87819 assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL );
87820 assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL );
87823 testcase( regFree1==0 );
87899 testcase( i==31 );
87927 testcase( pDef->funcFlags & OPFLAG_LENGTHARG );
87974 testcase( op==TK_EXISTS );
87975 testcase( op==TK_SELECT );
88011 testcase( regFree1==0 );
88012 testcase( regFree2==0 );
88021 testcase( regFree2==0 );
88133 testcase( pX->op==TK_COLUMN );
88135 testcase( regFree1==0 );
88154 testcase( pTest->op==TK_COLUMN );
88156 testcase( aListelem[i+1].pExpr->op==TK_COLUMN );
88432 testcase( jumpIfTrue==0 && jumpIfNull==0 && regFree1==0 );
88433 testcase( jumpIfTrue==0 && jumpIfNull==0 && regFree1!=0 );
88434 testcase( jumpIfTrue==0 && jumpIfNull!=0 && regFree1==0 );
88435 testcase
88436 testcase( jumpIfTrue!=0 && jumpIfNull==0 && regFree1==0 );
88437 testcase( jumpIfTrue!=0 && jumpIfNull==0 && regFree1!=0 );
88438 testcase( jumpIfTrue!=0 && jumpIfNull!=0 && regFree1==0 );
88439 testcase( jumpIfTrue!=0 && jumpIfNull!=0 && regFree1!=0 );
88470 testcase( jumpIfNull==0 );
88479 testcase( jumpIfNull==0 );
88487 testcase( jumpIfNull==0 );
88497 testcase( jumpIfNull==0 );
88502 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
88503 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
88504 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
88505 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
88506 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
88507 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
88508 testcase( regFree1==0 );
88509 testcase( regFree2==0 );
88514 testcase( op==TK_IS );
88515 testcase( op==TK_ISNOT );
88523 testcase( regFree1==0 );
88524 testcase( regFree2==0 );
88529 assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL );
88530 assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL );
88535 testcase( regFree1==0 );
88539 testcase( jumpIfNull==0 );
88562 testcase( regFree1==0 );
88563 testcase( jumpIfNull==0 );
88625 testcase( jumpIfNull==0 );
88634 testcase( jumpIfNull==0 );
88643 testcase( jumpIfNull==0 );
88653 testcase( jumpIfNull==0 );
88658 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
88659 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
88660 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
88661 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
88662 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
88663 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
88664 testcase( regFree1==0 );
88665 testcase( regFree2==0 );
88670 testcase( pExpr->op==TK_IS );
88671 testcase( pExpr->op==TK_ISNOT );
88679 testcase( regFree1==0 );
88680 testcase( regFree2==0 );
88687 testcase( op==TK_ISNULL ); VdbeCoverageIf(v, op==TK_ISNULL);
88688 testcase( op==TK_NOTNULL ); VdbeCoverageIf(v, op==TK_NOTNULL);
88689 testcase( regFree1==0 );
88693 testcase( jumpIfNull==0 );
88718 testcase( regFree1==0 );
88719 testcase( jumpIfNull==0 );
88981 testcase( pExpr->op==TK_AGG_COLUMN );
88982 testcase( pExpr->op==TK_COLUMN );
93452 testcase( zTabName[0]==0 ); /* Zero-length table names are allowed */
94392 testcase( pCol->affinity==SQLITE_AFF_BLOB );
94393 testcase( pCol->affinity==SQLITE_AFF_TEXT );
94394 testcase( pCol->affinity==SQLITE_AFF_NUMERIC );
94395 testcase( pCol->affinity==SQLITE_AFF_INTEGER );
94396 testcase( pCol->affinity==SQLITE_AFF_REAL );
98179 testcase( IsVirtual(pTab) );
98380 testcase( mask!=0xffffffff && iCol==31 );
98381 testcase( mask!=0xffffffff && iCol==32 );
98654 testcase( mask==0 );
98991 testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH] );
98992 testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH]+1 );
99395 testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] );
99396 testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]+1 );
99785 testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] );
99786 testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] );
108359 testcase( db->flags & SQLITE_ReadUncommitted );
108372 testcase( nBytes==mxLen );
108373 testcase( nBytes==mxLen+1 );
108878 testcase( j==0 || j==1 || j==2 || j==3 || j==4 || j==5 || j==6 );
109210 testcase( pKI->nXField>2 );
109480 testcase( eDest==SRT_Table );
109481 testcase( eDest==SRT_EphemTab );
109482 testcase( eDest==SRT_Fifo );
109483 testcase( eDest==SRT_DistFifo );
109563 testcase( eDest==SRT_Coroutine );
109564 testcase( eDest==SRT_Output );
109923 testcase( eDest==SRT_Output );
109924 testcase( eDest==SRT_Coroutine );
110009 testcase( pExpr->op==TK_AGG_COLUMN );
110010 testcase( pExpr->op==TK_COLUMN );
110264 testcase( aCol==0 );
110932 testcase( rc!=SQLITE_OK );
110956 testcase( p->op==TK_EXCEPT );
110957 testcase( p->op==TK_UNION );
111005 testcase( rc!=SQLITE_OK );
111089 testcase( rc!=SQLITE_OK );
111291 assert( pIn->nSdst==1 || pParse->nErr>0 ); testcase( pIn->nSdst!=1 );
112035 testcase( pSub->selFlags & SF_Recursive );
112036 testcase( pSub->selFlags & SF_MinMaxAgg );
112093 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
112094 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
112103 testcase( pSub1->pSrc->nSrc>1 );
112122 testcase( i==SQLITE_DENY );
113070 testcase( pX->zSpan==0 );
113074 testcase( pX->zSpan==0 );
113324 testcase( nArg==0 ); /* Error condition */
113325 testcase( nArg>1 ); /* Also an error */
116082 testcase( oldmask!=0xffffffff && i==31 );
116122 testcase( i==31 );
116123 testcase( i==32 );
118913 testcase( iEq==0 );
118914 testcase( bRev );
118921 testcase( bRev );
119053 testcase( pIdx->aiColumn[j]==XN_EXPR );
119065 /* The following testcase is true for indices with redundant columns.
119067 testcase( (pTerm->wtFlags & TERM_CODED)!=0 );
119068 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119078 testcase( pTerm->eOperator & WO_ISNULL );
119079 testcase( pTerm->eOperator & WO_IN );
119260 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119311 testcase( pStart->wtFlags & TERM_VIRTUAL );
119314 testcase( pStart->leftCursor!=iCur ); /* transitive constraints */
119335 testcase( pEnd->leftCursor!=iCur ); /* Transitive constraints */
119336 testcase( pEnd->wtFlags & TERM_VIRTUAL );
119469 testcase( bRev );
119470 testcase( pIdx->aSortOrder[nEq]==SQLITE_SO_DESC );
119506 testcase( pRangeStart && (pRangeStart->eOperator & WO_LE)!=0 );
119507 testcase( pRangeStart && (pRangeStart->eOperator & WO_GE)!=0 );
119508 testcase( pRangeEnd && (pRangeEnd->eOperator & WO_LE)!=0 );
119509 testcase( pRangeEnd && (pRangeEnd->eOperator & WO_GE)!=0 );
119538 testcase( pRangeStart->wtFlags & TERM_VIRTUAL );
119550 VdbeCoverageIf(v, op==OP_Rewind); testcase( op==OP_Rewind );
119551 VdbeCoverageIf(v, op==OP_Last); testcase( op==OP_Last );
119552 VdbeCoverageIf(v, op==OP_SeekGT); testcase( op==OP_SeekGT );
119553 VdbeCoverageIf(v, op==OP_SeekGE); testcase( op==OP_SeekGE );
119554 VdbeCoverageIf(v, op==OP_SeekLE); testcase( op==OP_SeekLE );
119555 VdbeCoverageIf(v, op==OP_SeekLT); testcase( op==OP_SeekLT );
119578 testcase( pRangeEnd->wtFlags & TERM_VIRTUAL );
119593 testcase( op==OP_IdxGT ); VdbeCoverageIf(v, op==OP_IdxGT );
119594 testcase( op==OP_IdxGE ); VdbeCoverageIf(v, op==OP_IdxGE );
119595 testcase( op==OP_IdxLT ); VdbeCoverageIf(v, op==OP_IdxLT );
119596 testcase( op==OP_IdxLE ); VdbeCoverageIf(v, op==OP_IdxLE );
119783 testcase( pWC->a[iTerm].wtFlags & TERM_ORINFO );
119967 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119968 testcase( pTerm->wtFlags & TERM_CODED );
119971 testcase( pWInfo->untestedTerms==0
120014 testcase( pAlt->eOperator & WO_EQ );
120015 testcase( pAlt->eOperator & WO_IS );
120016 testcase( pAlt->eOperator & WO_IN );
120036 testcase( pTerm->wtFlags & TERM_VIRTUAL );
120037 testcase( pTerm->wtFlags & TERM_CODED );
120116 testcase( wtFlags & TERM_VIRTUAL );
120598 testcase( db->mallocFailed );
120699 testcase( pOrTerm->wtFlags & TERM_COPIED );
120700 testcase( pOrTerm->wtFlags & TERM_VIRTUAL );
120716 testcase( j==1 );
120772 testcase( idxNew==0 );
121008 testcase( (prereqLeft | extraRight) != prereqLeft );
121045 testcase( idxNew==0 );
121130 testcase( idxNew1==0 );
121138 testcase( idxNew2==0 );
121170 testcase( idxNew==0 );
121632 testcase( pTerm->eOperator & WO_IS );
121742 testcase( p->eOperator & WO_IS );
121982 testcase( pTerm->pExpr->op==TK_IS );
122053 testcase( iCol==BMS );
122054 testcase( iCol==BMS-1 );
122085 testcase( pTable->nCol==BMS-1 );
122086 testcase( pTable->nCol==BMS-2 );
122106 testcase( iCol==BMS-1 );
122107 testcase( iCol==BMS );
122221 testcase( pTerm->eOperator & WO_IN );
122222 testcase( pTerm->eOperator & WO_ISNULL );
122223 testcase( pTerm->eOperator & WO_IS );
122224 testcase( pTerm->eOperator & WO_ALL );
122277 testcase( pTerm->eOperator & WO_IN );
122278 testcase( pTerm->eOperator & WO_IS );
122279 testcase( pTerm->eOperator & WO_ISNULL );
122280 testcase( pTerm->eOperator & WO_ALL );
122783 testcase( pRec->nField!=pBuilder->nRecValid );
123520 testcase( pTerm->pExpr->op==TK_IS );
123668 testcase( eOp & WO_GT );
123669 testcase( eOp & WO_GE );
123686 testcase( eOp & WO_LT );
123687 testcase( eOp & WO_LE );
123711 testcase( eOp & WO_IN );
123724 testcase( eOp & WO_EQ );
123725 testcase( eOp & WO_IS );
123726 testcase( eOp & WO_ISNULL );
123878 testcase( x==BMS-1 );
123879 testcase( x==BMS-2 );
124057 testcase( pNew->iTab!=pSrc->iCursor ); /* See ticket [98d973b8f5] */
124276 testcase( iTerm==nConstraint-1 );
124277 testcase( j==0 );
124278 testcase( j==pWC->nTerm-1 );
124284 testcase( iTerm==15 );
124285 testcase( iTerm==16 );
124593 testcase( nOrderBy==BMS-1 );
124630 testcase( pTerm->pExpr->op==TK_IS );
124665 testcase( isOrderDistinct );
124702 testcase( wctrlFlags & WHERE_GROUPBY );
124703 testcase( wctrlFlags & WHERE_DISTINCTBY );
124735 testcase( distinctColumns==0 );
124742 testcase( isOrderDistinct!=0 );
124749 testcase( isOrderDistinct==0 );
125020 testcase( jj==nTo-1 );
125076 testcase( pTo->rCost==rCost );
125079 testcase( pTo->rCost==rCost+1 );
125243 testcase( pTerm->eOperator & WO_IS );
125262 testcase( pTerm->eOperator & WO_IS );
125416 testcase( pOrderBy && pOrderBy->nExpr==BMS-1 );
125429 testcase( pTabList->nSrc==BMS );
125699 testcase( pWInfo->eOnePass==ONEPASS_OFF && pTab->nCol==BMS-1 );
125700 testcase( pWInfo->eOnePass==ONEPASS_OFF && pTab->nCol==BMS );
126026 ** Make yytestcase() the same as testcase()
126028 #define yytestcase(X) testcase(X)
129838 testcase( i==0 ); /* REINDEX */
129839 testcase( i==1 ); /* INDEXED */
129840 testcase( i==2 ); /* INDEX */
129841 testcase( i==3 ); /* DESC */
129842 testcase( i==4 ); /* ESCAPE */
129843 testcase( i==5 ); /* EACH */
129844 testcase( i==6 ); /* CHECK */
129845 testcase( i==7 ); /* KEY */
129846 testcase( i==8 ); /* BEFORE */
129847 testcase( i==9 ); /* FOREIGN */
129848 testcase( i==10 ); /* FOR */
129849 testcase( i==11 ); /* IGNORE */
129850 testcase( i==12 ); /* REGEXP */
129851 testcase( i==13 ); /* EXPLAIN */
129852 testcase( i==14 ); /* INSTEAD */
129853 testcase( i==15 ); /* ADD */
129854 testcase( i==16 ); /* DATABASE */
129855 testcase( i==17 ); /* AS */
129856 testcase( i==18 ); /* SELECT */
129857 testcase( i==19 ); /* TABLE */
129858 testcase( i==20 ); /* LEFT */
129859 testcase( i==21 ); /* THEN */
129860 testcase( i==22 ); /* END */
129861 testcase( i==23 ); /* DEFERRABLE */
129862 testcase( i==24 ); /* ELSE */
129863 testcase( i==25 ); /* EXCEPT */
129864 testcase( i==26 ); /* TRANSACTION */
129865 testcase( i==27 ); /* ACTION */
129866 testcase( i==28 ); /* ON */
129867 testcase( i==29 ); /* NATURAL */
129868 testcase( i==30 ); /* ALTER */
129869 testcase( i==31 ); /* RAISE */
129870 testcase( i==32 ); /* EXCLUSIVE */
129871 testcase( i==33 ); /* EXISTS */
129872 testcase( i==34 ); /* SAVEPOINT */
129873 testcase( i==35 ); /* INTERSECT */
129874 testcase( i==36 ); /* TRIGGER */
129875 testcase( i==37 ); /* REFERENCES */
129876 testcase( i==38 ); /* CONSTRAINT */
129877 testcase( i==39 ); /* INTO */
129878 testcase( i==40 ); /* OFFSET */
129879 testcase( i==41 ); /* OF */
129880 testcase( i==42 ); /* SET */
129881 testcase( i==43 ); /* TEMPORARY */
129882 testcase( i==44 ); /* TEMP */
129883 testcase( i==45 ); /* OR */
129884 testcase( i==46 ); /* UNIQUE */
129885 testcase( i==47 ); /* QUERY */
129886 testcase( i==48 ); /* WITHOUT */
129887 testcase( i==49 ); /* WITH */
129888 testcase( i==50 ); /* OUTER */
129889 testcase( i==51 ); /* RELEASE */
129890 testcase( i==52 ); /* ATTACH */
129891 testcase( i==53 ); /* HAVING */
129892 testcase( i==54 ); /* GROUP */
129893 testcase( i==55 ); /* UPDATE */
129894 testcase( i==56 ); /* BEGIN */
129895 testcase( i==57 ); /* INNER */
129896 testcase( i==58 ); /* RECURSIVE */
129897 testcase( i==59 ); /* BETWEEN */
129898 testcase( i==60 ); /* NOTNULL */
129899 testcase( i==61 ); /* NOT */
129900 testcase( i==62 ); /* NO */
129901 testcase( i==63 ); /* NULL */
129902 testcase( i==64 ); /* LIKE */
129903 testcase( i==65 ); /* CASCADE */
129904 testcase( i==66 ); /* ASC */
129905 testcase( i==67 ); /* DELETE */
129906 testcase( i==68 ); /* CASE */
129907 testcase( i==69 ); /* COLLATE */
129908 testcase( i==70 ); /* CREATE */
129909 testcase( i==71 ); /* CURRENT_DATE */
129910 testcase( i==72 ); /* DETACH */
129911 testcase( i==73 ); /* IMMEDIATE */
129912 testcase( i==74 ); /* JOIN */
129913 testcase( i==75 ); /* INSERT */
129914 testcase( i==76 ); /* MATCH */
129915 testcase( i==77 ); /* PLAN */
129916 testcase( i==78 ); /* ANALYZE */
129917 testcase( i==79 ); /* PRAGMA */
129918 testcase( i==80 ); /* ABORT */
129919 testcase( i==81 ); /* VALUES */
129920 testcase( i==82 ); /* VIRTUAL */
129921 testcase( i==83 ); /* LIMIT */
129922 testcase( i==84 ); /* WHEN */
129923 testcase( i==85 ); /* WHERE */
129924 testcase( i==86 ); /* RENAME */
129925 testcase( i==87 ); /* AFTER */
129926 testcase( i==88 ); /* REPLACE */
129927 testcase( i==89 ); /* AND */
129928 testcase( i==90 ); /* DEFAULT */
129929 testcase( i==91 ); /* AUTOINCREMENT */
129930 testcase( i==92 ); /* TO */
129931 testcase( i==93 ); /* IN */
129932 testcase( i==94 ); /* CAST */
129933 testcase( i==95 ); /* COLUMN */
129934 testcase( i==96 ); /* COMMIT */
129935 testcase( i==97 ); /* CONFLICT */
129936 testcase( i==98 ); /* CROSS */
129937 testcase( i==99 ); /* CURRENT_TIMESTAMP */
129938 testcase( i==100 ); /* CURRENT_TIME */
129939 testcase( i==101 ); /* PRIMARY */
129940 testcase( i==102 ); /* DEFERRED */
129941 testcase( i==103 ); /* DISTINCT */
129942 testcase( i==104 ); /* IS */
129943 testcase( i==105 ); /* DROP */
129944 testcase( i==106 ); /* FAIL */
129945 testcase( i==107 ); /* FROM */
129946 testcase( i==108 ); /* FULL */
129947 testcase( i==109 ); /* GLOB */
129948 testcase( i==110 ); /* BY */
129949 testcase( i==111 ); /* IF */
129950 testcase( i==112 ); /* ISNULL */
129951 testcase( i==113 ); /* ORDER */
129952 testcase( i==114 ); /* RESTRICT */
129953 testcase( i==115 ); /* RIGHT */
129954 testcase( i==116 ); /* ROLLBACK */
129955 testcase( i==117 ); /* ROW */
129956 testcase( i==118 ); /* UNION */
129957 testcase( i==119 ); /* USING */
129958 testcase( i==120 ); /* VACUUM */
129959 testcase( i==121 ); /* VIEW */
129960 testcase( i==122 ); /* INITIALLY */
129961 testcase( i==123 ); /* ALL */
130028 testcase( z[0]==' ' );
130029 testcase( z[0]=='\t' );
130030 testcase( z[0]=='\n' );
130031 testcase( z[0]=='\f' );
130032 testcase( z[0]=='\r' );
130145 testcase( delim=='`' );
130146 testcase( delim=='\'' );
130147 testcase( delim=='"' );
130181 testcase( z[0]=='0' ); testcase( z[0]=='1' ); testcase( z[0]=='2' );
130182 testcase( z[0]=='3' ); testcase( z[0]=='4' ); testcase( z[0]=='5' );
130183 testcase( z[0]=='6' ); testcasetestcase( z[0]=='8' );
130184 testcase( z[0]=='9' );
130232 testcase( z[0]=='$' ); testcase( z[0]=='@' );
130233 testcase( z[0]==':' ); testcase( z[0]=='#' );
130261 testcase( z[0]=='x' ); testcase( z[0]=='X' );
132447 testcase( p->funcFlags & SQLITE_DETERMINISTIC );
132949 testcase( db->pErr==0 );
133060 testcase( enc2==SQLITE_UTF16 );
133061 testcase( enc2==SQLITE_UTF16_ALIGNED );
133511 testcase( (1<<(flags&7))==0x02 ); /* READONLY */
133512 testcase( (1<<(flags&7))==0x04 ); /* READWRITE */
133513 testcase( (1<<(flags&7))==0x40 ); /* READWRITE | CREATE */
133991 testcase( sqlite3GlobalConfig.xLog!=0 );
133998 testcase( sqlite3GlobalConfig.xLog!=0 );
134005 testcase( sqlite3GlobalConfig.xLog!=0 );
135659 ** The testcase() macro is only used by the amalgamation. If undefined,
135662 #ifndef testcase
135663 # define testcase(X)
135719 ** within testcase() and assert() macros.
137855 testcase( c!=0 && (*pEnd)==0 );
137895 testcase( c!=0 && ((*pEnd)&0xfe)==0 );
142215 testcase(pCsr->filter.zTerm);
166204 #define testcase(x)
166926 ** Make fts5yytestcase() the same as testcase()
166928 #define fts5yytestcase(X) testcase(X)