Home | History | Annotate | Download | only in orig

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 );
44589 ** Use a testcase() macro to make sure that malloc failure within
44593 testcase( rc!=SQLITE_OK );
44742 testcase( rc==SQLITE_NOMEM );
45313 testcase( !isSavepnt && pPg!=0 && (pPg->flags&PGHDR_NEED_SYNC)!=0 );
45573 testcase( (newSize-szPage) == currentSize );
45574 testcase( (newSize-szPage) > currentSize );
45861 testcase( rc!=SQLITE_OK );
45870 testcase( rc!=SQLITE_OK );
45877 testcase( rc!=SQLITE_OK );
46247 testcase( sqlite3PcachePagecount(pPager->pPCache)==0 );
47442 testcase( pPager->doNotSpill & SPILLFLAG_ROLLBACK );
47443 testcase( pPager->doNotSpill & SPILLFLAG_OFF );
47444 testcase( pPager->doNotSpill & SPILLFLAG_NOSYNC );
47734 testcase( rc!=SQLITE_OK );
48399 testcase( rc==SQLITE_NOMEM );
48402 testcase( rc==SQLITE_NOMEM );
48703 testcase( rc==SQLITE_NOMEM );
51220 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE-1 );
51221 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE );
51222 testcase( pWal->hdr.mxFrame==HASHTABLE_NPAGE_ONE+1 );
51478 testcase( szPage<=32768 );
51479 testcase( szPage>=65536 );
52014 testcase( szPage<=32768 );
52015 testcase( szPage>=65536 );
52093 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL file */
52097 testcase( IS_BIG_INT(iOffset) );
52106 testcase( IS_BIG_INT(szDb) );
52308 testcase( pWal->szPage<=32768 );
52309 testcase( pWal->szPage>=65536 );
52656 testcase( (rc&0xff)==SQLITE_BUSY );
52657 testcase( (rc&0xff)==SQLITE_IOERR );
52658 testcase( rc==SQLITE_PROTOCOL );
52659 testcase( rc==SQLITE_OK );
52795 testcase( sz<=32768 );
52796 testcase( sz>=65536 );
52798 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */
53010 testcase( (rc&0xff)==SQLITE_IOERR );
53011 testcase( rc==SQLITE_PROTOCOL );
53012 testcase( rc==SQLITE_OK );
53254 testcase( szPage<=32768 );
53255 testcase( szPage>=65536 );
53318 testcase( rc==SQLITE_BUSY );
53319 testcase( xBusy!=0 );
55225 testcase( p->iPage>0 );
55530 testcase( surplus==maxLocal );
55531 testcase( surplus==maxLocal+1 );
55631 testcase( nPayload==pPage->maxLocal );
55632 testcase( nPayload==pPage->maxLocal+1 );
55670 testcase( nPayload==pPage->maxLocal );
55671 testcase( nPayload==pPage->maxLocal+1 );
55735 testcase( nSize==pPage->maxLocal );
55736 testcase( nSize==pPage->maxLocal+1 );
55743 testcase( nSize==pPage->maxLocal );
55744 testcase( nSize==pPage->maxLocal+1 );
55849 testcase( pc==iCellFirst );
55850 testcase( pc==iCellLast );
55864 testcase( cbrk+size==usableSize );
55865 testcase( pc+size==usableSize );
55926 testcase( x==4 );
55927 testcase( x==3 );
56004 testcase( gap+2==top );
56005 testcase( gap+1==top );
56006 testcase( gap==top );
56021 testcase( gap+2+nByte==top );
56264 testcase( pPage->nCell==MX_CELL(pBt) );
56287 testcase( pc==iCellFirst );
56288 testcase( pc==iCellLast );
56293 testcase( pc+sz==usableSize );
56508 testcase( pgno==0 );
58428 testcase( nPage==0 );
58430 testcase( pBt->nPage!=nPage );
59275 testcase( pCur->aiIdx[pCur->iPage-1] > pCur->apPage[pCur->iPage-1]->nCell );
59645 testcase( pCell+nCell+1==pPage->aDataEnd );
59652 testcase( pCell+nCell+2==pPage->aDataEnd );
59668 testcase( nCell<0 ); /* True if key size is 2^32 or more */
59669 testcase( nCell==0 ); /* Invalid key size: 0x80 0x80 0x00 */
59670 testcase( nCell==1 ); /* Invalid key size: 0x80 0x80 0x01 */
59671 testcase( nCell==2 ); /* Minimum legal index key size */
59811 testcase( idx>pPage->nCell );
60004 testcase( n==mxPage-1 );
60060 testcase( iTrunk==mxPage );
60128 testcase( iNewTrunk==mxPage );
60188 testcase( iPage==mxPage );
60193 testcase( iPage==mxPage );
60575 testcase( n==3 );
60576 testcase( n==4 );
60584 testcase( n==pPage->maxLocal );
60585 testcase( n==pPage->maxLocal+1 );
60730 testcase( pc==get2byte(&data[hdr+5]) );
60731 testcase( pc+sz==pPage->pBt->usableSize );
60943 testcase( szCell[i]!=pPg->xCellSize(pPg,pCell) );
62138 testcase( rc!=SQLITE_OK );
62771 testcase( pgnoRoot<3 );
62922 testcase( !pPage->intKey );
63828 testcase( pBt->db->flags & SQLITE_CellSizeCk );
65083 testcase( bPreserve && pMem->z==0 );
65220 testcase( (pMem->flags & (MEM_Term|MEM_Str))==(MEM_Term|MEM_Str) );
65221 testcase( (pMem->flags & (MEM_Term|MEM_Str))==0 );
65325 testcase( p->flags & MEM_Dyn );
65863 testcase( nAlloc==0 );
65864 testcase( nAlloc==31 );
65865 testcase( nAlloc==32 );
66261 testcase( rc!=SQLITE_OK );
66596 testcase( iHdr==nHdr );
66597 testcase( iHdr==nHdr+1 );
66602 testcase( iField==nRec );
66603 testcase( iField==nRec+1 );
68026 testcase( p->flags & MEM_Agg );
68027 testcase( p->flags & MEM_Dyn );
68028 testcase( p->flags & MEM_Frame );
68029 testcase( p->flags & MEM_RowSet );
69438 testcase( pAux->iArg==31 );
69814 testcase( pMem->u.i<0 );
69855 testcase( pMem->u.i<0 );
69863 testcase( pMem->u.i<0 );
69871 testcase( pMem->u.i<0 );
69879 testcase( pMem->u.i<0 );
69887 testcase( pMem->u.i<0 );
70295 testcase( aKey[0]&0x80 );
70298 testcase( aKey[0]&0x80 );
70301 testcase( aKey[0]&0x80 );
70304 testcase( aKey[0]&0x80 );
70309 testcase( aKey[0]&0x80 );
70314 testcase( aKey[0]&0x80 );
70391 testcase( serial_type==12 );
70446 testcase( serial_type==12 );
70453 testcase( (d1+mem1.n)==(unsigned)nKey1 );
70454 testcase( (d1+mem1.n+1)==(unsigned)nKey1 );
70477 testcase( serial_type==12 );
70482 testcase( (d1+nStr)==(unsigned)nKey1 );
70483 testcase( (d1+nStr+1)==(unsigned)nKey1 );
70564 testcase( lhs<0 );
70569 testcase( lhs<0 );
70574 testcase( lhs<0 );
70580 testcase( lhs<0 );
70585 testcase( lhs<0 );
70592 testcase( lhs<0 );
70724 testcase( flags & MEM_Real );
70725 testcase( flags & MEM_Null );
70726 testcase( flags & MEM_Blob );
70771 testcase( szHdr==3 );
70772 testcase( szHdr==m.n );
70780 testcase( typeRowid==1 );
70781 testcase( typeRowid==2 );
70782 testcase( typeRowid==3 );
70783 testcase( typeRowid==4 );
70784 testcase( typeRowid==5 );
70785 testcase( typeRowid==6 );
70786 testcase( typeRowid==8 );
70787 testcase( typeRowid==9 );
70792 testcase( (u32)m.n==szHdr+lenRowid );
70806 testcase( m.szMalloc!=0 );
71732 testcase( nByte<0 );
72736 testcase( zRawSql[0]==':' );
72737 testcase( zRawSql[0]=='$' );
72738 testcase( zRawSql[0]=='@' );
72739 testcase( zRawSql[0]=='#' );
73855 testcase( pOp->p5==1 );
73856 testcase( pOp->p5==2 );
73857 testcase( pOp->p5==3 );
73858 testcase( pOp->p5==4 );
74720 testcase( pOp->p2==SQLITE_AFF_TEXT );
74721 testcase( pOp->p2==SQLITE_AFF_BLOB );
74722 testcase( pOp->p2==SQLITE_AFF_NUMERIC );
74723 testcase( pOp->p2==SQLITE_AFF_INTEGER );
74724 testcase( pOp->p2==SQLITE_AFF_REAL );
74878 testcase( pIn1->flags & MEM_Int );
74879 testcase( pIn1->flags & MEM_Real );
74881 testcase( (flags1&MEM_Dyn) != (pIn1->flags&MEM_Dyn) );
74885 testcase( pIn3->flags & MEM_Int );
74886 testcase( pIn3->flags & MEM_Real );
74888 testcase( (flags3&MEM_Dyn) != (pIn3->flags&MEM_Dyn) );
75611 testcase( serial_type==127 );
75612 testcase( serial_type==128 );
75620 testcase( nHdr==126 );
75621 testcase( nHdr==127 );
75987 testcase( rc==SQLITE_BUSY_SNAPSHOT );
75988 testcase( rc==SQLITE_BUSY_RECOVERY );
76271 testcase( nField==0 ); /* Table with INTEGER PRIMARY KEY and nothing else */
77387 testcase( n==0 );
77660 testcase( res==1 );
79298 testcase( pName->enc==SQLITE_UTF8 );
79299 testcase( pName->enc==SQLITE_UTF16BE );
79300 testcase( pName->enc==SQLITE_UTF16LE );
79539 testcase( sqlite3GlobalConfig.xLog!=0 );
79554 testcase( nVmStep>0 );
80697 testcase( rc!=SQLITE_OK );
80744 testcase( rc!=SQLITE_OK );
80776 testcase( rc!=SQLITE_OK );
80787 testcase( rc!=SQLITE_OK );
83365 testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
83366 testcase( ExprHasProperty(pExpr, EP_Reduced) );
83699 testcase( pNC->ncFlags & NC_PartIdx );
83700 testcase( pNC->ncFlags & NC_IsCheck );
83824 testcase( iCol==31 );
83825 testcase( iCol==32 );
83828 testcase( iCol==31 );
83829 testcase( iCol==32 );
83949 testcase( n==BMS-1 );
83998 testcase( iCol==BMS );
83999 testcase( iCol==BMS-1 );
84228 testcase( (pDef->funcFlags & SQLITE_FUNC_MINMAX)!=0 );
84241 case TK_EXISTS: testcase( pExpr->op==TK_EXISTS );
84244 testcase( pExpr->op==TK_IN );
85654 testcase( i==0 );
85655 testcase( i==1 );
85656 testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER]-1 );
85657 testcase( i==db->aLimit[SQLITE_LIMIT_VARIABLE_NUMBER] );
86219 testcase( pEList && pEList->nExpr==mx );
86220 testcase( pEList && pEList->nExpr==mx+1 );
86309 testcase( pExpr->op==TK_ID );
86310 testcase( pExpr->op==TK_COLUMN );
86311 testcase( pExpr->op==TK_AGG_FUNCTION );
86312 testcase( pExpr->op==TK_AGG_COLUMN );
86333 testcase( pExpr->op==TK_SELECT ); /* selectNodeIsConstant will disallow */
86334 testcase( pExpr->op==TK_EXISTS ); /* selectNodeIsConstant will disallow */
86541 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
86542 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
86907 testcase( pSelect->selFlags & SF_Distinct );
86908 testcase( pKeyInfo==0 ); /* Caused by OOM in sqlite3KeyInfoAlloc() */
86997 testcase( pExpr->op==TK_EXISTS );
86998 testcase( pExpr->op==TK_SELECT );
87545 ** This routine is used within assert() and testcase() macros only
87696 testcase( usedAsColumnCache(pParse, inReg, inReg) );
87711 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
87712 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
87713 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
87714 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
87715 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
87716 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
87717 testcase( regFree1==0 );
87718 testcase( regFree2==0 );
87723 testcase( op==TK_IS );
87724 testcase( op==TK_ISNOT );
87732 testcase( regFree1==0 );
87733 testcase( regFree2==0 );
87748 assert( TK_AND==OP_And ); testcase( op==TK_AND );
87749 assert( TK_OR==OP_Or ); testcase( op==TK_OR );
87750 assert( TK_PLUS==OP_Add ); testcase( op==TK_PLUS );
87751 assert( TK_MINUS==OP_Subtract ); testcase( op==TK_MINUS );
87752 assert( TK_REM==OP_Remainder ); testcase( op==TK_REM );
87753 assert( TK_BITAND==OP_BitAnd ); testcase( op==TK_BITAND );
87754 assert( TK_BITOR==OP_BitOr ); testcase( op==TK_BITOR );
87755 assert( TK_SLASH==OP_Divide ); testcase( op==TK_SLASH );
87756 assert( TK_LSHIFT==OP_ShiftLeft ); testcase( op==TK_LSHIFT );
87757 assert( TK_RSHIFT==OP_ShiftRight ); testcase( op==TK_RSHIFT );
87758 assert( TK_CONCAT==OP_Concat ); testcase( op==TK_CONCAT );
87762 testcase( regFree1==0 );
87763 testcase( regFree2==0 );
87783 testcase( regFree2==0 );
87790 assert( TK_BITNOT==OP_BitNot ); testcase( op==TK_BITNOT );
87791 assert( TK_NOT==OP_Not ); testcase( op==TK_NOT );
87793 testcase( regFree1==0 );
87801 assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL );
87802 assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL );
87805 testcase( regFree1==0 );
87881 testcase( i==31 );
87909 testcase( pDef->funcFlags & OPFLAG_LENGTHARG );
87956 testcase( op==TK_EXISTS );
87957 testcase( op==TK_SELECT );
87993 testcase( regFree1==0 );
87994 testcase( regFree2==0 );
88003 testcase( regFree2==0 );
88115 testcase( pX->op==TK_COLUMN );
88117 testcase( regFree1==0 );
88136 testcase( pTest->op==TK_COLUMN );
88138 testcase( aListelem[i+1].pExpr->op==TK_COLUMN );
88414 testcase( jumpIfTrue==0 && jumpIfNull==0 && regFree1==0 );
88415 testcase( jumpIfTrue==0 && jumpIfNull==0 && regFree1!=0 );
88416 testcase( jumpIfTrue==0 && jumpIfNull!=0 && regFree1==0 );
88417 testcase( jumpIfTrue==0 && jumpIfNull!=0 && regFree1!=0 );
88418 testcase( jumpIfTrue!=0 && jumpIfNull==0 && regFree1==0 );
88419 testcase( jumpIfTrue!=0 && jumpIfNull==0 && regFree1!=0 );
88420 testcase( jumpIfTrue!=0 && jumpIfNull!=0 && regFree1==0 );
88421 testcase( jumpIfTrue!=0 && jumpIfNull!=0 && regFree1!=0 );
88452 testcase( jumpIfNull==0 );
88461 testcase( jumpIfNull==0 );
88469 testcase( jumpIfNull==0 );
88479 testcase( jumpIfNull==0 );
88484 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
88485 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
88486 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
88487 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
88488 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
88489 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
88490 testcase( regFree1==0 );
88491 testcase( regFree2==0 );
88496 testcase( op==TK_IS );
88497 testcase( op==TK_ISNOT );
88505 testcase( regFree1==0 );
88506 testcase( regFree2==0 );
88511 assert( TK_ISNULL==OP_IsNull ); testcase( op==TK_ISNULL );
88512 assert( TK_NOTNULL==OP_NotNull ); testcase( op==TK_NOTNULL );
88517 testcase( regFree1==0 );
88521 testcase( jumpIfNull==0 );
88544 testcase( regFree1==0 );
88545 testcase( jumpIfNull==0 );
88607 testcase( jumpIfNull==0 );
88616 testcase( jumpIfNull==0 );
88625 testcase( jumpIfNull==0 );
88635 testcase( jumpIfNull==0 );
88640 assert(TK_LT==OP_Lt); testcase(op==OP_Lt); VdbeCoverageIf(v,op==OP_Lt);
88641 assert(TK_LE==OP_Le); testcase(op==OP_Le); VdbeCoverageIf(v,op==OP_Le);
88642 assert(TK_GT==OP_Gt); testcase(op==OP_Gt); VdbeCoverageIf(v,op==OP_Gt);
88643 assert(TK_GE==OP_Ge); testcase(op==OP_Ge); VdbeCoverageIf(v,op==OP_Ge);
88644 assert(TK_EQ==OP_Eq); testcase(op==OP_Eq); VdbeCoverageIf(v,op==OP_Eq);
88645 assert(TK_NE==OP_Ne); testcase(op==OP_Ne); VdbeCoverageIf(v,op==OP_Ne);
88646 testcase( regFree1==0 );
88647 testcase( regFree2==0 );
88652 testcase( pExpr->op==TK_IS );
88653 testcase( pExpr->op==TK_ISNOT );
88661 testcase( regFree1==0 );
88662 testcase( regFree2==0 );
88669 testcase( op==TK_ISNULL ); VdbeCoverageIf(v, op==TK_ISNULL);
88670 testcase( op==TK_NOTNULL ); VdbeCoverageIf(v, op==TK_NOTNULL);
88671 testcase( regFree1==0 );
88675 testcase( jumpIfNull==0 );
88700 testcase( regFree1==0 );
88701 testcase( jumpIfNull==0 );
88963 testcase( pExpr->op==TK_AGG_COLUMN );
88964 testcase( pExpr->op==TK_COLUMN );
93434 testcase( zTabName[0]==0 ); /* Zero-length table names are allowed */
94374 testcase( pCol->affinity==SQLITE_AFF_BLOB );
94375 testcase( pCol->affinity==SQLITE_AFF_TEXT );
94376 testcase( pCol->affinity==SQLITE_AFF_NUMERIC );
94377 testcase( pCol->affinity==SQLITE_AFF_INTEGER );
94378 testcase( pCol->affinity==SQLITE_AFF_REAL );
98161 testcase( IsVirtual(pTab) );
98362 testcase( mask!=0xffffffff && iCol==31 );
98363 testcase( mask!=0xffffffff && iCol==32 );
98636 testcase( mask==0 );
98973 testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH] );
98974 testcase( nByte==db->aLimit[SQLITE_LIMIT_LENGTH]+1 );
99377 testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH] );
99378 testcase( nPat==db->aLimit[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]+1 );
99767 testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] );
99768 testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] );
108341 testcase( db->flags & SQLITE_ReadUncommitted );
108354 testcase( nBytes==mxLen );
108355 testcase( nBytes==mxLen+1 );
108860 testcase( j==0 || j==1 || j==2 || j==3 || j==4 || j==5 || j==6 );
109192 testcase( pKI->nXField>2 );
109462 testcase( eDest==SRT_Table );
109463 testcase( eDest==SRT_EphemTab );
109464 testcase( eDest==SRT_Fifo );
109465 testcase( eDest==SRT_DistFifo );
109545 testcase( eDest==SRT_Coroutine );
109546 testcase( eDest==SRT_Output );
109905 testcase( eDest==SRT_Output );
109906 testcase( eDest==SRT_Coroutine );
109991 testcase( pExpr->op==TK_AGG_COLUMN );
109992 testcase( pExpr->op==TK_COLUMN );
110246 testcase( aCol==0 );
110914 testcase( rc!=SQLITE_OK );
110938 testcase( p->op==TK_EXCEPT );
110939 testcase( p->op==TK_UNION );
110987 testcase( rc!=SQLITE_OK );
111071 testcase( rc!=SQLITE_OK );
111273 assert( pIn->nSdst==1 || pParse->nErr>0 ); testcase( pIn->nSdst!=1 );
112017 testcase( pSub->selFlags & SF_Recursive );
112018 testcase( pSub->selFlags & SF_MinMaxAgg );
112075 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
112076 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
112085 testcase( pSub1->pSrc->nSrc>1 );
112104 testcase( i==SQLITE_DENY );
113052 testcase( pX->zSpan==0 );
113056 testcase( pX->zSpan==0 );
113306 testcase( nArg==0 ); /* Error condition */
113307 testcase( nArg>1 ); /* Also an error */
116064 testcase( oldmask!=0xffffffff && i==31 );
116104 testcase( i==31 );
116105 testcase( i==32 );
118895 testcase( iEq==0 );
118896 testcase( bRev );
118903 testcase( bRev );
119035 testcase( pIdx->aiColumn[j]==XN_EXPR );
119047 /* The following testcase is true for indices with redundant columns.
119049 testcase( (pTerm->wtFlags & TERM_CODED)!=0 );
119050 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119060 testcase( pTerm->eOperator & WO_ISNULL );
119061 testcase( pTerm->eOperator & WO_IN );
119242 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119293 testcase( pStart->wtFlags & TERM_VIRTUAL );
119296 testcase( pStart->leftCursor!=iCur ); /* transitive constraints */
119317 testcase( pEnd->leftCursor!=iCur ); /* Transitive constraints */
119318 testcase( pEnd->wtFlags & TERM_VIRTUAL );
119451 testcase( bRev );
119452 testcase( pIdx->aSortOrder[nEq]==SQLITE_SO_DESC );
119488 testcase( pRangeStart && (pRangeStart->eOperator & WO_LE)!=0 );
119489 testcase( pRangeStart && (pRangeStart->eOperator & WO_GE)!=0 );
119490 testcase( pRangeEnd && (pRangeEnd->eOperator & WO_LE)!=0 );
119491 testcase( pRangeEnd && (pRangeEnd->eOperator & WO_GE)!=0 );
119520 testcase( pRangeStart->wtFlags & TERM_VIRTUAL );
119532 VdbeCoverageIf(v, op==OP_Rewind); testcase( op==OP_Rewind );
119533 VdbeCoverageIf(v, op==OP_Last); testcase( op==OP_Last );
119534 VdbeCoverageIf(v, op==OP_SeekGT); testcase( op==OP_SeekGT );
119535 VdbeCoverageIf(v, op==OP_SeekGE); testcase( op==OP_SeekGE );
119536 VdbeCoverageIf(v, op==OP_SeekLE); testcase( op==OP_SeekLE );
119537 VdbeCoverageIf(v, op==OP_SeekLT); testcase( op==OP_SeekLT );
119560 testcase( pRangeEnd->wtFlags & TERM_VIRTUAL );
119575 testcase( op==OP_IdxGT ); VdbeCoverageIf(v, op==OP_IdxGT );
119576 testcase( op==OP_IdxGE ); VdbeCoverageIf(v, op==OP_IdxGE );
119577 testcase( op==OP_IdxLT ); VdbeCoverageIf(v, op==OP_IdxLT );
119578 testcase( op==OP_IdxLE ); VdbeCoverageIf(v, op==OP_IdxLE );
119765 testcase( pWC->a[iTerm].wtFlags & TERM_ORINFO );
119949 testcase( pTerm->wtFlags & TERM_VIRTUAL );
119950 testcase( pTerm->wtFlags & TERM_CODED );
119953 testcase( pWInfo->untestedTerms==0
119996 testcase( pAlt->eOperator & WO_EQ );
119997 testcase( pAlt->eOperator & WO_IS );
119998 testcase( pAlt->eOperator & WO_IN );
120018 testcase( pTerm->wtFlags & TERM_VIRTUAL );
120019 testcase( pTerm->wtFlags & TERM_CODED );
120098 testcase( wtFlags & TERM_VIRTUAL );
120580 testcase( db->mallocFailed );
120681 testcase( pOrTerm->wtFlags & TERM_COPIED );
120682 testcase( pOrTerm->wtFlags & TERM_VIRTUAL );
120698 testcase( j==1 );
120754 testcase( idxNew==0 );
120990 testcase( (prereqLeft | extraRight) != prereqLeft );
121027 testcase( idxNew==0 );
121112 testcase( idxNew1==0 );
121120 testcase( idxNew2==0 );
121152 testcase( idxNew==0 );
121614 testcase( pTerm->eOperator & WO_IS );
121724 testcase( p->eOperator & WO_IS );
121964 testcase( pTerm->pExpr->op==TK_IS );
122035 testcase( iCol==BMS );
122036 testcase( iCol==BMS-1 );
122067 testcase( pTable->nCol==BMS-1 );
122068 testcase( pTable->nCol==BMS-2 );
122088 testcase( iCol==BMS-1 );
122089 testcase( iCol==BMS );
122203 testcase( pTerm->eOperator & WO_IN );
122204 testcase( pTerm->eOperator & WO_ISNULL );
122205 testcase( pTerm->eOperator & WO_IS );
122206 testcase( pTerm->eOperator & WO_ALL );
122259 testcase( pTerm->eOperator & WO_IN );
122260 testcase( pTerm->eOperator & WO_IS );
122261 testcase( pTerm->eOperator & WO_ISNULL );
122262 testcase( pTerm->eOperator & WO_ALL );
122765 testcase( pRec->nField!=pBuilder->nRecValid );
123502 testcase( pTerm->pExpr->op==TK_IS );
123650 testcase( eOp & WO_GT );
123651 testcase( eOp & WO_GE );
123668 testcase( eOp & WO_LT );
123669 testcase( eOp & WO_LE );
123693 testcase( eOp & WO_IN );
123706 testcase( eOp & WO_EQ );
123707 testcase( eOp & WO_IS );
123708 testcase( eOp & WO_ISNULL );
123860 testcase( x==BMS-1 );
123861 testcase( x==BMS-2 );
124039 testcase( pNew->iTab!=pSrc->iCursor ); /* See ticket [98d973b8f5] */
124258 testcase( iTerm==nConstraint-1 );
124259 testcase( j==0 );
124260 testcase( j==pWC->nTerm-1 );
124266 testcase( iTerm==15 );
124267 testcase( iTerm==16 );
124575 testcase( nOrderBy==BMS-1 );
124612 testcase( pTerm->pExpr->op==TK_IS );
124647 testcase( isOrderDistinct );
124684 testcase( wctrlFlags & WHERE_GROUPBY );
124685 testcase( wctrlFlags & WHERE_DISTINCTBY );
124717 testcase( distinctColumns==0 );
124724 testcase( isOrderDistinct!=0 );
124731 testcase( isOrderDistinct==0 );
125002 testcase( jj==nTo-1 );
125058 testcase( pTo->rCost==rCost );
125061 testcase( pTo->rCost==rCost+1 );
125225 testcase( pTerm->eOperator & WO_IS );
125244 testcase( pTerm->eOperator & WO_IS );
125398 testcase( pOrderBy && pOrderBy->nExpr==BMS-1 );
125411 testcase( pTabList->nSrc==BMS );
125681 testcase( pWInfo->eOnePass==ONEPASS_OFF && pTab->nCol==BMS-1 );
125682 testcase( pWInfo->eOnePass==ONEPASS_OFF && pTab->nCol==BMS );
126008 ** Make yytestcase() the same as testcase()
126010 #define yytestcase(X) testcase(X)
129820 testcase( i==0 ); /* REINDEX */
129821 testcase( i==1 ); /* INDEXED */
129822 testcase( i==2 ); /* INDEX */
129823 testcase( i==3 ); /* DESC */
129824 testcase( i==4 ); /* ESCAPE */
129825 testcase( i==5 ); /* EACH */
129826 testcase( i==6 ); /* CHECK */
129827 testcase( i==7 ); /* KEY */
129828 testcase( i==8 ); /* BEFORE */
129829 testcase( i==9 ); /* FOREIGN */
129830 testcase( i==10 ); /* FOR */
129831 testcase( i==11 ); /* IGNORE */
129832 testcase( i==12 ); /* REGEXP */
129833 testcase( i==13 ); /* EXPLAIN */
129834 testcase( i==14 ); /* INSTEAD */
129835 testcase( i==15 ); /* ADD */
129836 testcase( i==16 ); /* DATABASE */
129837 testcase( i==17 ); /* AS */
129838 testcase( i==18 ); /* SELECT */
129839 testcase( i==19 ); /* TABLE */
129840 testcase( i==20 ); /* LEFT */
129841 testcase( i==21 ); /* THEN */
129842 testcase( i==22 ); /* END */
129843 testcase( i==23 ); /* DEFERRABLE */
129844 testcase( i==24 ); /* ELSE */
129845 testcase( i==25 ); /* EXCEPT */
129846 testcase( i==26 ); /* TRANSACTION */
129847 testcase( i==27 ); /* ACTION */
129848 testcase( i==28 ); /* ON */
129849 testcase( i==29 ); /* NATURAL */
129850 testcase( i==30 ); /* ALTER */
129851 testcase( i==31 ); /* RAISE */
129852 testcase( i==32 ); /* EXCLUSIVE */
129853 testcase( i==33 ); /* EXISTS */
129854 testcase( i==34 ); /* SAVEPOINT */
129855 testcase( i==35 ); /* INTERSECT */
129856 testcase( i==36 ); /* TRIGGER */
129857 testcase( i==37 ); /* REFERENCES */
129858 testcase( i==38 ); /* CONSTRAINT */
129859 testcase( i==39 ); /* INTO */
129860 testcase( i==40 ); /* OFFSET */
129861 testcase( i==41 ); /* OF */
129862 testcase( i==42 ); /* SET */
129863 testcase( i==43 ); /* TEMPORARY */
129864 testcase( i==44 ); /* TEMP */
129865 testcase( i==45 ); /* OR */
129866 testcase( i==46 ); /* UNIQUE */
129867 testcase( i==47 ); /* QUERY */
129868 testcase( i==48 ); /* WITHOUT */
129869 testcase( i==49 ); /* WITH */
129870 testcase( i==50 ); /* OUTER */
129871 testcase( i==51 ); /* RELEASE */
129872 testcase( i==52 ); /* ATTACH */
129873 testcase( i==53 ); /* HAVING */
129874 testcase( i==54 ); /* GROUP */
129875 testcase( i==55 ); /* UPDATE */
129876 testcase( i==56 ); /* BEGIN */
129877 testcase( i==57 ); /* INNER */
129878 testcase( i==58 ); /* RECURSIVE */
129879 testcase( i==59 ); /* BETWEEN */
129880 testcase( i==60 ); /* NOTNULL */
129881 testcase( i==61 ); /* NOT */
129882 testcase( i==62 ); /* NO */
129883 testcase( i==63 ); /* NULL */
129884 testcase( i==64 ); /* LIKE */
129885 testcase( i==65 ); /* CASCADE */
129886 testcase( i==66 ); /* ASC */
129887 testcase( i==67 ); /* DELETE */
129888 testcase( i==68 ); /* CASE */
129889 testcase( i==69 ); /* COLLATE */
129890 testcase( i==70 ); /* CREATE */
129891 testcase( i==71 ); /* CURRENT_DATE */
129892 testcase( i==72 ); /* DETACH */
129893 testcase( i==73 ); /* IMMEDIATE */
129894 testcase( i==74 ); /* JOIN */
129895 testcase( i==75 ); /* INSERT */
129896 testcase( i==76 ); /* MATCH */
129897 testcase( i==77 ); /* PLAN */
129898 testcase( i==78 ); /* ANALYZE */
129899 testcase( i==79 ); /* PRAGMA */
129900 testcase( i==80 ); /* ABORT */
129901 testcase( i==81 ); /* VALUES */
129902 testcase( i==82 ); /* VIRTUAL */
129903 testcase( i==83 ); /* LIMIT */
129904 testcase( i==84 ); /* WHEN */
129905 testcase( i==85 ); /* WHERE */
129906 testcase( i==86 ); /* RENAME */
129907 testcase( i==87 ); /* AFTER */
129908 testcase( i==88 ); /* REPLACE */
129909 testcase( i==89 ); /* AND */
129910 testcase( i==90 ); /* DEFAULT */
129911 testcase( i==91 ); /* AUTOINCREMENT */
129912 testcase( i==92 ); /* TO */
129913 testcase( i==93 ); /* IN */
129914 testcase( i==94 ); /* CAST */
129915 testcase( i==95 ); /* COLUMN */
129916 testcase( i==96 ); /* COMMIT */
129917 testcase( i==97 ); /* CONFLICT */
129918 testcase( i==98 ); /* CROSS */
129919 testcase( i==99 ); /* CURRENT_TIMESTAMP */
129920 testcase( i==100 ); /* CURRENT_TIME */
129921 testcase( i==101 ); /* PRIMARY */
129922 testcase( i==102 ); /* DEFERRED */
129923 testcase( i==103 ); /* DISTINCT */
129924 testcase( i==104 ); /* IS */
129925 testcase( i==105 ); /* DROP */
129926 testcase( i==106 ); /* FAIL */
129927 testcase( i==107 ); /* FROM */
129928 testcase( i==108 ); /* FULL */
129929 testcase( i==109 ); /* GLOB */
129930 testcase( i==110 ); /* BY */
129931 testcase( i==111 ); /* IF */
129932 testcase( i==112 ); /* ISNULL */
129933 testcase( i==113 ); /* ORDER */
129934 testcase( i==114 ); /* RESTRICT */
129935 testcase( i==115 ); /* RIGHT */
129936 testcase( i==116 ); /* ROLLBACK */
129937 testcase( i==117 ); /* ROW */
129938 testcase( i==118 ); /* UNION */
129939 testcase( i==119 ); /* USING */
129940 testcase( i==120 ); /* VACUUM */
129941 testcase( i==121 ); /* VIEW */
129942 testcase( i==122 ); /* INITIALLY */
129943 testcase( i==123 ); /* ALL */
130010 testcase( z[0]==' ' );
130011 testcase( z[0]=='\t' );
130012 testcase( z[0]=='\n' );
130013 testcase( z[0]=='\f' );
130014 testcase( z[0]=='\r' );
130127 testcase( delim=='`' );
130128 testcase( delim=='\'' );
130129 testcase( delim=='"' );
130163 testcase( z[0]=='0' ); testcase( z[0]=='1' ); testcase( z[0]=='2' );
130164 testcase( z[0]=='3' ); testcase( z[0]=='4' ); testcase( z[0]=='5' );
130165 testcase( z[0]=='6' ); testcase( z[0]=='7' ); testcase( z[0]=='8' );
130166 testcase( z[0]=='9' );
130214 testcase( z[0]=='$' ); testcase( z[0]=='@' );
130215 testcase( z[0]==':' ); testcase( z[0]=='#' );
130243 testcase( z[0]=='x' ); testcase( z[0]=='X' );
132429 testcase( p->funcFlags & SQLITE_DETERMINISTIC );
132931 testcase( db->pErr==0 );
133042 testcase( enc2==SQLITE_UTF16 );
133043 testcase( enc2==SQLITE_UTF16_ALIGNED );
133493 testcase( (1<<(flags&7))==0x02 ); /* READONLY */
133494 testcase( (1<<(flags&7))==0x04 ); /* READWRITE */
133495 testcase( (1<<(flags&7))==0x40 ); /* READWRITE | CREATE */
133973 testcase( sqlite3GlobalConfig.xLog!=0 );
133980 testcase( sqlite3GlobalConfig.xLog!=0 );
133987 testcase( sqlite3GlobalConfig.xLog!=0 );
135641 ** The testcase() macro is only used by the amalgamation. If undefined,
135644 #ifndef testcase
135645 # define testcase(X)
135701 ** within testcase() and assert() macros.
137837 testcase( c!=0 && (*pEnd)==0 );
137877 testcase( c!=0 && ((*pEnd)&0xfe)==0 );
142185 testcase(pCsr->filter.zTerm);
166174 #define testcase(x)
166896 ** Make fts5yytestcase() the same as testcase()
166898 #define fts5yytestcase(X) testcase(X)