OpenCoverage

main.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/main.c
Switch to Source codePreprocessed file
LineSourceCount
1int sqlite3StmtVtabInit(sqlite3*);-
2const char sqlite3_version[] = "3.26.0";-
3-
4-
5-
6-
7-
8const char *sqlite3_libversion(void){ return
executed 5 times by 1 test: return sqlite3_version;
Executed by:
  • Self test (438)
sqlite3_version;
executed 5 times by 1 test: return sqlite3_version;
Executed by:
  • Self test (438)
}
5
9-
10-
11-
12-
13-
14-
15-
16const char *sqlite3_sourceid(void){ return
executed 1890 times by 1 test: return "2018-09-23 02:01:42 2fd62fccd13e326dbd7dd730112542c6faa56e466bf4f7b8e22ced543031280c";
Executed by:
  • Self test (438)
"2018-09-23 02:01:42 2fd62fccd13e326dbd7dd730112542c6faa56e466bf4f7b8e22ced543031280c";
executed 1890 times by 1 test: return "2018-09-23 02:01:42 2fd62fccd13e326dbd7dd730112542c6faa56e466bf4f7b8e22ced543031280c";
Executed by:
  • Self test (438)
}
1890
17-
18-
19-
20-
21int sqlite3_libversion_number(void){ return
executed 785 times by 1 test: return 3026000;
Executed by:
  • Self test (438)
3026000;
executed 785 times by 1 test: return 3026000;
Executed by:
  • Self test (438)
}
785
22-
23-
24-
25-
26-
27int sqlite3_threadsafe(void){ return
executed 15087 times by 2 tests: return 1;
Executed by:
  • Self test (438)
  • Self test (63)
1;
executed 15087 times by 2 tests: return 1;
Executed by:
  • Self test (438)
  • Self test (63)
}
15087
28 int sqlite3OSTrace = 0;-
29char *sqlite3_temp_directory = 0;-
30char *sqlite3_data_directory = 0;-
31int sqlite3_initialize(void){-
32 sqlite3_mutex *pMaster;-
33 int rc;-
34 -
35 ((void) (0))-
36 ;-
37-
38-
39-
40-
41-
42-
43 if( sqlite3Config.isInit
sqlite3Config.isInitDescription
TRUEevaluated 4473830 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 3193 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 4473830 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 4473830 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
3193-4473830
44 rc = sqlite3MutexInit();-
45 if( rc
rcDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3191 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 2 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 2 times by 1 test: return rc;
Executed by:
  • Self test (438)
2-3191
46-
47-
48-
49-
50-
51-
52-
53 pMaster = sqlite3MutexAlloc(2);-
54 sqlite3_mutex_enter(pMaster);-
55 sqlite3Config.isMutexInit = 1;-
56 if( !sqlite3Config.isMallocInit
!sqlite3Config.isMallocInitDescription
TRUEevaluated 533 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2658 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
533-2658
57 rc = sqlite3MallocInit();-
58 }
executed 533 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
533
59 if( rc==0
rc==0Description
TRUEevaluated 3189 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-3189
60 sqlite3Config.isMallocInit = 1;-
61 if( !sqlite3Config.pInitMutex
!sqlite3Config.pInitMutexDescription
TRUEevaluated 576 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2613 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
576-2613
62 sqlite3Config.pInitMutex =-
63 sqlite3MutexAlloc(1);-
64 if( sqlite3Config.bCoreMutex
sqlite3Config.bCoreMutexDescription
TRUEevaluated 528 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 48 times by 1 test
Evaluated by:
  • Self test (438)
&& !sqlite3Config.pInitMutex
!sqlite3Config.pInitMutexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 526 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
2-528
65 rc = 7;-
66 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
67 }
executed 576 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
576
68 }
executed 3189 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
3189
69 if( rc==0
rc==0Description
TRUEevaluated 3187 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
4-3187
70 sqlite3Config.nRefInitMutex++;-
71 }
executed 3187 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
3187
72 sqlite3_mutex_leave(pMaster);-
73-
74-
75-
76-
77 if( rc!=0
rc!=0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3187 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
4-3187
78 return
executed 4 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 4 times by 1 test: return rc;
Executed by:
  • Self test (438)
4
79 }-
80 sqlite3_mutex_enter(sqlite3Config.pInitMutex);-
81 if( sqlite3Config.isInit==0
sqlite3Config.isInit==0Description
TRUEevaluated 3187 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEnever evaluated
&& sqlite3Config.inProgress==0
sqlite3Config.inProgress==0Description
TRUEevaluated 534 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2653 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-3187
82 sqlite3Config.inProgress = 1;-
83-
84-
85-
86-
87-
88-
89 memset(&sqlite3BuiltinFunctions, 0, sizeof(sqlite3BuiltinFunctions));-
90 sqlite3RegisterBuiltinFunctions();-
91 if( sqlite3Config.isPCacheInit==0
sqlite3Config.isPCacheInit==0Description
TRUEevaluated 532 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-532
92 rc = sqlite3PcacheInitialize();-
93 }
executed 532 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
532
94 if( rc==0
rc==0Description
TRUEevaluated 532 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-532
95 sqlite3Config.isPCacheInit = 1;-
96 rc = sqlite3OsInit();-
97 }
executed 532 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
532
98-
99-
100-
101-
102-
103 if( rc==0
rc==0Description
TRUEevaluated 530 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
4-530
104 sqlite3PCacheBufferSetup( sqlite3Config.pPage,-
105 sqlite3Config.szPage, sqlite3Config.nPage);-
106 sqlite3Config.isInit = 1;-
107-
108-
109-
110 }
executed 530 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
530
111 sqlite3Config.inProgress = 0;-
112 }
executed 534 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
534
113 sqlite3_mutex_leave(sqlite3Config.pInitMutex);-
114-
115-
116-
117-
118 sqlite3_mutex_enter(pMaster);-
119 sqlite3Config.nRefInitMutex--;-
120 if( sqlite3Config.nRefInitMutex<=0
sqlite3Config.nRefInitMutex<=0Description
TRUEevaluated 534 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2653 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
534-2653
121 -
122 ((void) (0))-
123 ;-
124 sqlite3_mutex_free(sqlite3Config.pInitMutex);-
125 sqlite3Config.pInitMutex = 0;-
126 }
executed 534 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
534
127 sqlite3_mutex_leave(pMaster);-
128 return
executed 3187 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
rc;
executed 3187 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
3187
129}-
130int sqlite3_shutdown(void){-
131-
132-
133-
134-
135-
136-
137-
138 if( sqlite3Config.isInit
sqlite3Config.isInitDescription
TRUEevaluated 93 times by 6 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
FALSEevaluated 447 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
93-447
139-
140-
141-
142-
143 sqlite3_os_end();-
144 sqlite3_reset_auto_extension();-
145 sqlite3Config.isInit = 0;-
146 }
executed 93 times by 6 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
93
147 if( sqlite3Config.isPCacheInit
sqlite3Config.isPCacheInitDescription
TRUEevaluated 93 times by 6 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
FALSEevaluated 447 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
93-447
148 sqlite3PcacheShutdown();-
149 sqlite3Config.isPCacheInit = 0;-
150 }
executed 93 times by 6 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
93
151 if( sqlite3Config.isMallocInit
sqlite3Config.isMallocInitDescription
TRUEevaluated 94 times by 6 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
FALSEevaluated 446 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
94-446
152 sqlite3MallocEnd();-
153 sqlite3Config.isMallocInit = 0;-
154 sqlite3_data_directory = 0;-
155 sqlite3_temp_directory = 0;-
156-
157 }
executed 94 times by 6 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
94
158 if( sqlite3Config.isMutexInit
sqlite3Config.isMutexInitDescription
TRUEevaluated 95 times by 6 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
FALSEevaluated 445 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
95-445
159 sqlite3MutexEnd();-
160 sqlite3Config.isMutexInit = 0;-
161 }
executed 95 times by 6 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
95
162-
163 return
executed 540 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 540 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
540
164}-
165int sqlite3_config(int op, ...){-
166 va_list ap;-
167 int rc = 0;-
168-
169-
170-
171 if( sqlite3Config.isInit
sqlite3Config.isInitDescription
TRUEevaluated 977 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1056 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 977 times by 1 test: return sqlite3MisuseError(371);
Executed by:
  • Self test (438)
sqlite3MisuseError(371);
executed 977 times by 1 test: return sqlite3MisuseError(371);
Executed by:
  • Self test (438)
977-1056
172-
173 -
174 __builtin_va_start(-
175 ap-
176 ,-
177 op-
178 )-
179 ;-
180 switch( op ){-
181-
182-
183-
184-
185-
186 case
executed 6 times by 1 test: case 1:
Executed by:
  • Self test (438)
1:
executed 6 times by 1 test: case 1:
Executed by:
  • Self test (438)
{
6
187-
188-
189 sqlite3Config.bCoreMutex = 0;-
190 sqlite3Config.bFullMutex = 0;-
191 break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
192 }-
193-
194-
195 case
executed 6 times by 1 test: case 2:
Executed by:
  • Self test (438)
2:
executed 6 times by 1 test: case 2:
Executed by:
  • Self test (438)
{
6
196-
197-
198 sqlite3Config.bCoreMutex = 1;-
199 sqlite3Config.bFullMutex = 0;-
200 break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
201 }-
202-
203-
204 case
executed 3 times by 1 test: case 3:
Executed by:
  • Self test (438)
3:
executed 3 times by 1 test: case 3:
Executed by:
  • Self test (438)
{
3
205-
206-
207 sqlite3Config.bCoreMutex = 1;-
208 sqlite3Config.bFullMutex = 1;-
209 break;
executed 3 times by 1 test: break;
Executed by:
  • Self test (438)
3
210 }-
211-
212-
213 case
executed 24 times by 1 test: case 10:
Executed by:
  • Self test (438)
10:
executed 24 times by 1 test: case 10:
Executed by:
  • Self test (438)
{
24
214-
215 sqlite3Config.mutex = *-
216 __builtin_va_arg(-
217 ap-
218 ,-
219 sqlite3_mutex_methods*-
220 )-
221 ;-
222 break;
executed 24 times by 1 test: break;
Executed by:
  • Self test (438)
24
223 }-
224-
225-
226 case
executed 12 times by 1 test: case 11:
Executed by:
  • Self test (438)
11:
executed 12 times by 1 test: case 11:
Executed by:
  • Self test (438)
{
12
227-
228 *-
229 __builtin_va_arg(-
230 ap-
231 ,-
232 sqlite3_mutex_methods*-
233 ) -
234 = sqlite3Config.mutex;-
235 break;
executed 12 times by 1 test: break;
Executed by:
  • Self test (438)
12
236 }-
237-
238-
239 case
executed 459 times by 438 tests: case 4:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
4:
executed 459 times by 438 tests: case 4:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
{
459
240-
241-
242-
243-
244-
245 sqlite3Config.m = *-
246 __builtin_va_arg(-
247 ap-
248 ,-
249 sqlite3_mem_methods*-
250 )-
251 ;-
252 break;
executed 459 times by 438 tests: break;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
459
253 }-
254 case
executed 11 times by 1 test: case 5:
Executed by:
  • Self test (438)
5:
executed 11 times by 1 test: case 5:
Executed by:
  • Self test (438)
{
11
255-
256-
257-
258-
259 if( sqlite3Config.m.xMalloc==0
sqlite3Config.m.xMalloc==0Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
) sqlite3MemSetDefault();
never executed: sqlite3MemSetDefault();
0-11
260 *-
261 __builtin_va_arg(-
262 ap-
263 ,-
264 sqlite3_mem_methods*-
265 ) -
266 = sqlite3Config.m;-
267 break;
executed 11 times by 1 test: break;
Executed by:
  • Self test (438)
11
268 }-
269 case
executed 4 times by 1 test: case 9:
Executed by:
  • Self test (438)
9:
executed 4 times by 1 test: case 9:
Executed by:
  • Self test (438)
{
4
270-
271-
272-
273 sqlite3Config.bMemstat = -
274 __builtin_va_arg(-
275 ap-
276 ,-
277 int-
278 )-
279 ;-
280 break;
executed 4 times by 1 test: break;
Executed by:
  • Self test (438)
4
281 }-
282 case
never executed: case 27:
27:
never executed: case 27:
{
0
283 sqlite3Config.bSmallMalloc = -
284 __builtin_va_arg(-
285 ap-
286 ,-
287 int-
288 )-
289 ;-
290 break;
never executed: break;
0
291 }-
292 case
executed 21 times by 1 test: case 7:
Executed by:
  • Self test (438)
7:
executed 21 times by 1 test: case 7:
Executed by:
  • Self test (438)
{
21
293-
294-
295-
296-
297 sqlite3Config.pPage = -
298 __builtin_va_arg(-
299 ap-
300 ,-
301 void*-
302 )-
303 ;-
304 sqlite3Config.szPage = -
305 __builtin_va_arg(-
306 ap-
307 ,-
308 int-
309 )-
310 ;-
311 sqlite3Config.nPage = -
312 __builtin_va_arg(-
313 ap-
314 ,-
315 int-
316 )-
317 ;-
318 break;
executed 21 times by 1 test: break;
Executed by:
  • Self test (438)
21
319 }-
320 case
never executed: case 24:
24:
never executed: case 24:
{
0
321-
322-
323-
324-
325 *-
326 __builtin_va_arg(-
327 ap-
328 ,-
329 int*-
330 ) -
331 =-
332 sqlite3HeaderSizeBtree() +-
333 sqlite3HeaderSizePcache() +-
334 sqlite3HeaderSizePcache1();-
335 break;
never executed: break;
0
336 }-
337-
338 case
never executed: case 14:
14:
never executed: case 14:
{
0
339-
340 break;
never executed: break;
0
341 }-
342 case
never executed: case 15:
15:
never executed: case 15:
{
0
343-
344 rc = 1;-
345 break;
never executed: break;
0
346 }-
347-
348 case
executed 460 times by 438 tests: case 18:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
18:
executed 460 times by 438 tests: case 18:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
{
460
349-
350-
351-
352-
353 sqlite3Config.pcache2 = *-
354 __builtin_va_arg(-
355 ap-
356 ,-
357 sqlite3_pcache_methods2*-
358 )-
359 ;-
360 break;
executed 460 times by 438 tests: break;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
460
361 }-
362 case
executed 11 times by 1 test: case 19:
Executed by:
  • Self test (438)
19:
executed 11 times by 1 test: case 19:
Executed by:
  • Self test (438)
{
11
363-
364-
365-
366-
367 if( sqlite3Config.pcache2.xInit==0
sqlite3Config.pcache2.xInit==0Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
){
0-11
368 sqlite3PCacheSetDefault();-
369 }
never executed: end of block
0
370 *-
371 __builtin_va_arg(-
372 ap-
373 ,-
374 sqlite3_pcache_methods2*-
375 ) -
376 = sqlite3Config.pcache2;-
377 break;
executed 11 times by 1 test: break;
Executed by:
  • Self test (438)
11
378 }-
379 case
executed 2 times by 1 test: case 13:
Executed by:
  • Self test (438)
13:
executed 2 times by 1 test: case 13:
Executed by:
  • Self test (438)
{
2
380 sqlite3Config.szLookaside = -
381 __builtin_va_arg(-
382 ap-
383 ,-
384 int-
385 )-
386 ;-
387 sqlite3Config.nLookaside = -
388 __builtin_va_arg(-
389 ap-
390 ,-
391 int-
392 )-
393 ;-
394 break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
395 }-
396-
397-
398-
399-
400-
401 case
executed 10 times by 1 test: case 16:
Executed by:
  • Self test (438)
16:
executed 10 times by 1 test: case 16:
Executed by:
  • Self test (438)
{
10
402-
403-
404-
405-
406 typedef void(*LOGFUNC_t)(void*,int,const char*);-
407 sqlite3Config.xLog = -
408 __builtin_va_arg(-
409 ap-
410 ,-
411 LOGFUNC_t-
412 )-
413 ;-
414 sqlite3Config.pLogArg = -
415 __builtin_va_arg(-
416 ap-
417 ,-
418 void*-
419 )-
420 ;-
421 break;
executed 10 times by 1 test: break;
Executed by:
  • Self test (438)
10
422 }-
423-
424-
425-
426-
427-
428-
429 case
executed 23 times by 6 tests: case 17:
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
17:
executed 23 times by 6 tests: case 17:
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
{
23
430-
431-
432-
433-
434 sqlite3Config.bOpenUri = -
435 __builtin_va_arg(-
436 ap-
437 ,-
438 int-
439 )-
440 ;-
441 break;
executed 23 times by 6 tests: break;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
23
442 }-
443-
444 case
executed 2 times by 1 test: case 20:
Executed by:
  • Self test (438)
20:
executed 2 times by 1 test: case 20:
Executed by:
  • Self test (438)
{
2
445-
446-
447-
448-
449 sqlite3Config.bUseCis = -
450 __builtin_va_arg(-
451 ap-
452 ,-
453 int-
454 )-
455 ;-
456 break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
457 }-
458 case
never executed: case 22:
22:
never executed: case 22:
{
0
459-
460-
461-
462-
463 sqlite3_int64 szMmap = -
464 __builtin_va_arg(-
465 ap-
466 ,-
467 sqlite3_int64-
468 )-
469 ;-
470 sqlite3_int64 mxMmap = -
471 __builtin_va_arg(-
472 ap-
473 ,-
474 sqlite3_int64-
475 )-
476 ;-
477 if( mxMmap<0
mxMmap<0Description
TRUEnever evaluated
FALSEnever evaluated
|| mxMmap>0x7fff0000
mxMmap>0x7fff0000Description
TRUEnever evaluated
FALSEnever evaluated
){
0
478 mxMmap = 0x7fff0000;-
479 }
never executed: end of block
0
480 if( szMmap<0
szMmap<0Description
TRUEnever evaluated
FALSEnever evaluated
) szMmap = 0;
never executed: szMmap = 0;
0
481 if( szMmap>mxMmap
szMmap>mxMmapDescription
TRUEnever evaluated
FALSEnever evaluated
) szMmap = mxMmap;
never executed: szMmap = mxMmap;
0
482 sqlite3Config.mxMmap = mxMmap;-
483 sqlite3Config.szMmap = szMmap;-
484 break;
never executed: break;
0
485 }-
486 case
executed 2 times by 1 test: case 25:
Executed by:
  • Self test (438)
25:
executed 2 times by 1 test: case 25:
Executed by:
  • Self test (438)
{
2
487 sqlite3Config.szPma = -
488 __builtin_va_arg(-
489 ap-
490 ,-
491 unsigned int-
492 )-
493 ;-
494 break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
495 }-
496-
497 case
never executed: case 26:
26:
never executed: case 26:
{
0
498 sqlite3Config.nStmtSpill = -
499 __builtin_va_arg(-
500 ap-
501 ,-
502 int-
503 )-
504 ;-
505 break;
never executed: break;
0
506 }-
507 default
never executed: default:
:
never executed: default:
{
0
508 rc = 1;-
509 break;
never executed: break;
0
510 }-
511 }-
512 -
513 __builtin_va_end(-
514 ap-
515 )-
516 ;-
517 return
executed 1056 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
rc;
executed 1056 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1056
518}-
519static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){-
520-
521 void *pStart;-
522-
523 if( sqlite3LookasideUsed(db,0)>0
sqlite3LookasideUsed(db,0)>0Description
TRUEnever evaluated
FALSEevaluated 34059 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-34059
524 return
never executed: return 5;
5;
never executed: return 5;
0
525 }-
526-
527-
528-
529-
530 if( db->lookaside.bMalloced
db->lookaside.bMallocedDescription
TRUEevaluated 2470 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31589 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
2470-31589
531 sqlite3_free(db->lookaside.pStart);-
532 }
executed 2470 times by 1 test: end of block
Executed by:
  • Self test (438)
2470
533-
534-
535-
536 sz = ((sz)&~7);-
537 if( sz<=(int)sizeof(LookasideSlot*)
sz<=(int)sizeo...ookasideSlot*)Description
TRUEevaluated 2480 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31579 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) sz = 0;
executed 2480 times by 1 test: sz = 0;
Executed by:
  • Self test (438)
2480-31579
538 if( cnt<0
cnt<0Description
TRUEnever evaluated
FALSEevaluated 34059 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) cnt = 0;
never executed: cnt = 0;
0-34059
539 if( sz==0
sz==0Description
TRUEevaluated 2480 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31579 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| cnt==0
cnt==0Description
TRUEnever evaluated
FALSEevaluated 31579 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-31579
540 sz = 0;-
541 pStart = 0;-
542 }
executed 2480 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( pBuf==0
pBuf==0Description
TRUEevaluated 31579 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEnever evaluated
){
0-31579
543 sqlite3BeginBenignMalloc();-
544 pStart = sqlite3Malloc( sz*cnt );-
545 sqlite3EndBenignMalloc();-
546 if( pStart
pStartDescription
TRUEevaluated 31539 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 40 times by 1 test
Evaluated by:
  • Self test (438)
) cnt = sqlite3MallocSize(pStart)/sz;
executed 31539 times by 438 tests: cnt = sqlite3MallocSize(pStart)/sz;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
40-31539
547 }
executed 31579 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
31579
548 pStart = pBuf;-
549 }
never executed: end of block
0
550 db->lookaside.pStart = pStart;-
551 db->lookaside.pInit = 0;-
552 db->lookaside.pFree = 0;-
553 db->lookaside.sz = (u16)sz;-
554 if( pStart
pStartDescription
TRUEevaluated 31539 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 2520 times by 1 test
Evaluated by:
  • Self test (438)
){
2520-31539
555 int i;-
556 LookasideSlot *p;-
557 -
558 ((void) (0))-
559 ;-
560 db->lookaside.nSlot = cnt;-
561 p = (LookasideSlot*)pStart;-
562 for(i=cnt-1; i>=0
i>=0Description
TRUEevaluated 14214839 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 31539 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
; i--){
31539-14214839
563 p->pNext = db->lookaside.pInit;-
564 db->lookaside.pInit = p;-
565 p = (LookasideSlot*)&((u8*)p)[sz];-
566 }
executed 14214848 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
14214848
567 db->lookaside.pEnd = p;-
568 db->lookaside.bDisable = 0;-
569 db->lookaside.bMalloced = pBuf==0
pBuf==0Description
TRUEevaluated 31539 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEnever evaluated
?1:0;
0-31539
570 }
executed 31539 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
31539
571 db->lookaside.pStart = db;-
572 db->lookaside.pEnd = db;-
573 db->lookaside.bDisable = 1;-
574 db->lookaside.bMalloced = 0;-
575 db->lookaside.nSlot = 0;-
576 }
executed 2520 times by 1 test: end of block
Executed by:
  • Self test (438)
2520
577-
578 return
executed 34059 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 34059 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
34059
579}-
580-
581-
582-
583-
584sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){-
585-
586-
587-
588-
589-
590-
591 return
executed 4 times by 1 test: return db->mutex;
Executed by:
  • Self test (438)
db->mutex;
executed 4 times by 1 test: return db->mutex;
Executed by:
  • Self test (438)
4
592}-
593-
594-
595-
596-
597-
598int sqlite3_db_release_memory(sqlite3 *db){-
599 int i;-
600-
601-
602-
603-
604 sqlite3_mutex_enter(db->mutex);-
605 sqlite3BtreeEnterAll(db);-
606 for(i=0; i<db->nDb
i<db->nDbDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
5-10
607 Btree *pBt = db->aDb[i].pBt;-
608 if( pBt
pBtDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
4-6
609 Pager *pPager = sqlite3BtreePager(pBt);-
610 sqlite3PagerShrink(pPager);-
611 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
612 }
executed 10 times by 1 test: end of block
Executed by:
  • Self test (438)
10
613 sqlite3BtreeLeaveAll(db);-
614 sqlite3_mutex_leave(db->mutex);-
615 return
executed 5 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 5 times by 1 test: return 0;
Executed by:
  • Self test (438)
5
616}-
617-
618-
619-
620-
621-
622int sqlite3_db_cacheflush(sqlite3 *db){-
623 int i;-
624 int rc = 0;-
625 int bSeenBusy = 0;-
626-
627-
628-
629-
630 sqlite3_mutex_enter(db->mutex);-
631 sqlite3BtreeEnterAll(db);-
632 for(i=0; rc==0
rc==0Description
TRUEevaluated 55 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& i<db->nDb
i<db->nDbDescription
TRUEevaluated 38 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
0-55
633 Btree *pBt = db->aDb[i].pBt;-
634 if( pBt
pBtDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
&& sqlite3BtreeIsInTrans(pBt)
sqlite3BtreeIsInTrans(pBt)Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-21
635 Pager *pPager = sqlite3BtreePager(pBt);-
636 rc = sqlite3PagerFlush(pPager);-
637 if( rc==5
rc==5Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 19 times by 1 test
Evaluated by:
  • Self test (438)
){
2-19
638 bSeenBusy = 1;-
639 rc = 0;-
640 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
641 }
executed 21 times by 1 test: end of block
Executed by:
  • Self test (438)
21
642 }
executed 38 times by 1 test: end of block
Executed by:
  • Self test (438)
38
643 sqlite3BtreeLeaveAll(db);-
644 sqlite3_mutex_leave(db->mutex);-
645 return
executed 17 times by 1 test: return ((rc==0 && bSeenBusy) ? 5 : rc);
Executed by:
  • Self test (438)
((rc==0
rc==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& bSeenBusy
bSeenBusyDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
) ? 5 : rc);
executed 17 times by 1 test: return ((rc==0 && bSeenBusy) ? 5 : rc);
Executed by:
  • Self test (438)
0-17
646}-
647-
648-
649-
650-
651int sqlite3_db_config(sqlite3 *db, int op, ...){-
652 va_list ap;-
653 int rc;-
654 -
655 __builtin_va_start(-
656 ap-
657 ,-
658 op-
659 )-
660 ;-
661 switch( op ){-
662 case
executed 1 time by 1 test: case 1000:
Executed by:
  • Self test (438)
1000:
executed 1 time by 1 test: case 1000:
Executed by:
  • Self test (438)
{
1
663-
664-
665 db->aDb[0].zDbSName = -
666 __builtin_va_arg(-
667 ap-
668 ,-
669 char*-
670 )-
671 ;-
672 rc = 0;-
673 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
674 }-
675 case
executed 2475 times by 1 test: case 1001:
Executed by:
  • Self test (438)
1001:
executed 2475 times by 1 test: case 1001:
Executed by:
  • Self test (438)
{
2475
676 void *pBuf = -
677 __builtin_va_arg(-
678 ap-
679 ,-
680 void*-
681 )-
682 ;-
683 int sz = -
684 __builtin_va_arg(-
685 ap-
686 ,-
687 int-
688 )-
689 ;-
690 int cnt = -
691 __builtin_va_arg(-
692 ap-
693 ,-
694 int-
695 )-
696 ;-
697 rc = setupLookaside(db, pBuf, sz, cnt);-
698 break;
executed 2475 times by 1 test: break;
Executed by:
  • Self test (438)
2475
699 }-
700 default
executed 41 times by 1 test: default:
Executed by:
  • Self test (438)
:
executed 41 times by 1 test: default:
Executed by:
  • Self test (438)
{
41
701 static const struct {-
702 int op;-
703 u32 mask;-
704 } aFlagOp[] = {-
705 { 1002, 0x00004000 },-
706 { 1003, 0x00040000 },-
707 { 1004, 0x00400000 },-
708 { 1005, 0x00010000 },-
709 { 1006, 0x00000800 },-
710 { 1007, 0x00800000 },-
711 { 1008, 0x01000000 },-
712 { 1009, 0x02000000 },-
713 };-
714 unsigned int i;-
715 rc = 1;-
716 for(i=0; i<((int)(sizeof(aFlagOp)/sizeof(aFlagOp[0])))
i<((int)(sizeo...(aFlagOp[0])))Description
TRUEevaluated 287 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
; i++){
0-287
717 if( aFlagOp[i].op==op
aFlagOp[i].op==opDescription
TRUEevaluated 41 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 246 times by 1 test
Evaluated by:
  • Self test (438)
){
41-246
718 int onoff = -
719 __builtin_va_arg(-
720 ap-
721 ,-
722 int-
723 )-
724 ;-
725 int *pRes = -
726 __builtin_va_arg(-
727 ap-
728 ,-
729 int*-
730 )-
731 ;-
732 u32 oldFlags = db->flags;-
733 if( onoff>0
onoff>0Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-33
734 db->flags |= aFlagOp[i].mask;-
735 }
executed 33 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( onoff==0
onoff==0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-33
736 db->flags &= ~aFlagOp[i].mask;-
737 }
executed 8 times by 1 test: end of block
Executed by:
  • Self test (438)
8
738 if( oldFlags!=db->flags
oldFlags!=db->flagsDescription
TRUEevaluated 41 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-41
739 sqlite3ExpirePreparedStatements(db, 0);-
740 }
executed 41 times by 1 test: end of block
Executed by:
  • Self test (438)
41
741 if( pRes
pResDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
){
18-23
742 *pRes = (db->flags & aFlagOp[i].mask)!=0;-
743 }
executed 18 times by 1 test: end of block
Executed by:
  • Self test (438)
18
744 rc = 0;-
745 break;
executed 41 times by 1 test: break;
Executed by:
  • Self test (438)
41
746 }-
747 }
executed 246 times by 1 test: end of block
Executed by:
  • Self test (438)
246
748 break;
executed 41 times by 1 test: break;
Executed by:
  • Self test (438)
41
749 }-
750 }-
751 -
752 __builtin_va_end(-
753 ap-
754 )-
755 ;-
756 return
executed 2517 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 2517 times by 1 test: return rc;
Executed by:
  • Self test (438)
2517
757}-
758-
759-
760-
761-
762-
763static int allSpaces(const char *z, int n){-
764 while( n>0
n>0Description
TRUEevaluated 776 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 303 times by 1 test
Evaluated by:
  • Self test (438)
&& z[n-1]==' '
z[n-1]==' 'Description
TRUEevaluated 734 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 42 times by 1 test
Evaluated by:
  • Self test (438)
){ n--; }
executed 734 times by 1 test: end of block
Executed by:
  • Self test (438)
42-776
765 return
executed 345 times by 1 test: return n==0;
Executed by:
  • Self test (438)
n==0;
executed 345 times by 1 test: return n==0;
Executed by:
  • Self test (438)
345
766}-
767static int binCollFunc(-
768 void *padFlag,-
769 int nKey1, const void *pKey1,-
770 int nKey2, const void *pKey2-
771){-
772 int rc, n;-
773 n = nKey1<nKey2
nKey1<nKey2Description
TRUEevaluated 1631726 times by 31 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
FALSEevaluated 4582934 times by 31 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
? nKey1 : nKey2;
1631726-4582934
774-
775-
776-
777 -
778 ((void) (0))-
779 ;-
780 rc = memcmp(pKey1, pKey2, n);-
781 if( rc==0
rc==0Description
TRUEevaluated 238999 times by 31 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
FALSEevaluated 5975661 times by 28 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • ...
){
238999-5975661
782 if( padFlag
padFlagDescription
TRUEevaluated 183 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 238816 times by 31 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
183-238816
783 && allSpaces(((char*)pKey1)+n, nKey1-n)
allSpaces(((ch...1)+n, nKey1-n)Description
TRUEevaluated 162 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 21 times by 1 test
Evaluated by:
  • Self test (438)
21-162
784 && allSpaces(((char*)pKey2)+n, nKey2-n)
allSpaces(((ch...2)+n, nKey2-n)Description
TRUEevaluated 141 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 21 times by 1 test
Evaluated by:
  • Self test (438)
21-141
785 ){-
786-
787-
788-
789-
790-
791 }
executed 141 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
141
792 rc = nKey1 - nKey2;-
793 }
executed 238858 times by 31 tests: end of block
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
238858
794 }-
795 return
executed 6214660 times by 31 tests: return rc;
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
rc;
executed 6214660 times by 31 tests: return rc;
Executed by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • ...
6214660
796}-
797-
798-
799-
800-
801int sqlite3IsBinary(const CollSeq *p){-
802 -
803 ((void) (0))-
804 -
805 ;-
806 return
executed 8425 times by 1 test: return p==0 || (p->xCmp==binCollFunc && p->pUser==0);
Executed by:
  • Self test (438)
p==0
p==0Description
TRUEevaluated 713 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7712 times by 1 test
Evaluated by:
  • Self test (438)
|| (p->xCmp==binCollFunc
p->xCmp==binCollFuncDescription
TRUEevaluated 7604 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test (438)
&& p->pUser==0
p->pUser==0Description
TRUEevaluated 7604 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
);
executed 8425 times by 1 test: return p==0 || (p->xCmp==binCollFunc && p->pUser==0);
Executed by:
  • Self test (438)
0-8425
807}-
808static int nocaseCollatingFunc(-
809 void *NotUsed,-
810 int nKey1, const void *pKey1,-
811 int nKey2, const void *pKey2-
812){-
813 int r = sqlite3_strnicmp(-
814 (const char *)pKey1, (const char *)pKey2, (nKey1<nKey2)?nKey1:nKey2);-
815 (void)(NotUsed);-
816 if( 0==r
0==rDescription
TRUEevaluated 5347 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10282 times by 1 test
Evaluated by:
  • Self test (438)
){
5347-10282
817 r = nKey1-nKey2;-
818 }
executed 5347 times by 1 test: end of block
Executed by:
  • Self test (438)
5347
819 return
executed 15629 times by 1 test: return r;
Executed by:
  • Self test (438)
r;
executed 15629 times by 1 test: return r;
Executed by:
  • Self test (438)
15629
820}-
821-
822-
823-
824-
825sqlite_int64 sqlite3_last_insert_rowid(sqlite3 *db){-
826-
827-
828-
829-
830-
831-
832 return
executed 2081 times by 1 test: return db->lastRowid;
Executed by:
  • Self test (438)
db->lastRowid;
executed 2081 times by 1 test: return db->lastRowid;
Executed by:
  • Self test (438)
2081
833}-
834-
835-
836-
837-
838void sqlite3_set_last_insert_rowid(sqlite3 *db, sqlite3_int64 iRowid){-
839-
840-
841-
842-
843-
844-
845 sqlite3_mutex_enter(db->mutex);-
846 db->lastRowid = iRowid;-
847 sqlite3_mutex_leave(db->mutex);-
848}
never executed: end of block
0
849-
850-
851-
852-
853int sqlite3_changes(sqlite3 *db){-
854-
855-
856-
857-
858-
859-
860 return
executed 170 times by 1 test: return db->nChange;
Executed by:
  • Self test (438)
db->nChange;
executed 170 times by 1 test: return db->nChange;
Executed by:
  • Self test (438)
170
861}-
862-
863-
864-
865-
866int sqlite3_total_changes(sqlite3 *db){-
867-
868-
869-
870-
871-
872-
873 return
executed 38 times by 1 test: return db->nTotalChange;
Executed by:
  • Self test (438)
db->nTotalChange;
executed 38 times by 1 test: return db->nTotalChange;
Executed by:
  • Self test (438)
38
874}-
875-
876-
877-
878-
879-
880-
881void sqlite3CloseSavepoints(sqlite3 *db){-
882 while( db->pSavepoint
db->pSavepointDescription
TRUEevaluated 5970 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (64)
FALSEevaluated 40853 times by 94 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • ...
){
5970-40853
883 Savepoint *pTmp = db->pSavepoint;-
884 db->pSavepoint = pTmp->pNext;-
885 sqlite3DbFree(db, pTmp);-
886 }
executed 5970 times by 2 tests: end of block
Executed by:
  • Self test (438)
  • Self test (64)
5970
887 db->nSavepoint = 0;-
888 db->nStatement = 0;-
889 db->isTransactionSavepoint = 0;-
890}
executed 40853 times by 94 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (3)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • ...
40853
891-
892-
893-
894-
895-
896-
897-
898static void functionDestroy(sqlite3 *db, FuncDef *p){-
899 FuncDestructor *pDestructor = p->u.pDestructor;-
900 if( pDestructor
pDestructorDescription
TRUEevaluated 31406 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 1400599 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
31406-1400599
901 pDestructor->nRef--;-
902 if( pDestructor->nRef==0
pDestructor->nRef==0Description
TRUEevaluated 31402 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
4-31402
903 pDestructor->xDestroy(pDestructor->pUserData);-
904 sqlite3DbFree(db, pDestructor);-
905 }
executed 31402 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
31402
906 }
executed 31406 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
31406
907}
executed 1432005 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1432005
908-
909-
910-
911-
912-
913static void disconnectAllVtab(sqlite3 *db){-
914-
915 int i;-
916 HashElem *p;-
917 sqlite3BtreeEnterAll(db);-
918 for(i=0; i<db->nDb
i<db->nDbDescription
TRUEevaluated 64910 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32155 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; i++){
32155-64910
919 Schema *pSchema = db->aDb[i].pSchema;-
920 if( pSchema
pSchemaDescription
TRUEevaluated 63422 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 1488 times by 1 test
Evaluated by:
  • Self test (438)
){
1488-63422
921 for(p=((&pSchema->tblHash)->first); p
pDescription
TRUEevaluated 63710 times by 63 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
FALSEevaluated 63422 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; p=((p)->next)){
63422-63710
922 Table *pTab = (Table *)((p)->data);-
923 if( ((
((pTab)->nModuleArg)Description
TRUEevaluated 996 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 62714 times by 63 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
pTab)->nModuleArg)
((pTab)->nModuleArg)Description
TRUEevaluated 996 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 62714 times by 63 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
) sqlite3VtabDisconnect(db, pTab);
executed 996 times by 1 test: sqlite3VtabDisconnect(db, pTab);
Executed by:
  • Self test (438)
996-62714
924 }
executed 63710 times by 63 tests: end of block
Executed by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • Self test (438)
  • Self test (44)
  • ...
63710
925 }
executed 63422 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
63422
926 }
executed 64910 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
64910
927 for(p=((&db->aModule)->first); p
pDescription
TRUEevaluated 71411 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32155 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; p=((p)->next)){
32155-71411
928 Module *pMod = (Module *)((p)->data);-
929 if( pMod->pEpoTab
pMod->pEpoTabDescription
TRUEevaluated 8615 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 62796 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
8615-62796
930 sqlite3VtabDisconnect(db, pMod->pEpoTab);-
931 }
executed 8615 times by 1 test: end of block
Executed by:
  • Self test (438)
8615
932 }
executed 71411 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
71411
933 sqlite3VtabUnlockList(db);-
934 sqlite3BtreeLeaveAll(db);-
935-
936-
937-
938}
executed 32155 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
32155
939-
940-
941-
942-
943-
944static int connectionIsBusy(sqlite3 *db){-
945 int j;-
946 -
947 ((void) (0))-
948 ;-
949 if( db->pVdbe
db->pVdbeDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 64299 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
) return
executed 7 times by 1 test: return 1;
Executed by:
  • Self test (438)
1;
executed 7 times by 1 test: return 1;
Executed by:
  • Self test (438)
7-64299
950 for(j=0; j<db->nDb
j<db->nDbDescription
TRUEevaluated 129798 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 64299 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; j++){
64299-129798
951 Btree *pBt = db->aDb[j].pBt;-
952 if( pBt
pBtDescription
TRUEevaluated 68563 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 61235 times by 55 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (438)
  • ...
&& sqlite3BtreeIsInBackup(pBt)
sqlite3BtreeIsInBackup(pBt)Description
TRUEnever evaluated
FALSEevaluated 68563 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
) return
never executed: return 1;
1;
never executed: return 1;
0-68563
953 }
executed 129798 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
129798
954 return
executed 64299 times by 66 tests: return 0;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
0;
executed 64299 times by 66 tests: return 0;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
64299
955}-
956-
957-
958-
959-
960static int sqlite3Close(sqlite3 *db, int forceZombie){-
961 if( !db
!dbDescription
TRUEevaluated 644 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32160 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
644-32160
962-
963-
964 return
executed 644 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 644 times by 1 test: return 0;
Executed by:
  • Self test (438)
644
965 }-
966 if( !sqlite3SafetyCheckSickOrOk(db)
!sqlite3Safety...ckSickOrOk(db)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32155 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
5-32155
967 return
executed 5 times by 1 test: return sqlite3MisuseError(1088);
Executed by:
  • Self test (438)
sqlite3MisuseError(1088);
executed 5 times by 1 test: return sqlite3MisuseError(1088);
Executed by:
  • Self test (438)
5
968 }-
969 sqlite3_mutex_enter(db->mutex);-
970 if( db->mTrace & 0x08
db->mTrace & 0x08Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32153 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
2-32153
971 db->xTrace(0x08, db->pTraceArg, db, 0);-
972 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
973-
974-
975 disconnectAllVtab(db);-
976 sqlite3VtabRollback(db);-
977-
978-
979-
980-
981 if( !forceZombie
!forceZombieDescription
TRUEevaluated 32150 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
&& connectionIsBusy(db)
connectionIsBusy(db)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32147 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
3-32150
982 sqlite3ErrorWithMsg(db, 5, "unable to close due to unfinalized "-
983 "statements or unfinished backups");-
984 sqlite3_mutex_leave(db->mutex);-
985 return
executed 3 times by 1 test: return 5;
Executed by:
  • Self test (438)
5;
executed 3 times by 1 test: return 5;
Executed by:
  • Self test (438)
3
986 }-
987 db->magic = 0x64cffc7f;-
988 sqlite3LeaveMutexAndCloseZombie(db);-
989 return
executed 32152 times by 66 tests: return 0;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
0;
executed 32152 times by 66 tests: return 0;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
32152
990}-
991int sqlite3_close(sqlite3 *db){ return
executed 32799 times by 66 tests: return sqlite3Close(db,0);
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
sqlite3Close(db,0);
executed 32799 times by 66 tests: return sqlite3Close(db,0);
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
}
32799
992int sqlite3_close_v2(sqlite3 *db){ return
executed 5 times by 1 test: return sqlite3Close(db,1);
Executed by:
  • Self test (438)
sqlite3Close(db,1);
executed 5 times by 1 test: return sqlite3Close(db,1);
Executed by:
  • Self test (438)
}
5
993void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db){-
994 HashElem *i;-
995 int j;-
996-
997-
998-
999-
1000-
1001 if( db->magic!=0x64cffc7f
db->magic!=0x64cffc7fDescription
TRUEevaluated 377356 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 32156 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
|| connectionIsBusy(db)
connectionIsBusy(db)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32152 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
4-377356
1002 sqlite3_mutex_leave(db->mutex);-
1003 return;
executed 377360 times by 436 tests: return;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
377360
1004 }-
1005 sqlite3RollbackAll(db, 0);-
1006-
1007-
1008 sqlite3CloseSavepoints(db);-
1009-
1010-
1011 for(j=0; j<db->nDb
j<db->nDbDescription
TRUEevaluated 64904 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32152 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; j++){
32152-64904
1012 struct Db *pDb = &db->aDb[j];-
1013 if( pDb->pBt
pDb->pBtDescription
TRUEevaluated 34284 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 30620 times by 55 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (438)
  • ...
){
30620-34284
1014 sqlite3BtreeClose(pDb->pBt);-
1015 pDb->pBt = 0;-
1016 if( j!=1
j!=1Description
TRUEevaluated 32018 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 2266 times by 12 tests
Evaluated by:
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
){
2266-32018
1017 pDb->pSchema = 0;-
1018 }
executed 32018 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
32018
1019 }
executed 34284 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
34284
1020 }
executed 64904 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
64904
1021-
1022 if( db->aDb[1].pSchema
db->aDb[1].pSchemaDescription
TRUEevaluated 31406 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 746 times by 1 test
Evaluated by:
  • Self test (438)
){
746-31406
1023 sqlite3SchemaClear(db->aDb[1].pSchema);-
1024 }
executed 31406 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
31406
1025 sqlite3VtabUnlockList(db);-
1026-
1027-
1028 sqlite3CollapseDatabaseArray(db);-
1029 -
1030 ((void) (0))-
1031 ;-
1032 -
1033 ((void) (0))-
1034 ;-
1035-
1036-
1037-
1038-
1039 ;-
1040-
1041 for(i=((&db->aFunc)->first); i
iDescription
TRUEevaluated 621068 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32152 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; i=((i)->next)){
32152-621068
1042 FuncDef *pNext, *p;-
1043 p = ((i)->data);-
1044 do{-
1045 functionDestroy(db, p);-
1046 pNext = p->pNext;-
1047 sqlite3DbFree(db, p);-
1048 p = pNext;-
1049 }
executed 711471 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
while( p
pDescription
TRUEevaluated 90403 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 621068 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
);
90403-711471
1050 }
executed 621068 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
621068
1051 sqlite3HashClear(&db->aFunc);-
1052 for(i=((&db->aCollSeq)->first); i
iDescription
TRUEevaluated 96423 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32152 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; i=((i)->next)){
32152-96423
1053 CollSeq *pColl = (CollSeq *)((i)->data);-
1054-
1055 for(j=0; j<3
j<3Description
TRUEevaluated 289269 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 96423 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; j++){
96423-289269
1056 if( pColl[j].xDel
pColl[j].xDelDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 289268 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
1-289268
1057 pColl[j].xDel(pColl[j].pUser);-
1058 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
1059 }
executed 289269 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
289269
1060 sqlite3DbFree(db, pColl);-
1061 }
executed 96423 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
96423
1062 sqlite3HashClear(&db->aCollSeq);-
1063-
1064 for(i=((&db->aModule)->first); i
iDescription
TRUEevaluated 71405 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 32152 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
; i=((i)->next)){
32152-71405
1065 Module *pMod = (Module *)((i)->data);-
1066 if( pMod->xDestroy
pMod->xDestroyDescription
TRUEevaluated 147 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 71258 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
147-71258
1067 pMod->xDestroy(pMod->pAux);-
1068 }
executed 147 times by 1 test: end of block
Executed by:
  • Self test (438)
147
1069 sqlite3VtabEponymousTableClear(db, pMod);-
1070 sqlite3DbFree(db, pMod);-
1071 }
executed 71405 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
71405
1072 sqlite3HashClear(&db->aModule);-
1073-
1074-
1075 sqlite3Error(db, 0);-
1076 sqlite3ValueFree(db->pErr);-
1077 sqlite3CloseExtensions(db);-
1078-
1079-
1080-
1081-
1082-
1083 db->magic = 0xb5357930;-
1084-
1085-
1086-
1087-
1088-
1089-
1090-
1091 sqlite3DbFree(db, db->aDb[1].pSchema);-
1092 sqlite3_mutex_leave(db->mutex);-
1093 db->magic = 0x9f3c2d33;-
1094 sqlite3_mutex_free(db->mutex);-
1095 -
1096 ((void) (0))-
1097 ;-
1098 if( db->lookaside.bMalloced
db->lookaside.bMallocedDescription
TRUEevaluated 28696 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
FALSEevaluated 3456 times by 1 test
Evaluated by:
  • Self test (438)
){
3456-28696
1099 sqlite3_free(db->lookaside.pStart);-
1100 }
executed 28696 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
28696
1101 sqlite3_free(db);-
1102}
executed 32152 times by 66 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
32152
1103void sqlite3RollbackAll(sqlite3 *db, int tripCode){-
1104 int i;-
1105 int inTrans = 0;-
1106 int schemaChange;-
1107 -
1108 ((void) (0))-
1109 ;-
1110 sqlite3BeginBenignMalloc();-
1111-
1112-
1113-
1114-
1115-
1116-
1117-
1118 sqlite3BtreeEnterAll(db);-
1119 schemaChange = (
(db->mDbFlags & 0x0001)!=0Description
TRUEevaluated 1415 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 40396 times by 76 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • ...
db->mDbFlags & 0x0001)!=0
(db->mDbFlags & 0x0001)!=0Description
TRUEevaluated 1415 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 40396 times by 76 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • ...
&& db->init.busy==0
db->init.busy==0Description
TRUEevaluated 1185 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 230 times by 1 test
Evaluated by:
  • Self test (438)
;
230-40396
1120-
1121 for(i=0; i<db->nDb
i<db->nDbDescription
TRUEevaluated 85087 times by 76 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • ...
FALSEevaluated 41807 times by 72 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
; i++){
41807-85087
1122 Btree *p = db->aDb[i].pBt;-
1123 if( p
pDescription
TRUEevaluated 49712 times by 76 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • ...
FALSEevaluated 35375 times by 61 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
){
35375-49712
1124 if( sqlite3BtreeIsInTrans(p)
sqlite3BtreeIsInTrans(p)Description
TRUEevaluated 4504 times by 16 tests
Evaluated by:
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (27)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (55)
  • Self test (6)
  • Self test (79)
  • Self test (8)
  • Self test (88)
FALSEevaluated 45208 times by 66 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • Self test (40)
  • Self test (41)
  • Self test (42)
  • Self test (43)
  • ...
){
4504-45208
1125 inTrans = 1;-
1126 }
executed 4504 times by 16 tests: end of block
Executed by:
  • Self test (10)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (27)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (55)
  • Self test (6)
  • Self test (79)
  • Self test (8)
  • Self test (88)
4504
1127 sqlite3BtreeRollback(p, tripCode, !schemaChange);-
1128 }
executed 49708 times by 72 tests: end of block
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
49708
1129 }
executed 85083 times by 72 tests: end of block
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
85083
1130 sqlite3VtabRollback(db);-
1131 sqlite3EndBenignMalloc();-
1132-
1133 if( schemaChange
schemaChangeDescription
TRUEevaluated 1185 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 40622 times by 72 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
){
1185-40622
1134 sqlite3ExpirePreparedStatements(db, 0);-
1135 sqlite3ResetAllSchemasOfConnection(db);-
1136 }
executed 1185 times by 2 tests: end of block
Executed by:
  • Self test (438)
  • Self test (61)
1185
1137 sqlite3BtreeLeaveAll(db);-
1138-
1139-
1140 db->nDeferredCons = 0;-
1141 db->nDeferredImmCons = 0;-
1142 db->flags &= ~0x00080000;-
1143-
1144-
1145 if( db->xRollbackCallback
db->xRollbackCallbackDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 41803 times by 72 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
&& (inTrans
inTransDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
|| !db->autoCommit
!db->autoCommitDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
) ){
1-41803
1146 db->xRollbackCallback(db->pRollbackArg);-
1147 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test (438)
3
1148}
executed 41807 times by 72 tests: end of block
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (14)
  • Self test (18)
  • Self test (22)
  • Self test (24)
  • Self test (25)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (31)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (37)
  • Self test (38)
  • Self test (39)
  • ...
41807
1149-
1150-
1151-
1152-
1153-
1154-
1155const char *sqlite3ErrName(int rc){-
1156 const char *zName = 0;-
1157 int i, origRc = rc;-
1158 for(i=0; i<2
i<2Description
TRUEevaluated 31920 times by 8 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
FALSEevaluated 338 times by 1 test
Evaluated by:
  • Self test (438)
&& zName==0
zName==0Description
TRUEevaluated 16298 times by 8 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
FALSEevaluated 15622 times by 8 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
; i++, rc &= 0xff){
338-31920
1159 switch( rc ){-
1160 case
executed 8415 times by 8 tests: case 0:
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
0:
executed 8415 times by 8 tests: case 0:
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
zName = "SQLITE_OK"; break;
executed 8415 times by 8 tests: break;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
8415
1161 case
executed 192 times by 1 test: case 1:
Executed by:
  • Self test (438)
1:
executed 192 times by 1 test: case 1:
Executed by:
  • Self test (438)
zName = "SQLITE_ERROR"; break;
executed 192 times by 1 test: break;
Executed by:
  • Self test (438)
192
1162 case
never executed: case (1 | (3<<8)):
(1 | (3<<8)):
never executed: case (1 | (3<<8)):
zName = "SQLITE_ERROR_SNAPSHOT"; break;
never executed: break;
0
1163 case
executed 39 times by 1 test: case 2:
Executed by:
  • Self test (438)
2:
executed 39 times by 1 test: case 2:
Executed by:
  • Self test (438)
zName = "SQLITE_INTERNAL"; break;
executed 39 times by 1 test: break;
Executed by:
  • Self test (438)
39
1164 case
executed 41 times by 1 test: case 3:
Executed by:
  • Self test (438)
3:
executed 41 times by 1 test: case 3:
Executed by:
  • Self test (438)
zName = "SQLITE_PERM"; break;
executed 41 times by 1 test: break;
Executed by:
  • Self test (438)
41
1165 case
executed 218 times by 1 test: case 4:
Executed by:
  • Self test (438)
4:
executed 218 times by 1 test: case 4:
Executed by:
  • Self test (438)
zName = "SQLITE_ABORT"; break;
executed 218 times by 1 test: break;
Executed by:
  • Self test (438)
218
1166 case
never executed: case (4 | (2<<8)):
(4 | (2<<8)):
never executed: case (4 | (2<<8)):
zName = "SQLITE_ABORT_ROLLBACK"; break;
never executed: break;
0
1167 case
executed 81 times by 1 test: case 5:
Executed by:
  • Self test (438)
5:
executed 81 times by 1 test: case 5:
Executed by:
  • Self test (438)
zName = "SQLITE_BUSY"; break;
executed 81 times by 1 test: break;
Executed by:
  • Self test (438)
81
1168 case
never executed: case (5 | (1<<8)):
(5 | (1<<8)):
never executed: case (5 | (1<<8)):
zName = "SQLITE_BUSY_RECOVERY"; break;
never executed: break;
0
1169 case
executed 2 times by 1 test: case (5 | (2<<8)):
Executed by:
  • Self test (438)
(5 | (2<<8)):
executed 2 times by 1 test: case (5 | (2<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_BUSY_SNAPSHOT"; break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
1170 case
executed 52 times by 1 test: case 6:
Executed by:
  • Self test (438)
6:
executed 52 times by 1 test: case 6:
Executed by:
  • Self test (438)
zName = "SQLITE_LOCKED"; break;
executed 52 times by 1 test: break;
Executed by:
  • Self test (438)
52
1171 case
never executed: case (6 | (1<<8)):
(6 | (1<<8)):
never executed: case (6 | (1<<8)):
zName = "SQLITE_LOCKED_SHAREDCACHE";break;
never executed: break;
0
1172 case
executed 212 times by 1 test: case 7:
Executed by:
  • Self test (438)
7:
executed 212 times by 1 test: case 7:
Executed by:
  • Self test (438)
zName = "SQLITE_NOMEM"; break;
executed 212 times by 1 test: break;
Executed by:
  • Self test (438)
212
1173 case
executed 41 times by 1 test: case 8:
Executed by:
  • Self test (438)
8:
executed 41 times by 1 test: case 8:
Executed by:
  • Self test (438)
zName = "SQLITE_READONLY"; break;
executed 41 times by 1 test: break;
Executed by:
  • Self test (438)
41
1174 case
never executed: case (8 | (1<<8)):
(8 | (1<<8)):
never executed: case (8 | (1<<8)):
zName = "SQLITE_READONLY_RECOVERY"; break;
never executed: break;
0
1175 case
never executed: case (8 | (5<<8)):
(8 | (5<<8)):
never executed: case (8 | (5<<8)):
zName = "SQLITE_READONLY_CANTINIT"; break;
never executed: break;
0
1176 case
never executed: case (8 | (3<<8)):
(8 | (3<<8)):
never executed: case (8 | (3<<8)):
zName = "SQLITE_READONLY_ROLLBACK"; break;
never executed: break;
0
1177 case
never executed: case (8 | (4<<8)):
(8 | (4<<8)):
never executed: case (8 | (4<<8)):
zName = "SQLITE_READONLY_DBMOVED"; break;
never executed: break;
0
1178 case
never executed: case (8 | (6<<8)):
(8 | (6<<8)):
never executed: case (8 | (6<<8)):
zName = "SQLITE_READONLY_DIRECTORY";break;
never executed: break;
0
1179 case
executed 38 times by 1 test: case 9:
Executed by:
  • Self test (438)
9:
executed 38 times by 1 test: case 9:
Executed by:
  • Self test (438)
zName = "SQLITE_INTERRUPT"; break;
executed 38 times by 1 test: break;
Executed by:
  • Self test (438)
38
1180 case
executed 27 times by 1 test: case 10:
Executed by:
  • Self test (438)
10:
executed 27 times by 1 test: case 10:
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR"; break;
executed 27 times by 1 test: break;
Executed by:
  • Self test (438)
27
1181 case
executed 10 times by 1 test: case (10 | (1<<8)):
Executed by:
  • Self test (438)
(10 | (1<<8)):
executed 10 times by 1 test: case (10 | (1<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_READ"; break;
executed 10 times by 1 test: break;
Executed by:
  • Self test (438)
10
1182 case
never executed: case (10 | (2<<8)):
(10 | (2<<8)):
never executed: case (10 | (2<<8)):
zName = "SQLITE_IOERR_SHORT_READ"; break;
never executed: break;
0
1183 case
executed 26 times by 1 test: case (10 | (3<<8)):
Executed by:
  • Self test (438)
(10 | (3<<8)):
executed 26 times by 1 test: case (10 | (3<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_WRITE"; break;
executed 26 times by 1 test: break;
Executed by:
  • Self test (438)
26
1184 case
executed 6 times by 1 test: case (10 | (4<<8)):
Executed by:
  • Self test (438)
(10 | (4<<8)):
executed 6 times by 1 test: case (10 | (4<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_FSYNC"; break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
1185 case
never executed: case (10 | (5<<8)):
(10 | (5<<8)):
never executed: case (10 | (5<<8)):
zName = "SQLITE_IOERR_DIR_FSYNC"; break;
never executed: break;
0
1186 case
never executed: case (10 | (6<<8)):
(10 | (6<<8)):
never executed: case (10 | (6<<8)):
zName = "SQLITE_IOERR_TRUNCATE"; break;
never executed: break;
0
1187 case
executed 6 times by 1 test: case (10 | (7<<8)):
Executed by:
  • Self test (438)
(10 | (7<<8)):
executed 6 times by 1 test: case (10 | (7<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_FSTAT"; break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
1188 case
never executed: case (10 | (8<<8)):
(10 | (8<<8)):
never executed: case (10 | (8<<8)):
zName = "SQLITE_IOERR_UNLOCK"; break;
never executed: break;
0
1189 case
never executed: case (10 | (9<<8)):
(10 | (9<<8)):
never executed: case (10 | (9<<8)):
zName = "SQLITE_IOERR_RDLOCK"; break;
never executed: break;
0
1190 case
executed 2 times by 1 test: case (10 | (10<<8)):
Executed by:
  • Self test (438)
(10 | (10<<8)):
executed 2 times by 1 test: case (10 | (10<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_DELETE"; break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
1191 case
executed 50 times by 1 test: case (10 | (12<<8)):
Executed by:
  • Self test (438)
(10 | (12<<8)):
executed 50 times by 1 test: case (10 | (12<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_NOMEM"; break;
executed 50 times by 1 test: break;
Executed by:
  • Self test (438)
50
1192 case
executed 26 times by 1 test: case (10 | (13<<8)):
Executed by:
  • Self test (438)
(10 | (13<<8)):
executed 26 times by 1 test: case (10 | (13<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_IOERR_ACCESS"; break;
executed 26 times by 1 test: break;
Executed by:
  • Self test (438)
26
1193 case
never executed: case (10 | (14<<8)):
(10 | (14<<8)):
never executed: case (10 | (14<<8)):
0
1194 zName = "SQLITE_IOERR_CHECKRESERVEDLOCK"; break;
never executed: break;
0
1195 case
never executed: case (10 | (15<<8)):
(10 | (15<<8)):
never executed: case (10 | (15<<8)):
zName = "SQLITE_IOERR_LOCK"; break;
never executed: break;
0
1196 case
never executed: case (10 | (16<<8)):
(10 | (16<<8)):
never executed: case (10 | (16<<8)):
zName = "SQLITE_IOERR_CLOSE"; break;
never executed: break;
0
1197 case
never executed: case (10 | (17<<8)):
(10 | (17<<8)):
never executed: case (10 | (17<<8)):
zName = "SQLITE_IOERR_DIR_CLOSE"; break;
never executed: break;
0
1198 case
never executed: case (10 | (18<<8)):
(10 | (18<<8)):
never executed: case (10 | (18<<8)):
zName = "SQLITE_IOERR_SHMOPEN"; break;
never executed: break;
0
1199 case
never executed: case (10 | (19<<8)):
(10 | (19<<8)):
never executed: case (10 | (19<<8)):
zName = "SQLITE_IOERR_SHMSIZE"; break;
never executed: break;
0
1200 case
never executed: case (10 | (20<<8)):
(10 | (20<<8)):
never executed: case (10 | (20<<8)):
zName = "SQLITE_IOERR_SHMLOCK"; break;
never executed: break;
0
1201 case
never executed: case (10 | (21<<8)):
(10 | (21<<8)):
never executed: case (10 | (21<<8)):
zName = "SQLITE_IOERR_SHMMAP"; break;
never executed: break;
0
1202 case
never executed: case (10 | (22<<8)):
(10 | (22<<8)):
never executed: case (10 | (22<<8)):
zName = "SQLITE_IOERR_SEEK"; break;
never executed: break;
0
1203 case
never executed: case (10 | (23<<8)):
(10 | (23<<8)):
never executed: case (10 | (23<<8)):
zName = "SQLITE_IOERR_DELETE_NOENT";break;
never executed: break;
0
1204 case
never executed: case (10 | (24<<8)):
(10 | (24<<8)):
never executed: case (10 | (24<<8)):
zName = "SQLITE_IOERR_MMAP"; break;
never executed: break;
0
1205 case
never executed: case (10 | (25<<8)):
(10 | (25<<8)):
never executed: case (10 | (25<<8)):
zName = "SQLITE_IOERR_GETTEMPPATH"; break;
never executed: break;
0
1206 case
never executed: case (10 | (26<<8)):
(10 | (26<<8)):
never executed: case (10 | (26<<8)):
zName = "SQLITE_IOERR_CONVPATH"; break;
never executed: break;
0
1207 case
executed 42 times by 1 test: case 11:
Executed by:
  • Self test (438)
11:
executed 42 times by 1 test: case 11:
Executed by:
  • Self test (438)
zName = "SQLITE_CORRUPT"; break;
executed 42 times by 1 test: break;
Executed by:
  • Self test (438)
42
1208 case
never executed: case (11 | (1<<8)):
(11 | (1<<8)):
never executed: case (11 | (1<<8)):
zName = "SQLITE_CORRUPT_VTAB"; break;
never executed: break;
0
1209 case
executed 25 times by 1 test: case 12:
Executed by:
  • Self test (438)
12:
executed 25 times by 1 test: case 12:
Executed by:
  • Self test (438)
zName = "SQLITE_NOTFOUND"; break;
executed 25 times by 1 test: break;
Executed by:
  • Self test (438)
25
1210 case
executed 35 times by 1 test: case 13:
Executed by:
  • Self test (438)
13:
executed 35 times by 1 test: case 13:
Executed by:
  • Self test (438)
zName = "SQLITE_FULL"; break;
executed 35 times by 1 test: break;
Executed by:
  • Self test (438)
35
1211 case
executed 39 times by 1 test: case 14:
Executed by:
  • Self test (438)
14:
executed 39 times by 1 test: case 14:
Executed by:
  • Self test (438)
zName = "SQLITE_CANTOPEN"; break;
executed 39 times by 1 test: break;
Executed by:
  • Self test (438)
39
1212 case
never executed: case (14 | (1<<8)):
(14 | (1<<8)):
never executed: case (14 | (1<<8)):
zName = "SQLITE_CANTOPEN_NOTEMPDIR";break;
never executed: break;
0
1213 case
never executed: case (14 | (2<<8)):
(14 | (2<<8)):
never executed: case (14 | (2<<8)):
zName = "SQLITE_CANTOPEN_ISDIR"; break;
never executed: break;
0
1214 case
never executed: case (14 | (3<<8)):
(14 | (3<<8)):
never executed: case (14 | (3<<8)):
zName = "SQLITE_CANTOPEN_FULLPATH"; break;
never executed: break;
0
1215 case
never executed: case (14 | (4<<8)):
(14 | (4<<8)):
never executed: case (14 | (4<<8)):
zName = "SQLITE_CANTOPEN_CONVPATH"; break;
never executed: break;
0
1216 case
executed 17 times by 1 test: case 15:
Executed by:
  • Self test (438)
15:
executed 17 times by 1 test: case 15:
Executed by:
  • Self test (438)
zName = "SQLITE_PROTOCOL"; break;
executed 17 times by 1 test: break;
Executed by:
  • Self test (438)
17
1217 case
executed 19 times by 1 test: case 16:
Executed by:
  • Self test (438)
16:
executed 19 times by 1 test: case 16:
Executed by:
  • Self test (438)
zName = "SQLITE_EMPTY"; break;
executed 19 times by 1 test: break;
Executed by:
  • Self test (438)
19
1218 case
executed 45 times by 1 test: case 17:
Executed by:
  • Self test (438)
17:
executed 45 times by 1 test: case 17:
Executed by:
  • Self test (438)
zName = "SQLITE_SCHEMA"; break;
executed 45 times by 1 test: break;
Executed by:
  • Self test (438)
45
1219 case
executed 15 times by 1 test: case 18:
Executed by:
  • Self test (438)
18:
executed 15 times by 1 test: case 18:
Executed by:
  • Self test (438)
zName = "SQLITE_TOOBIG"; break;
executed 15 times by 1 test: break;
Executed by:
  • Self test (438)
15
1220 case
executed 41 times by 1 test: case 19:
Executed by:
  • Self test (438)
19:
executed 41 times by 1 test: case 19:
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT"; break;
executed 41 times by 1 test: break;
Executed by:
  • Self test (438)
41
1221 case
executed 14 times by 1 test: case (19 | (8<<8)):
Executed by:
  • Self test (438)
(19 | (8<<8)):
executed 14 times by 1 test: case (19 | (8<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT_UNIQUE"; break;
executed 14 times by 1 test: break;
Executed by:
  • Self test (438)
14
1222 case
executed 7 times by 1 test: case (19 | (7<<8)):
Executed by:
  • Self test (438)
(19 | (7<<8)):
executed 7 times by 1 test: case (19 | (7<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT_TRIGGER";break;
executed 7 times by 1 test: break;
Executed by:
  • Self test (438)
7
1223 case
executed 16 times by 1 test: case (19 | (3<<8)):
Executed by:
  • Self test (438)
(19 | (3<<8)):
executed 16 times by 1 test: case (19 | (3<<8)):
Executed by:
  • Self test (438)
16
1224 zName = "SQLITE_CONSTRAINT_FOREIGNKEY"; break;
executed 16 times by 1 test: break;
Executed by:
  • Self test (438)
16
1225 case
executed 2 times by 1 test: case (19 | (1<<8)):
Executed by:
  • Self test (438)
(19 | (1<<8)):
executed 2 times by 1 test: case (19 | (1<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT_CHECK"; break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
1226 case
executed 3 times by 1 test: case (19 | (6<<8)):
Executed by:
  • Self test (438)
(19 | (6<<8)):
executed 3 times by 1 test: case (19 | (6<<8)):
Executed by:
  • Self test (438)
3
1227 zName = "SQLITE_CONSTRAINT_PRIMARYKEY"; break;
executed 3 times by 1 test: break;
Executed by:
  • Self test (438)
3
1228 case
executed 27 times by 1 test: case (19 | (5<<8)):
Executed by:
  • Self test (438)
(19 | (5<<8)):
executed 27 times by 1 test: case (19 | (5<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT_NOTNULL";break;
executed 27 times by 1 test: break;
Executed by:
  • Self test (438)
27
1229 case
executed 1 time by 1 test: case (19 | (2<<8)):
Executed by:
  • Self test (438)
(19 | (2<<8)):
executed 1 time by 1 test: case (19 | (2<<8)):
Executed by:
  • Self test (438)
1
1230 zName = "SQLITE_CONSTRAINT_COMMITHOOK"; break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1231 case
never executed: case (19 | (9<<8)):
(19 | (9<<8)):
never executed: case (19 | (9<<8)):
zName = "SQLITE_CONSTRAINT_VTAB"; break;
never executed: break;
0
1232 case
never executed: case (19 | (4<<8)):
(19 | (4<<8)):
never executed: case (19 | (4<<8)):
0
1233 zName = "SQLITE_CONSTRAINT_FUNCTION"; break;
never executed: break;
0
1234 case
executed 1 time by 1 test: case (19 |(10<<8)):
Executed by:
  • Self test (438)
(19 |(10<<8)):
executed 1 time by 1 test: case (19 |(10<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_CONSTRAINT_ROWID"; break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1235 case
executed 12 times by 1 test: case 20:
Executed by:
  • Self test (438)
20:
executed 12 times by 1 test: case 20:
Executed by:
  • Self test (438)
zName = "SQLITE_MISMATCH"; break;
executed 12 times by 1 test: break;
Executed by:
  • Self test (438)
12
1236 case
executed 38 times by 1 test: case 21:
Executed by:
  • Self test (438)
21:
executed 38 times by 1 test: case 21:
Executed by:
  • Self test (438)
zName = "SQLITE_MISUSE"; break;
executed 38 times by 1 test: break;
Executed by:
  • Self test (438)
38
1237 case
executed 8 times by 1 test: case 22:
Executed by:
  • Self test (438)
22:
executed 8 times by 1 test: case 22:
Executed by:
  • Self test (438)
zName = "SQLITE_NOLFS"; break;
executed 8 times by 1 test: break;
Executed by:
  • Self test (438)
8
1238 case
executed 11 times by 1 test: case 23:
Executed by:
  • Self test (438)
23:
executed 11 times by 1 test: case 23:
Executed by:
  • Self test (438)
zName = "SQLITE_AUTH"; break;
executed 11 times by 1 test: break;
Executed by:
  • Self test (438)
11
1239 case
executed 6 times by 1 test: case 24:
Executed by:
  • Self test (438)
24:
executed 6 times by 1 test: case 24:
Executed by:
  • Self test (438)
zName = "SQLITE_FORMAT"; break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
1240 case
executed 8 times by 1 test: case 25:
Executed by:
  • Self test (438)
25:
executed 8 times by 1 test: case 25:
Executed by:
  • Self test (438)
zName = "SQLITE_RANGE"; break;
executed 8 times by 1 test: break;
Executed by:
  • Self test (438)
8
1241 case
executed 4 times by 1 test: case 26:
Executed by:
  • Self test (438)
26:
executed 4 times by 1 test: case 26:
Executed by:
  • Self test (438)
zName = "SQLITE_NOTADB"; break;
executed 4 times by 1 test: break;
Executed by:
  • Self test (438)
4
1242 case
executed 4926 times by 2 tests: case 100:
Executed by:
  • Self test (438)
  • Self test (63)
100:
executed 4926 times by 2 tests: case 100:
Executed by:
  • Self test (438)
  • Self test (63)
zName = "SQLITE_ROW"; break;
executed 4926 times by 2 tests: break;
Executed by:
  • Self test (438)
  • Self test (63)
4926
1243 case
executed 2 times by 1 test: case 27:
Executed by:
  • Self test (438)
27:
executed 2 times by 1 test: case 27:
Executed by:
  • Self test (438)
zName = "SQLITE_NOTICE"; break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
1244 case
executed 1 time by 1 test: case (27 | (1<<8)):
Executed by:
  • Self test (438)
(27 | (1<<8)):
executed 1 time by 1 test: case (27 | (1<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_NOTICE_RECOVER_WAL";break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1245 case
never executed: case (27 | (2<<8)):
(27 | (2<<8)):
never executed: case (27 | (2<<8)):
0
1246 zName = "SQLITE_NOTICE_RECOVER_ROLLBACK"; break;
never executed: break;
0
1247 case
executed 2 times by 1 test: case 28:
Executed by:
  • Self test (438)
28:
executed 2 times by 1 test: case 28:
Executed by:
  • Self test (438)
zName = "SQLITE_WARNING"; break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
1248 case
executed 1 time by 1 test: case (28 | (1<<8)):
Executed by:
  • Self test (438)
(28 | (1<<8)):
executed 1 time by 1 test: case (28 | (1<<8)):
Executed by:
  • Self test (438)
zName = "SQLITE_WARNING_AUTOINDEX"; break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1249 case
executed 770 times by 1 test: case 101:
Executed by:
  • Self test (438)
101:
executed 770 times by 1 test: case 101:
Executed by:
  • Self test (438)
zName = "SQLITE_DONE"; break;
executed 770 times by 1 test: break;
Executed by:
  • Self test (438)
770
1250 }-
1251 }
executed 16298 times by 8 tests: end of block
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
16298
1252 if( zName==0
zName==0Description
TRUEevaluated 338 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 15622 times by 8 tests
Evaluated by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
){
338-15622
1253 static char zBuf[50];-
1254 sqlite3_snprintf(sizeof(zBuf), zBuf, "SQLITE_UNKNOWN(%d)", origRc);-
1255 zName = zBuf;-
1256 }
executed 338 times by 1 test: end of block
Executed by:
  • Self test (438)
338
1257 return
executed 15960 times by 8 tests: return zName;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
zName;
executed 15960 times by 8 tests: return zName;
Executed by:
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (34)
  • Self test (438)
  • Self test (63)
15960
1258}-
1259-
1260-
1261-
1262-
1263-
1264-
1265const char *sqlite3ErrStr(int rc){-
1266 static const char* const aMsg[] = {-
1267 "not an error",-
1268 "SQL logic error",-
1269 0,-
1270 "access permission denied",-
1271 "query aborted",-
1272 "database is locked",-
1273 "database table is locked",-
1274 "out of memory",-
1275 "attempt to write a readonly database",-
1276 "interrupted",-
1277 "disk I/O error",-
1278 "database disk image is malformed",-
1279 "unknown operation",-
1280 "database or disk is full",-
1281 "unable to open database file",-
1282 "locking protocol",-
1283 0,-
1284 "database schema has changed",-
1285 "string or blob too big",-
1286 "constraint failed",-
1287 "datatype mismatch",-
1288 "bad parameter or other API misuse",-
1289-
1290-
1291-
1292 0,-
1293-
1294 "authorization denied",-
1295 0,-
1296 "column index out of range",-
1297 "file is not a database",-
1298 "notification message",-
1299 "warning message",-
1300 };-
1301 const char *zErr = "unknown error";-
1302 switch( rc ){-
1303 case
executed 6 times by 1 test: case (4 | (2<<8)):
Executed by:
  • Self test (438)
(4 | (2<<8)):
executed 6 times by 1 test: case (4 | (2<<8)):
Executed by:
  • Self test (438)
{
6
1304 zErr = "abort due to ROLLBACK";-
1305 break;
executed 6 times by 1 test: break;
Executed by:
  • Self test (438)
6
1306 }-
1307 case
never executed: case 100:
100:
never executed: case 100:
{
0
1308 zErr = "another row available";-
1309 break;
never executed: break;
0
1310 }-
1311 case
never executed: case 101:
101:
never executed: case 101:
{
0
1312 zErr = "no more rows available";-
1313 break;
never executed: break;
0
1314 }-
1315 default
executed 15255 times by 23 tests: default:
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
:
executed 15255 times by 23 tests: default:
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
{
15255
1316 rc &= 0xff;-
1317 if( (
(rc>=0)Description
TRUEevaluated 15255 times by 23 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
FALSEnever evaluated
rc>=0)
(rc>=0)Description
TRUEevaluated 15255 times by 23 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
FALSEnever evaluated
&& rc<((int)(sizeof(aMsg)/sizeof(aMsg[0])))
rc<((int)(size...eof(aMsg[0])))Description
TRUEevaluated 15251 times by 23 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
&& aMsg[rc]!=0
aMsg[rc]!=0Description
TRUEevaluated 15250 times by 23 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
0-15255
1318 zErr = aMsg[rc];-
1319 }
executed 15250 times by 23 tests: end of block
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
15250
1320 break;
executed 15255 times by 23 tests: break;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
15255
1321 }-
1322 }-
1323 return
executed 15261 times by 23 tests: return zErr;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
zErr;
executed 15261 times by 23 tests: return zErr;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (61)
  • Self test (65)
  • Self test (66)
  • Self test (67)
  • Self test (68)
  • Self test (69)
  • Self test (70)
  • Self test (71)
  • Self test (74)
15261
1324}-
1325static int sqliteDefaultBusyCallback(-
1326 void *ptr,-
1327 int count,-
1328 sqlite3_file *pFile-
1329){-
1330-
1331-
1332-
1333 static const u8 delays[] =-
1334 { 1, 2, 5, 10, 15, 20, 25, 25, 25, 50, 50, 100 };-
1335 static const u8 totals[] =-
1336 { 0, 1, 3, 8, 18, 33, 53, 78, 103, 128, 178, 228 };-
1337-
1338 sqlite3 *db = (sqlite3 *)ptr;-
1339 int tmout = db->busyTimeout;-
1340 int delay, prior;-
1341 (void)(pFile);-
1342-
1343 -
1344 ((void) (0))-
1345 ;-
1346 if( count < ((int)(sizeof(delays)/sizeof(delays[0])))
count < ((int)...f(delays[0])))Description
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
){
4-26
1347 delay = delays[count];-
1348 prior = totals[count];-
1349 }
executed 26 times by 2 tests: end of block
Executed by:
  • Self test (31)
  • Self test (438)
else{
26
1350 delay = delays[((int)(sizeof(delays)/sizeof(delays[0])))-1];-
1351 prior = totals[((int)(sizeof(delays)/sizeof(delays[0])))-1] + delay*(count-(((int)(sizeof(delays)/sizeof(delays[0])))-1));-
1352 }
executed 4 times by 1 test: end of block
Executed by:
  • Self test (438)
4
1353 if( prior + delay > tmout
prior + delay > tmoutDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
){
4-26
1354 delay = tmout - prior;-
1355 if( delay<=0
delay<=0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 2 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 2 times by 1 test: return 0;
Executed by:
  • Self test (438)
2
1356 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
1357 sqlite3OsSleep(db->pVfs, delay*1000);-
1358 return
executed 28 times by 2 tests: return 1;
Executed by:
  • Self test (31)
  • Self test (438)
1;
executed 28 times by 2 tests: return 1;
Executed by:
  • Self test (31)
  • Self test (438)
28
1359}-
1360int sqlite3InvokeBusyHandler(BusyHandler *p, sqlite3_file *pFile){-
1361 int rc;-
1362 if( p->xBusyHandler==0
p->xBusyHandler==0Description
TRUEevaluated 500 times by 11 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
FALSEevaluated 3086 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
|| p->nBusy<0
p->nBusy<0Description
TRUEevaluated 1474 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1612 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
) return
executed 1974 times by 11 tests: return 0;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
0;
executed 1974 times by 11 tests: return 0;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
500-3086
1363 if( p->bExtraFileArg
p->bExtraFileArgDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
FALSEevaluated 1582 times by 1 test
Evaluated by:
  • Self test (438)
){
30-1582
1364-
1365-
1366 int (*xTra)(void*,int,sqlite3_file*);-
1367 xTra = (int(*)(void*,int,sqlite3_file*))p->xBusyHandler;-
1368 rc = xTra(p->pBusyArg, p->nBusy, pFile);-
1369 }
executed 30 times by 2 tests: end of block
Executed by:
  • Self test (31)
  • Self test (438)
else{
30
1370-
1371 rc = p->xBusyHandler(p->pBusyArg, p->nBusy);-
1372 }
executed 1582 times by 1 test: end of block
Executed by:
  • Self test (438)
1582
1373 if( rc==0
rc==0Description
TRUEevaluated 110 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1502 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
){
110-1502
1374 p->nBusy = -1;-
1375 }
executed 110 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
110
1376 p->nBusy++;-
1377 }
executed 1502 times by 2 tests: end of block
Executed by:
  • Self test (31)
  • Self test (438)
1502
1378 return
executed 1612 times by 2 tests: return rc;
Executed by:
  • Self test (31)
  • Self test (438)
rc;
executed 1612 times by 2 tests: return rc;
Executed by:
  • Self test (31)
  • Self test (438)
1612
1379}-
1380-
1381-
1382-
1383-
1384-
1385int sqlite3_busy_handler(-
1386 sqlite3 *db,-
1387 int (*xBusy)(void*,int),-
1388 void *pArg-
1389){-
1390-
1391-
1392-
1393 sqlite3_mutex_enter(db->mutex);-
1394 db->busyHandler.xBusyHandler = xBusy;-
1395 db->busyHandler.pBusyArg = pArg;-
1396 db->busyHandler.nBusy = 0;-
1397 db->busyHandler.bExtraFileArg = 0;-
1398 db->busyTimeout = 0;-
1399 sqlite3_mutex_leave(db->mutex);-
1400 return
executed 157 times by 2 tests: return 0;
Executed by:
  • Self test (31)
  • Self test (438)
0;
executed 157 times by 2 tests: return 0;
Executed by:
  • Self test (31)
  • Self test (438)
157
1401}-
1402-
1403-
1404-
1405-
1406-
1407-
1408-
1409void sqlite3_progress_handler(-
1410 sqlite3 *db,-
1411 int nOps,-
1412 int (*xProgress)(void*),-
1413 void *pArg-
1414){-
1415-
1416-
1417-
1418-
1419-
1420-
1421 sqlite3_mutex_enter(db->mutex);-
1422 if( nOps>0
nOps>0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
){
7-16
1423 db->xProgress = xProgress;-
1424 db->nProgressOps = (unsigned)nOps;-
1425 db->pProgressArg = pArg;-
1426 }
executed 16 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
16
1427 db->xProgress = 0;-
1428 db->nProgressOps = 0;-
1429 db->pProgressArg = 0;-
1430 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test (438)
7
1431 sqlite3_mutex_leave(db->mutex);-
1432}
executed 23 times by 1 test: end of block
Executed by:
  • Self test (438)
23
1433-
1434-
1435-
1436-
1437-
1438-
1439-
1440int sqlite3_busy_timeout(sqlite3 *db, int ms){-
1441-
1442-
1443-
1444 if( ms>0
ms>0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • Self test (31)
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-4
1445 sqlite3_busy_handler(db, (int(*)(void*,int))sqliteDefaultBusyCallback,-
1446 (void*)db);-
1447 db->busyTimeout = ms;-
1448 db->busyHandler.bExtraFileArg = 1;-
1449 }
executed 4 times by 2 tests: end of block
Executed by:
  • Self test (31)
  • Self test (438)
else{
4
1450 sqlite3_busy_handler(db, 0, 0);-
1451 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
1452 return
executed 6 times by 2 tests: return 0;
Executed by:
  • Self test (31)
  • Self test (438)
0;
executed 6 times by 2 tests: return 0;
Executed by:
  • Self test (31)
  • Self test (438)
6
1453}-
1454-
1455-
1456-
1457-
1458void sqlite3_interrupt(sqlite3 *db){-
1459-
1460-
1461-
1462-
1463-
1464-
1465 db->u1.isInterrupted = 1;-
1466}
executed 2137 times by 1 test: end of block
Executed by:
  • Self test (438)
2137
1467int sqlite3CreateFunc(-
1468 sqlite3 *db,-
1469 const char *zFunctionName,-
1470 int nArg,-
1471 int enc,-
1472 void *pUserData,-
1473 void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),-
1474 void (*xStep)(sqlite3_context*,int,sqlite3_value **),-
1475 void (*xFinal)(sqlite3_context*),-
1476 void (*xValue)(sqlite3_context*),-
1477 void (*xInverse)(sqlite3_context*,int,sqlite3_value **),-
1478 FuncDestructor *pDestructor-
1479){-
1480 FuncDef *p;-
1481 int nName;-
1482 int extraFlags;-
1483-
1484 -
1485 ((void) (0))-
1486 ;-
1487 -
1488 ((void) (0))-
1489 ;-
1490 if( zFunctionName==0
zFunctionName==0Description
TRUEnever evaluated
FALSEevaluated 721702 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0-721702
1491 || (xSFunc!=0
xSFunc!=0Description
TRUEevaluated 602443 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 119259 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
&& xFinal!=0
xFinal!=0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 602441 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
)
2-602443
1492 || ((
((xFinal==0)!=(xStep==0))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721694 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
xFinal==0)!=(xStep==0))
((xFinal==0)!=(xStep==0))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721694 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
6-721694
1493 || ((
((xValue==0)!=(xInverse==0))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721692 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
xValue==0)!=(xInverse==0))
((xValue==0)!=(xInverse==0))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721692 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
2-721692
1494 || (nArg<-1
nArg<-1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721691 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| nArg>127
nArg>127Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721690 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
)
1-721691
1495 || (
(255<(nName = ...unctionName)))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721688 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
255<(nName = sqlite3Strlen30( zFunctionName)))
(255<(nName = ...unctionName)))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721688 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
2-721688
1496 ){-
1497 return
executed 14 times by 1 test: return sqlite3MisuseError(1713);
Executed by:
  • Self test (438)
sqlite3MisuseError(1713);
executed 14 times by 1 test: return sqlite3MisuseError(1713);
Executed by:
  • Self test (438)
14
1498 }-
1499-
1500 -
1501 ((void) (0))-
1502 ;-
1503 extraFlags = enc & 0x800;-
1504 enc &= (0x0003|5);-
1505 if( enc==4
enc==4Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 721674 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
14-721674
1506 enc = 2;-
1507 }
executed 14 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( enc==5
enc==5Description
TRUEevaluated 30937 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 690737 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
14-690737
1508 int rc;-
1509 rc = sqlite3CreateFunc(db, zFunctionName, nArg, 1|extraFlags,-
1510 pUserData, xSFunc, xStep, xFinal, xValue, xInverse, pDestructor);-
1511 if( rc==0
rc==0Description
TRUEevaluated 30845 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 92 times by 1 test
Evaluated by:
  • Self test (438)
){
92-30845
1512 rc = sqlite3CreateFunc(db, zFunctionName, nArg, 2|extraFlags,-
1513 pUserData, xSFunc, xStep, xFinal, xValue, xInverse, pDestructor);-
1514 }
executed 30845 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
30845
1515 if( rc!=0
rc!=0Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 30837 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
100-30837
1516 return
executed 100 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 100 times by 1 test: return rc;
Executed by:
  • Self test (438)
100
1517 }-
1518 enc = 3;-
1519 }
executed 30837 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
30837
1520 p = sqlite3FindFunction(db, zFunctionName, nArg, (u8)enc, 0);-
1521 if( p
pDescription
TRUEevaluated 61822 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 659766 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
&& (
(p->funcFlags ...003)==(u32)encDescription
TRUEevaluated 134 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 61688 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
p->funcFlags & 0x0003)==(u32)enc
(p->funcFlags ...003)==(u32)encDescription
TRUEevaluated 134 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 61688 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
&& p->nArg==nArg
p->nArg==nArgDescription
TRUEevaluated 134 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-659766
1522 if( db->nVdbeActive
db->nVdbeActiveDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 130 times by 1 test
Evaluated by:
  • Self test (438)
){
4-130
1523 sqlite3ErrorWithMsg(db, 5,-
1524 "unable to delete/modify user-function due to active statements");-
1525 -
1526 ((void) (0))-
1527 ;-
1528 return
executed 4 times by 1 test: return 5;
Executed by:
  • Self test (438)
5;
executed 4 times by 1 test: return 5;
Executed by:
  • Self test (438)
4
1529 }else{-
1530 sqlite3ExpirePreparedStatements(db, 0);-
1531 }
executed 130 times by 1 test: end of block
Executed by:
  • Self test (438)
130
1532 }-
1533-
1534 p = sqlite3FindFunction(db, zFunctionName, nArg, (u8)enc, 1);-
1535 -
1536 ((void) (0))-
1537 ;-
1538 if( !p
!pDescription
TRUEevaluated 1050 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 720534 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
1050-720534
1539 return
executed 1050 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 1050 times by 1 test: return 7;
Executed by:
  • Self test (438)
1050
1540 }-
1541-
1542-
1543-
1544 functionDestroy(db, p);-
1545-
1546 if( pDestructor
pDestructorDescription
TRUEevaluated 31779 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 688755 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
31779-688755
1547 pDestructor->nRef++;-
1548 }
executed 31779 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31779
1549 p->u.pDestructor = pDestructor;-
1550 p->funcFlags = (p->funcFlags & 0x0003) | extraFlags;-
1551 ;-
1552 p->xSFunc = xSFunc
xSFuncDescription
TRUEevaluated 601555 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 118979 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
? xSFunc : xStep;
118979-601555
1553 p->xFinalize = xFinal;-
1554 p->xValue = xValue;-
1555 p->xInverse = xInverse;-
1556 p->pUserData = pUserData;-
1557 p->nArg = (u16)nArg;-
1558 return
executed 720534 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 720534 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
720534
1559}-
1560static int createFunctionApi(-
1561 sqlite3 *db,-
1562 const char *zFunc,-
1563 int nArg,-
1564 int enc,-
1565 void *p,-
1566 void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),-
1567 void (*xStep)(sqlite3_context*,int,sqlite3_value**),-
1568 void (*xFinal)(sqlite3_context*),-
1569 void (*xValue)(sqlite3_context*),-
1570 void (*xInverse)(sqlite3_context*,int,sqlite3_value**),-
1571 void(*xDestroy)(void*)-
1572){-
1573 int rc = 1;-
1574 FuncDestructor *pArg = 0;-
1575-
1576-
1577-
1578-
1579-
1580-
1581 sqlite3_mutex_enter(db->mutex);-
1582 if( xDestroy
xDestroyDescription
TRUEevaluated 31800 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 628034 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
31800-628034
1583 pArg = (FuncDestructor *)sqlite3Malloc(sizeof(FuncDestructor));-
1584 if( !pArg
!pArgDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31792 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
8-31792
1585 sqlite3OomFault(db);-
1586 xDestroy(p);-
1587 goto
executed 8 times by 1 test: goto out;
Executed by:
  • Self test (438)
out;
executed 8 times by 1 test: goto out;
Executed by:
  • Self test (438)
8
1588 }-
1589 pArg->nRef = 0;-
1590 pArg->xDestroy = xDestroy;-
1591 pArg->pUserData = p;-
1592 }
executed 31792 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31792
1593 rc = sqlite3CreateFunc(db, zFunc, nArg, enc, p,-
1594 xSFunc, xStep, xFinal, xValue, xInverse, pArg-
1595 );-
1596 if( pArg
pArgDescription
TRUEevaluated 31792 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 628034 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
&& pArg->nRef==0
pArg->nRef==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31775 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
17-628034
1597 -
1598 ((void) (0))-
1599 ;-
1600 xDestroy(p);-
1601 sqlite3_free(pArg);-
1602 }
executed 17 times by 1 test: end of block
Executed by:
  • Self test (438)
17
1603-
1604 out:
code before this statement executed 659826 times by 438 tests: out:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
659826
1605 rc = sqlite3ApiExit(db, rc);-
1606 sqlite3_mutex_leave(db->mutex);-
1607 return
executed 659834 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
rc;
executed 659834 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
659834
1608}-
1609-
1610-
1611-
1612-
1613int sqlite3_create_function(-
1614 sqlite3 *db,-
1615 const char *zFunc,-
1616 int nArg,-
1617 int enc,-
1618 void *p,-
1619 void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),-
1620 void (*xStep)(sqlite3_context*,int,sqlite3_value **),-
1621 void (*xFinal)(sqlite3_context*)-
1622){-
1623 return
executed 628001 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep,
executed 628001 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
628001
1624 xFinal, 0, 0, 0);
executed 628001 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
628001
1625}-
1626int sqlite3_create_function_v2(-
1627 sqlite3 *db,-
1628 const char *zFunc,-
1629 int nArg,-
1630 int enc,-
1631 void *p,-
1632 void (*xSFunc)(sqlite3_context*,int,sqlite3_value **),-
1633 void (*xStep)(sqlite3_context*,int,sqlite3_value **),-
1634 void (*xFinal)(sqlite3_context*),-
1635 void (*xDestroy)(void *)-
1636){-
1637 return
executed 31826 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, xDestroy);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep,
executed 31826 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, xDestroy);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31826
1638 xFinal, 0, 0, xDestroy);
executed 31826 times by 438 tests: return createFunctionApi(db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, 0, 0, xDestroy);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31826
1639}-
1640int sqlite3_create_window_function(-
1641 sqlite3 *db,-
1642 const char *zFunc,-
1643 int nArg,-
1644 int enc,-
1645 void *p,-
1646 void (*xStep)(sqlite3_context*,int,sqlite3_value **),-
1647 void (*xFinal)(sqlite3_context*),-
1648 void (*xValue)(sqlite3_context*),-
1649 void (*xInverse)(sqlite3_context*,int,sqlite3_value **),-
1650 void (*xDestroy)(void *)-
1651){-
1652 return
executed 7 times by 1 test: return createFunctionApi(db, zFunc, nArg, enc, p, 0, xStep, xFinal, xValue, xInverse, xDestroy);
Executed by:
  • Self test (438)
createFunctionApi(db, zFunc, nArg, enc, p, 0, xStep,
executed 7 times by 1 test: return createFunctionApi(db, zFunc, nArg, enc, p, 0, xStep, xFinal, xValue, xInverse, xDestroy);
Executed by:
  • Self test (438)
7
1653 xFinal, xValue, xInverse, xDestroy);
executed 7 times by 1 test: return createFunctionApi(db, zFunc, nArg, enc, p, 0, xStep, xFinal, xValue, xInverse, xDestroy);
Executed by:
  • Self test (438)
7
1654}-
1655-
1656-
1657int sqlite3_create_function16(-
1658 sqlite3 *db,-
1659 const void *zFunctionName,-
1660 int nArg,-
1661 int eTextRep,-
1662 void *p,-
1663 void (*xSFunc)(sqlite3_context*,int,sqlite3_value**),-
1664 void (*xStep)(sqlite3_context*,int,sqlite3_value**),-
1665 void (*xFinal)(sqlite3_context*)-
1666){-
1667 int rc;-
1668 char *zFunc8;-
1669-
1670-
1671-
1672-
1673 sqlite3_mutex_enter(db->mutex);-
1674 -
1675 ((void) (0))-
1676 ;-
1677 zFunc8 = sqlite3Utf16to8(db, zFunctionName, -1, 2);-
1678 rc = sqlite3CreateFunc(db, zFunc8, nArg, eTextRep, p, xSFunc,xStep,xFinal,0,0,0);-
1679 sqlite3DbFree(db, zFunc8);-
1680 rc = sqlite3ApiExit(db, rc);-
1681 sqlite3_mutex_leave(db->mutex);-
1682 return
executed 7 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 7 times by 1 test: return rc;
Executed by:
  • Self test (438)
7
1683}-
1684static void sqlite3InvalidFunction(-
1685 sqlite3_context *context,-
1686 int NotUsed,-
1687 sqlite3_value **NotUsed2-
1688){-
1689 const char *zName = (const char*)sqlite3_user_data(context);-
1690 char *zErr;-
1691 (void)(NotUsed),(void)(NotUsed2);-
1692 zErr = sqlite3_mprintf(-
1693 "unable to use function %s in the requested context", zName);-
1694 sqlite3_result_error(context, zErr, -1);-
1695 sqlite3_free(zErr);-
1696}
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
1697int sqlite3_overload_function(-
1698 sqlite3 *db,-
1699 const char *zName,-
1700 int nArg-
1701){-
1702 int rc;-
1703 char *zCopy;-
1704-
1705-
1706-
1707-
1708-
1709-
1710 sqlite3_mutex_enter(db->mutex);-
1711 rc = sqlite3FindFunction(db, zName, nArg, 1, 0)!=0;-
1712 sqlite3_mutex_leave(db->mutex);-
1713 if( rc
rcDescription
TRUEevaluated 29735 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 31872 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 29735 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 29735 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
29735-31872
1714 zCopy = sqlite3_mprintf(zName);-
1715 if( zCopy==0
zCopy==0Description
TRUEevaluated 96 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31776 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 96 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 96 times by 1 test: return 7;
Executed by:
  • Self test (438)
96-31776
1716 return
executed 31776 times by 438 tests: return sqlite3_create_function_v2(db, zName, nArg, 1, zCopy, sqlite3InvalidFunction, 0, 0, sqlite3_free);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
sqlite3_create_function_v2(db, zName, nArg, 1,
executed 31776 times by 438 tests: return sqlite3_create_function_v2(db, zName, nArg, 1, zCopy, sqlite3InvalidFunction, 0, 0, sqlite3_free);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31776
1717 zCopy, sqlite3InvalidFunction, 0, 0, sqlite3_free);
executed 31776 times by 438 tests: return sqlite3_create_function_v2(db, zName, nArg, 1, zCopy, sqlite3InvalidFunction, 0, 0, sqlite3_free);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31776
1718}-
1719void *sqlite3_trace(sqlite3 *db, void(*xTrace)(void*,const char*), void *pArg){-
1720 void *pOld;-
1721-
1722-
1723-
1724-
1725-
1726-
1727-
1728 sqlite3_mutex_enter(db->mutex);-
1729 pOld = db->pTraceArg;-
1730 db->mTrace = xTrace
xTraceDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
? 0x80 : 0;
3-9
1731 db->xTrace = (int(*)(u32,void*,void*,void*))xTrace;-
1732 db->pTraceArg = pArg;-
1733 sqlite3_mutex_leave(db->mutex);-
1734 return
executed 12 times by 1 test: return pOld;
Executed by:
  • Self test (438)
pOld;
executed 12 times by 1 test: return pOld;
Executed by:
  • Self test (438)
12
1735}-
1736-
1737-
1738-
1739-
1740int sqlite3_trace_v2(-
1741 sqlite3 *db,-
1742 unsigned mTrace,-
1743 int(*xTrace)(unsigned,void*,void*,void*),-
1744 void *pArg-
1745){-
1746-
1747-
1748-
1749-
1750-
1751 sqlite3_mutex_enter(db->mutex);-
1752 if( mTrace==0
mTrace==0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
) xTrace = 0;
executed 2 times by 1 test: xTrace = 0;
Executed by:
  • Self test (438)
2-16
1753 if( xTrace==0
xTrace==0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
) mTrace = 0;
executed 2 times by 1 test: mTrace = 0;
Executed by:
  • Self test (438)
2-16
1754 db->mTrace = mTrace;-
1755 db->xTrace = xTrace;-
1756 db->pTraceArg = pArg;-
1757 sqlite3_mutex_leave(db->mutex);-
1758 return
executed 18 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 18 times by 1 test: return 0;
Executed by:
  • Self test (438)
18
1759}-
1760void *sqlite3_profile(-
1761 sqlite3 *db,-
1762 void (*xProfile)(void*,const char*,sqlite_uint64),-
1763 void *pArg-
1764){-
1765 void *pOld;-
1766-
1767-
1768-
1769-
1770-
1771-
1772-
1773 sqlite3_mutex_enter(db->mutex);-
1774 pOld = db->pProfileArg;-
1775 db->xProfile = xProfile;-
1776 db->pProfileArg = pArg;-
1777 sqlite3_mutex_leave(db->mutex);-
1778 return
executed 3 times by 1 test: return pOld;
Executed by:
  • Self test (438)
pOld;
executed 3 times by 1 test: return pOld;
Executed by:
  • Self test (438)
3
1779}-
1780void *sqlite3_commit_hook(-
1781 sqlite3 *db,-
1782 int (*xCallback)(void*),-
1783 void *pArg-
1784){-
1785 void *pOld;-
1786-
1787-
1788-
1789-
1790-
1791-
1792-
1793 sqlite3_mutex_enter(db->mutex);-
1794 pOld = db->pCommitArg;-
1795 db->xCommitCallback = xCallback;-
1796 db->pCommitArg = pArg;-
1797 sqlite3_mutex_leave(db->mutex);-
1798 return
executed 4 times by 1 test: return pOld;
Executed by:
  • Self test (438)
pOld;
executed 4 times by 1 test: return pOld;
Executed by:
  • Self test (438)
4
1799}-
1800-
1801-
1802-
1803-
1804-
1805void *sqlite3_update_hook(-
1806 sqlite3 *db,-
1807 void (*xCallback)(void*,int,char const *,char const *,sqlite_int64),-
1808 void *pArg-
1809){-
1810 void *pRet;-
1811-
1812-
1813-
1814-
1815-
1816-
1817-
1818 sqlite3_mutex_enter(db->mutex);-
1819 pRet = db->pUpdateArg;-
1820 db->xUpdateCallback = xCallback;-
1821 db->pUpdateArg = pArg;-
1822 sqlite3_mutex_leave(db->mutex);-
1823 return
executed 15 times by 1 test: return pRet;
Executed by:
  • Self test (438)
pRet;
executed 15 times by 1 test: return pRet;
Executed by:
  • Self test (438)
15
1824}-
1825-
1826-
1827-
1828-
1829-
1830void *sqlite3_rollback_hook(-
1831 sqlite3 *db,-
1832 void (*xCallback)(void*),-
1833 void *pArg-
1834){-
1835 void *pRet;-
1836-
1837-
1838-
1839-
1840-
1841-
1842-
1843 sqlite3_mutex_enter(db->mutex);-
1844 pRet = db->pRollbackArg;-
1845 db->xRollbackCallback = xCallback;-
1846 db->pRollbackArg = pArg;-
1847 sqlite3_mutex_leave(db->mutex);-
1848 return
executed 15 times by 1 test: return pRet;
Executed by:
  • Self test (438)
pRet;
executed 15 times by 1 test: return pRet;
Executed by:
  • Self test (438)
15
1849}-
1850int sqlite3WalDefaultHook(-
1851 void *pClientData,-
1852 sqlite3 *db,-
1853 const char *zDb,-
1854 int nFrame-
1855){-
1856 if( nFrame>=((int)(long int)(pClientData))
nFrame>=((int)...(pClientData))Description
TRUEevaluated 1937 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11417 times by 25 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
){
1937-11417
1857 sqlite3BeginBenignMalloc();-
1858 sqlite3_wal_checkpoint(db, zDb);-
1859 sqlite3EndBenignMalloc();-
1860 }
executed 1937 times by 1 test: end of block
Executed by:
  • Self test (438)
1937
1861 return
executed 13354 times by 25 tests: return 0;
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
0;
executed 13354 times by 25 tests: return 0;
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
13354
1862}-
1863int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){-
1864-
1865-
1866-
1867-
1868-
1869-
1870-
1871 if( nFrame>0
nFrame>0Description
TRUEevaluated 31610 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (64)
){
20-31610
1872 sqlite3_wal_hook(db, sqlite3WalDefaultHook, ((void*)(long int)(nFrame)));-
1873 }
executed 31610 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else{
31610
1874 sqlite3_wal_hook(db, 0, 0);-
1875 }
executed 20 times by 2 tests: end of block
Executed by:
  • Self test (438)
  • Self test (64)
20
1876-
1877 return
executed 31630 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 31630 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31630
1878}-
1879-
1880-
1881-
1882-
1883-
1884void *sqlite3_wal_hook(-
1885 sqlite3 *db,-
1886 int(*xCallback)(void *, sqlite3*, const char*, int),-
1887 void *pArg-
1888){-
1889-
1890 void *pRet;-
1891-
1892-
1893-
1894-
1895-
1896-
1897 sqlite3_mutex_enter(db->mutex);-
1898 pRet = db->pWalArg;-
1899 db->xWalCallback = xCallback;-
1900 db->pWalArg = pArg;-
1901 sqlite3_mutex_leave(db->mutex);-
1902 return
executed 31645 times by 438 tests: return pRet;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
pRet;
executed 31645 times by 438 tests: return pRet;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31645
1903-
1904-
1905-
1906}-
1907-
1908-
1909-
1910-
1911int sqlite3_wal_checkpoint_v2(-
1912 sqlite3 *db,-
1913 const char *zDb,-
1914 int eMode,-
1915 int *pnLog,-
1916 int *pnCkpt-
1917){-
1918-
1919-
1920-
1921 int rc;-
1922 int iDb = 10;-
1923-
1924-
1925-
1926-
1927-
1928-
1929 if( pnLog
pnLogDescription
TRUEevaluated 128 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
FALSEevaluated 1959 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 128 times by 3 tests: *pnLog = -1;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
pnLog = -1;
executed 128 times by 3 tests: *pnLog = -1;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
128-1959
1930 if( pnCkpt
pnCkptDescription
TRUEevaluated 128 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
FALSEevaluated 1959 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 128 times by 3 tests: *pnCkpt = -1;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
pnCkpt = -1;
executed 128 times by 3 tests: *pnCkpt = -1;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
128-1959
1931-
1932 -
1933 ((void) (0))-
1934 ;-
1935 -
1936 ((void) (0))-
1937 ;-
1938 -
1939 ((void) (0))-
1940 ;-
1941 -
1942 ((void) (0))-
1943 ;-
1944 if( eMode<0
eMode<0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2085 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
|| eMode>3
eMode>3Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2082 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
){
2-2085
1945-
1946-
1947 return
executed 5 times by 1 test: return 21;
Executed by:
  • Self test (438)
21;
executed 5 times by 1 test: return 21;
Executed by:
  • Self test (438)
5
1948 }-
1949-
1950 sqlite3_mutex_enter(db->mutex);-
1951 if( zDb
zDbDescription
TRUEevaluated 1979 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 103 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
&& zDb[0]
zDb[0]Description
TRUEevaluated 1976 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
){
3-1979
1952 iDb = sqlite3FindDbName(db, zDb);-
1953 }
executed 1976 times by 1 test: end of block
Executed by:
  • Self test (438)
1976
1954 if( iDb<0
iDb<0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2079 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
){
3-2079
1955 rc = 1;-
1956 sqlite3ErrorWithMsg(db, 1, "unknown database: %s", zDb);-
1957 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
3
1958 db->busyHandler.nBusy = 0;-
1959 rc = sqlite3Checkpoint(db, iDb, eMode, pnLog, pnCkpt);-
1960 sqlite3Error(db, rc);-
1961 }
executed 2079 times by 3 tests: end of block
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
2079
1962 rc = sqlite3ApiExit(db, rc);-
1963-
1964-
1965-
1966 if( db->nVdbeActive==0
db->nVdbeActive==0Description
TRUEevaluated 2081 times by 3 tests
Evaluated by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
1-2081
1967 db->u1.isInterrupted = 0;-
1968 }
executed 2081 times by 3 tests: end of block
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
2081
1969-
1970 sqlite3_mutex_leave(db->mutex);-
1971 return
executed 2082 times by 3 tests: return rc;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
rc;
executed 2082 times by 3 tests: return rc;
Executed by:
  • Self test (438)
  • Self test (89)
  • Self test (90)
2082
1972-
1973}-
1974-
1975-
1976-
1977-
1978-
1979-
1980-
1981int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){-
1982-
1983-
1984 return
executed 1959 times by 1 test: return sqlite3_wal_checkpoint_v2(db,zDb,0,0,0);
Executed by:
  • Self test (438)
sqlite3_wal_checkpoint_v2(db,zDb,0,0,0);
executed 1959 times by 1 test: return sqlite3_wal_checkpoint_v2(db,zDb,0,0,0);
Executed by:
  • Self test (438)
1959
1985}-
1986int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){-
1987 int rc = 0;-
1988 int i;-
1989 int bBusy = 0;-
1990-
1991 -
1992 ((void) (0))-
1993 ;-
1994 -
1995 ((void) (0))-
1996 ;-
1997 -
1998 ((void) (0))-
1999 ;-
2000-
2001 for(i=0; i<db->nDb
i<db->nDbDescription
TRUEevaluated 13150 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
FALSEevaluated 6487 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
&& rc==0
rc==0Description
TRUEevaluated 13135 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
FALSEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
15-13150
2002 if( i==iDb
i==iDbDescription
TRUEevaluated 1992 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11143 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
|| iDb==10
iDb==10Description
TRUEevaluated 9102 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
FALSEevaluated 2041 times by 1 test
Evaluated by:
  • Self test (438)
){
1992-11143
2003 rc = sqlite3BtreeCheckpoint(db->aDb[i].pBt, eMode, pnLog, pnCkpt);-
2004 pnLog = 0;-
2005 pnCkpt = 0;-
2006 if( rc==5
rc==5Description
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11011 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
){
83-11011
2007 bBusy = 1;-
2008 rc = 0;-
2009 }
executed 83 times by 1 test: end of block
Executed by:
  • Self test (438)
83
2010 }
executed 11094 times by 10 tests: end of block
Executed by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
11094
2011 }
executed 13135 times by 10 tests: end of block
Executed by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
13135
2012-
2013 return
executed 6502 times by 10 tests: return (rc==0 && bBusy) ? 5 : rc;
Executed by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
(rc==0
rc==0Description
TRUEevaluated 6487 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
FALSEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
&& bBusy
bBusyDescription
TRUEevaluated 83 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6404 times by 10 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
) ? 5 : rc;
executed 6502 times by 10 tests: return (rc==0 && bBusy) ? 5 : rc;
Executed by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (72)
  • Self test (73)
  • Self test (84)
  • Self test (85)
  • Self test (89)
  • Self test (90)
15-6502
2014}-
2015int sqlite3TempInMemory(const sqlite3 *db){-
2016-
2017 return
executed 265432 times by 417 tests: return ( db->temp_store==2 );
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • ...
( db->temp_store==2 );
executed 265432 times by 417 tests: return ( db->temp_store==2 );
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • ...
265432
2018}-
2019-
2020-
2021-
2022-
2023-
2024const char *sqlite3_errmsg(sqlite3 *db){-
2025 const char *z;-
2026 if( !db
!dbDescription
TRUEnever evaluated
FALSEevaluated 9988 times by 12 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
){
0-9988
2027 return
never executed: return sqlite3ErrStr(7);
sqlite3ErrStr(7);
never executed: return sqlite3ErrStr(7);
0
2028 }-
2029 if( !sqlite3SafetyCheckSickOrOk(db)
!sqlite3Safety...ckSickOrOk(db)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 9982 times by 12 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
){
6-9982
2030 return
executed 6 times by 1 test: return sqlite3ErrStr(sqlite3MisuseError(2398));
Executed by:
  • Self test (438)
sqlite3ErrStr(sqlite3MisuseError(2398));
executed 6 times by 1 test: return sqlite3ErrStr(sqlite3MisuseError(2398));
Executed by:
  • Self test (438)
6
2031 }-
2032 sqlite3_mutex_enter(db->mutex);-
2033 if( db->mallocFailed
db->mallocFailedDescription
TRUEnever evaluated
FALSEevaluated 9982 times by 12 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
){
0-9982
2034 z = sqlite3ErrStr(7);-
2035 }
never executed: end of block
else{
0
2036 ;-
2037 z = (char*)sqlite3_value_text(db->pErr);-
2038 -
2039 ((void) (0))-
2040 ;-
2041 if( z==0
z==0Description
TRUEevaluated 2950 times by 10 tests
Evaluated by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
FALSEevaluated 7032 times by 4 tests
Evaluated by:
  • Self test (35)
  • Self test (39)
  • Self test (438)
  • Self test (61)
){
2950-7032
2042 z = sqlite3ErrStr(db->errCode);-
2043 }
executed 2950 times by 10 tests: end of block
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
2950
2044 }
executed 9982 times by 12 tests: end of block
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
9982
2045 sqlite3_mutex_leave(db->mutex);-
2046 return
executed 9982 times by 12 tests: return z;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
z;
executed 9982 times by 12 tests: return z;
Executed by:
  • Self test (30)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (55)
  • Self test (59)
  • Self test (61)
9982
2047}-
2048-
2049-
2050-
2051-
2052-
2053-
2054const void *sqlite3_errmsg16(sqlite3 *db){-
2055 static const u16 outOfMem[] = {-
2056 'o', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0-
2057 };-
2058 static const u16 misuse[] = {-
2059 'b', 'a', 'd', ' ', 'p', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', ' ',-
2060 'o', 'r', ' ', 'o', 't', 'h', 'e', 'r', ' ', 'A', 'P', 'I', ' ',-
2061 'm', 'i', 's', 'u', 's', 'e', 0-
2062 };-
2063-
2064 const void *z;-
2065 if( !db
!dbDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
){
0-9
2066 return
never executed: return (void *)outOfMem;
(void *)outOfMem;
never executed: return (void *)outOfMem;
0
2067 }-
2068 if( !sqlite3SafetyCheckSickOrOk(db)
!sqlite3Safety...ckSickOrOk(db)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
){
2-7
2069 return
executed 2 times by 1 test: return (void *)misuse;
Executed by:
  • Self test (438)
(void *)misuse;
executed 2 times by 1 test: return (void *)misuse;
Executed by:
  • Self test (438)
2
2070 }-
2071 sqlite3_mutex_enter(db->mutex);-
2072 if( db->mallocFailed
db->mallocFailedDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
){
0-7
2073 z = (void *)outOfMem;-
2074 }
never executed: end of block
else{
0
2075 z = sqlite3_value_text16(db->pErr);-
2076 if( z==0
z==0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-7
2077 sqlite3ErrorWithMsg(db, db->errCode, sqlite3ErrStr(db->errCode));-
2078 z = sqlite3_value_text16(db->pErr);-
2079 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test (438)
7
2080-
2081-
2082-
2083-
2084-
2085 sqlite3OomClear(db);-
2086 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test (438)
7
2087 sqlite3_mutex_leave(db->mutex);-
2088 return
executed 7 times by 1 test: return z;
Executed by:
  • Self test (438)
z;
executed 7 times by 1 test: return z;
Executed by:
  • Self test (438)
7
2089}-
2090-
2091-
2092-
2093-
2094-
2095-
2096int sqlite3_errcode(sqlite3 *db){-
2097 if( db
dbDescription
TRUEevaluated 170156 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
&& !sqlite3SafetyCheckSickOrOk(db)
!sqlite3Safety...ckSickOrOk(db)Description
TRUEnever evaluated
FALSEevaluated 170156 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-170156
2098 return
never executed: return sqlite3MisuseError(2464);
sqlite3MisuseError(2464);
never executed: return sqlite3MisuseError(2464);
0
2099 }-
2100 if( !db
!dbDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 170156 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| db->mallocFailed
db->mallocFailedDescription
TRUEevaluated 328 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 169828 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
8-170156
2101 return
executed 336 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 336 times by 1 test: return 7;
Executed by:
  • Self test (438)
336
2102 }-
2103 return
executed 169828 times by 438 tests: return db->errCode & db->errMask;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
db->errCode & db->errMask;
executed 169828 times by 438 tests: return db->errCode & db->errMask;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
169828
2104}-
2105int sqlite3_extended_errcode(sqlite3 *db){-
2106 if( db
dbDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& !sqlite3SafetyCheckSickOrOk(db)
!sqlite3Safety...ckSickOrOk(db)Description
TRUEnever evaluated
FALSEevaluated 88 times by 1 test
Evaluated by:
  • Self test (438)
){
0-88
2107 return
never executed: return sqlite3MisuseError(2473);
sqlite3MisuseError(2473);
never executed: return sqlite3MisuseError(2473);
0
2108 }-
2109 if( !db
!dbDescription
TRUEnever evaluated
FALSEevaluated 88 times by 1 test
Evaluated by:
  • Self test (438)
|| db->mallocFailed
db->mallocFailedDescription
TRUEnever evaluated
FALSEevaluated 88 times by 1 test
Evaluated by:
  • Self test (438)
){
0-88
2110 return
never executed: return 7;
7;
never executed: return 7;
0
2111 }-
2112 return
executed 88 times by 1 test: return db->errCode;
Executed by:
  • Self test (438)
db->errCode;
executed 88 times by 1 test: return db->errCode;
Executed by:
  • Self test (438)
88
2113}-
2114int sqlite3_system_errno(sqlite3 *db){-
2115 return
executed 2 times by 1 test: return db ? db->iSysErrno : 0;
Executed by:
  • Self test (438)
db
dbDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
? db->iSysErrno : 0;
executed 2 times by 1 test: return db ? db->iSysErrno : 0;
Executed by:
  • Self test (438)
0-2
2116}-
2117-
2118-
2119-
2120-
2121-
2122-
2123const char *sqlite3_errstr(int rc){-
2124 return
executed 458 times by 1 test: return sqlite3ErrStr(rc);
Executed by:
  • Self test (438)
sqlite3ErrStr(rc);
executed 458 times by 1 test: return sqlite3ErrStr(rc);
Executed by:
  • Self test (438)
458
2125}-
2126-
2127-
2128-
2129-
2130-
2131static int createCollation(-
2132 sqlite3* db,-
2133 const char *zName,-
2134 u8 enc,-
2135 void* pCtx,-
2136 int(*xCompare)(void*,int,const void*,int,const void*),-
2137 void(*xDel)(void*)-
2138){-
2139 CollSeq *pColl;-
2140 int enc2;-
2141-
2142 -
2143 ((void) (0))-
2144 ;-
2145-
2146-
2147-
2148-
2149-
2150 enc2 = enc;-
2151 ;-
2152 ;-
2153 if( enc2==4
enc2==4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 162751 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| enc2==8
enc2==8Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 162750 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
1-162751
2154 enc2 = 2;-
2155 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
2156 if( enc2<1
enc2<1Description
TRUEnever evaluated
FALSEevaluated 162752 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| enc2>3
enc2>3Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 162749 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-162752
2157 return
executed 3 times by 1 test: return sqlite3MisuseError(2521);
Executed by:
  • Self test (438)
sqlite3MisuseError(2521);
executed 3 times by 1 test: return sqlite3MisuseError(2521);
Executed by:
  • Self test (438)
3
2158 }-
2159-
2160-
2161-
2162-
2163-
2164 pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 0);-
2165 if( pColl
pCollDescription
TRUEevaluated 65088 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 97661 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
&& pColl->xCmp
pColl->xCmpDescription
TRUEevaluated 47 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 65041 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
47-97661
2166 if( db->nVdbeActive
db->nVdbeActiveDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 43 times by 1 test
Evaluated by:
  • Self test (438)
){
4-43
2167 sqlite3ErrorWithMsg(db, 5,-
2168 "unable to delete/modify collation sequence due to active statements");-
2169 return
executed 4 times by 1 test: return 5;
Executed by:
  • Self test (438)
5;
executed 4 times by 1 test: return 5;
Executed by:
  • Self test (438)
4
2170 }-
2171 sqlite3ExpirePreparedStatements(db, 0);-
2172-
2173-
2174-
2175-
2176-
2177-
2178-
2179 if( (
(pColl->enc & ~8)==enc2Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
pColl->enc & ~8)==enc2
(pColl->enc & ~8)==enc2Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-41
2180 CollSeq *aColl = sqlite3HashFind(&db->aCollSeq, zName);-
2181 int j;-
2182 for(j=0; j<3
j<3Description
TRUEevaluated 123 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 41 times by 1 test
Evaluated by:
  • Self test (438)
; j++){
41-123
2183 CollSeq *p = &aColl[j];-
2184 if( p->enc==pColl->enc
p->enc==pColl->encDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 79 times by 1 test
Evaluated by:
  • Self test (438)
){
44-79
2185 if( p->xDel
p->xDelDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 42 times by 1 test
Evaluated by:
  • Self test (438)
){
2-42
2186 p->xDel(p->pUser);-
2187 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
2188 p->xCmp = 0;-
2189 }
executed 44 times by 1 test: end of block
Executed by:
  • Self test (438)
44
2190 }
executed 123 times by 1 test: end of block
Executed by:
  • Self test (438)
123
2191 }
executed 41 times by 1 test: end of block
Executed by:
  • Self test (438)
41
2192 }
executed 43 times by 1 test: end of block
Executed by:
  • Self test (438)
43
2193-
2194 pColl = sqlite3FindCollSeq(db, (u8)enc2, zName, 1);-
2195 if( pColl==0
pColl==0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 162617 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 128 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 128 times by 1 test: return 7;
Executed by:
  • Self test (438)
128-162617
2196 pColl->xCmp = xCompare;-
2197 pColl->pUser = pCtx;-
2198 pColl->xDel = xDel;-
2199 pColl->enc = (u8)(enc2 | (enc & 8));-
2200 sqlite3Error(db, 0);-
2201 return
executed 162617 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 162617 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
162617
2202}-
2203-
2204-
2205-
2206-
2207-
2208-
2209-
2210static const int aHardLimit[] = {-
2211 1000000000,-
2212 1000000000,-
2213 2000,-
2214 1000,-
2215 500,-
2216 250000000,-
2217 127,-
2218 10,-
2219 50000,-
2220 999,-
2221 1000,-
2222 8,-
2223};-
2224int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){-
2225 int oldLimit;-
2226 -
2227 ((void) (0))-
2228 ;-
2229 -
2230 ((void) (0))-
2231 ;-
2232 -
2233 ((void) (0))-
2234 ;-
2235 -
2236 ((void) (0))-
2237 ;-
2238 -
2239 ((void) (0))-
2240 ;-
2241 -
2242 ((void) (0))-
2243 ;-
2244 -
2245 ((void) (0))-
2246 ;-
2247 -
2248 ((void) (0))-
2249 ;-
2250 -
2251 ((void) (0))-
2252 -
2253 ;-
2254 -
2255 ((void) (0))-
2256 ;-
2257 -
2258 ((void) (0))-
2259 ;-
2260 -
2261 ((void) (0))-
2262 ;-
2263 -
2264 ((void) (0))-
2265 ;-
2266-
2267-
2268 if( limitId<0
limitId<0Description
TRUEnever evaluated
FALSEevaluated 153 times by 1 test
Evaluated by:
  • Self test (438)
|| limitId>=(11 +1)
limitId>=(11 +1)Description
TRUEnever evaluated
FALSEevaluated 153 times by 1 test
Evaluated by:
  • Self test (438)
){
0-153
2269 return
never executed: return -1;
-1;
never executed: return -1;
0
2270 }-
2271 oldLimit = db->aLimit[limitId];-
2272 if( newLimit>=0
newLimit>=0Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 138 times by 1 test
Evaluated by:
  • Self test (438)
){
15-138
2273 if( newLimit>aHardLimit[limitId]
newLimit>aHardLimit[limitId]Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 13 times by 1 test
Evaluated by:
  • Self test (438)
){
2-13
2274 newLimit = aHardLimit[limitId];-
2275 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
2
2276 db->aLimit[limitId] = newLimit;-
2277 }
executed 15 times by 1 test: end of block
Executed by:
  • Self test (438)
15
2278 return
executed 153 times by 1 test: return oldLimit;
Executed by:
  • Self test (438)
oldLimit;
executed 153 times by 1 test: return oldLimit;
Executed by:
  • Self test (438)
153
2279}-
2280int sqlite3ParseUri(-
2281 const char *zDefaultVfs,-
2282 const char *zUri,-
2283 unsigned int *pFlags,-
2284 sqlite3_vfs **ppVfs,-
2285 char **pzFile,-
2286 char **pzErrMsg-
2287){-
2288 int rc = 0;-
2289 unsigned int flags = *pFlags;-
2290 const char *zVfs = zDefaultVfs;-
2291 char *zFile;-
2292 char c;-
2293 int nUri = sqlite3Strlen30(zUri);-
2294-
2295 -
2296 ((void) (0))-
2297 ;-
2298-
2299 if( ((
(flags & 0x00000040)Description
TRUEevaluated 9054 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 25056 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
flags & 0x00000040)
(flags & 0x00000040)Description
TRUEevaluated 9054 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 25056 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
9054-25056
2300 || sqlite3Config.bOpenUri
sqlite3Config.bOpenUriDescription
TRUEevaluated 22674 times by 5 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
FALSEevaluated 2382 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
)
2382-22674
2301 && nUri>=5
nUri>=5Description
TRUEevaluated 30846 times by 6 tests
Evaluated by:
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (438)
  • Self test (61)
FALSEevaluated 882 times by 1 test
Evaluated by:
  • Self test (438)
&& memcmp(zUri, "file:", 5)==0
memcmp(zUri, "file:", 5)==0Description
TRUEevaluated 220 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 30626 times by 4 tests
Evaluated by:
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (438)
220-30846
2302 ){-
2303 char *zOpt;-
2304 int eState;-
2305 int iIn;-
2306 int iOut = 0;-
2307 u64 nByte = nUri+2;-
2308-
2309-
2310-
2311 flags |= 0x00000040;-
2312-
2313 for(iIn=0; iIn<nUri
iIn<nUriDescription
TRUEevaluated 15325 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 220 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
; iIn++) nByte += (zUri[iIn]=='&');
executed 15325 times by 4 tests: nByte += (zUri[iIn]=='&');
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
220-15325
2314 zFile = sqlite3_malloc64(nByte);-
2315 if( !zFile
!zFileDescription
TRUEnever evaluated
FALSEevaluated 220 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) return
never executed: return 7;
7;
never executed: return 7;
0-220
2316-
2317 iIn = 5;-
2318 if( zUri[5]=='/'
zUri[5]=='/'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 195 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& zUri[6]=='/'
zUri[6]=='/'Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-195
2319 iIn = 7;-
2320 while( zUri[iIn]
zUri[iIn]Description
TRUEevaluated 109 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& zUri[iIn]!='/'
zUri[iIn]!='/'Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
) iIn++;
executed 92 times by 1 test: iIn++;
Executed by:
  • Self test (438)
0-109
2321 if( iIn!=7
iIn!=7Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
&& (iIn!=16
iIn!=16Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
|| memcmp("localhost", &zUri[7], 9)
memcmp("localh..., &zUri[7], 9)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
) ){
1-12
2322 *pzErrMsg = sqlite3_mprintf("invalid uri authority: %.*s",-
2323 iIn-7, &zUri[7]);-
2324 rc = 1;-
2325 goto
executed 5 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
parse_uri_out;
executed 5 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
5
2326 }-
2327 }
executed 12 times by 1 test: end of block
Executed by:
  • Self test (438)
12
2328 eState = 0;-
2329 while( (
(c = zUri[iIn])!=0Description
TRUEevaluated 13439 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 206 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
c = zUri[iIn])!=0
(c = zUri[iIn])!=0Description
TRUEevaluated 13439 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 206 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& c!='#'
c!='#'Description
TRUEevaluated 13430 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
){
9-13439
2330 iIn++;-
2331 if( c=='%'
c=='%'Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 13370 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
60-13370
2332 && (
(sqlite3CtypeM...i[iIn])]&0x08)Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
sqlite3CtypeMap[(unsigned char)(zUri[iIn])]&0x08)
(sqlite3CtypeM...i[iIn])]&0x08)Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-60
2333 && (
(sqlite3CtypeM...iIn+1])]&0x08)Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
sqlite3CtypeMap[(unsigned char)(zUri[iIn+1])]&0x08)
(sqlite3CtypeM...iIn+1])]&0x08)Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-60
2334 ){-
2335 int octet = (sqlite3HexToInt(zUri[iIn++]) << 4);-
2336 octet += sqlite3HexToInt(zUri[iIn++]);-
2337-
2338 -
2339 ((void) (0))-
2340 ;-
2341 if( octet==0
octet==0Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 38 times by 1 test
Evaluated by:
  • Self test (438)
){
22-38
2342-
2343-
2344-
2345-
2346-
2347 while( (
(c = zUri[iIn])!=0Description
TRUEevaluated 98 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
c = zUri[iIn])!=0
(c = zUri[iIn])!=0Description
TRUEevaluated 98 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
&& c!='#'
c!='#'Description
TRUEevaluated 98 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-98
2348 && (eState!=0
eState!=0Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 56 times by 1 test
Evaluated by:
  • Self test (438)
|| c!='?'
c!='?'Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
)
6-56
2349 && (eState!=1
eState!=1Description
TRUEevaluated 66 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 26 times by 1 test
Evaluated by:
  • Self test (438)
|| (c!='='
c!='='Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
&& c!='&'
c!='&'Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
))
0-66
2350 && (eState!=2
eState!=2Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
|| c!='&'
c!='&'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
)
2-70
2351 ){-
2352 iIn++;-
2353 }
executed 84 times by 1 test: end of block
Executed by:
  • Self test (438)
84
2354 continue;
executed 22 times by 1 test: continue;
Executed by:
  • Self test (438)
22
2355-
2356-
2357-
2358-
2359-
2360-
2361 }-
2362 c = octet;-
2363 }
executed 38 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( eState==1
eState==1Description
TRUEevaluated 1243 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 12127 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& (c=='&'
c=='&'Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1209 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
|| c=='='
c=='='Description
TRUEevaluated 195 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 1014 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) ){
34-12127
2364 if( zFile[iOut-1]==0
zFile[iOut-1]==0Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 195 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
){
34-195
2365-
2366 while( zUri[iIn]
zUri[iIn]Description
TRUEevaluated 56 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& zUri[iIn]!='#'
zUri[iIn]!='#'Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& zUri[iIn-1]!='&'
zUri[iIn-1]!='&'Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test (438)
) iIn++;
executed 24 times by 1 test: iIn++;
Executed by:
  • Self test (438)
2-56
2367 continue;
executed 34 times by 1 test: continue;
Executed by:
  • Self test (438)
34
2368 }-
2369 if( c=='&'
c=='&'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 189 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
){
6-189
2370 zFile[iOut++] = '\0';-
2371 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
6
2372 eState = 2;-
2373 }
executed 189 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
189
2374 c = 0;-
2375 }
executed 195 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
else if( (eState==0
eState==0Description
TRUEevaluated 11459 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 1682 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& c=='?'
c=='?'Description
TRUEevaluated 169 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 11290 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) || (eState==2
eState==2Description
TRUEevaluated 668 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 12304 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& c=='&'
c=='&'Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 639 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) ){
29-12304
2376 c = 0;-
2377 eState = 1;-
2378 }
executed 198 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
198
2379 zFile[iOut++] = c;-
2380 }
executed 13374 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
13374
2381 if( eState==1
eState==1Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 206 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) zFile[iOut++] = '\0';
executed 9 times by 1 test: zFile[iOut++] = '\0';
Executed by:
  • Self test (438)
9-206
2382 zFile[iOut++] = '\0';-
2383 zFile[iOut++] = '\0';-
2384-
2385-
2386-
2387-
2388-
2389 zOpt = &zFile[sqlite3Strlen30(zFile)+1];-
2390 while( zOpt[0]
zOpt[0]Description
TRUEevaluated 198 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 202 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
){
198-202
2391 int nOpt = sqlite3Strlen30(zOpt);-
2392 char *zVal = &zOpt[nOpt+1];-
2393 int nVal = sqlite3Strlen30(zVal);-
2394-
2395 if( nOpt==3
nOpt==3Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 174 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& memcmp("vfs", zOpt, 3)==0
memcmp("vfs", zOpt, 3)==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
){
7-174
2396 zVfs = zVal;-
2397 }
executed 17 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
17
2398 struct OpenMode {-
2399 const char *z;-
2400 int mode;-
2401 } *aMode = 0;-
2402 char *zModeType = 0;-
2403 int mask = 0;-
2404 int limit = 0;-
2405-
2406 if( nOpt==5
nOpt==5Description
TRUEevaluated 59 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 122 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
&& memcmp("cache", zOpt, 5)==0
memcmp("cache", zOpt, 5)==0Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test (438)
){
25-122
2407 static struct OpenMode aCacheMode[] = {-
2408 { "shared", 0x00020000 },-
2409 { "private", 0x00040000 },-
2410 { 0, 0 }-
2411 };-
2412-
2413 mask = 0x00020000|0x00040000;-
2414 aMode = aCacheMode;-
2415 limit = mask;-
2416 zModeType = "cache";-
2417 }
executed 34 times by 1 test: end of block
Executed by:
  • Self test (438)
34
2418 if( nOpt==4
nOpt==4Description
TRUEevaluated 71 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
FALSEevaluated 110 times by 3 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
&& memcmp("mode", zOpt, 4)==0
memcmp("mode", zOpt, 4)==0Description
TRUEevaluated 55 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (61)
){
16-110
2419 static struct OpenMode aOpenMode[] = {-
2420 { "ro", 0x00000001 },-
2421 { "rw", 0x00000002 },-
2422 { "rwc", 0x00000002 | 0x00000004 },-
2423 { "memory", 0x00000080 },-
2424 { 0, 0 }-
2425 };-
2426-
2427 mask = 0x00000001 | 0x00000002-
2428 | 0x00000004 | 0x00000080;-
2429 aMode = aOpenMode;-
2430 limit = mask & flags;-
2431 zModeType = "access";-
2432 }
executed 55 times by 1 test: end of block
Executed by:
  • Self test (438)
55
2433-
2434 if( aMode
aModeDescription
TRUEevaluated 89 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 92 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
){
89-92
2435 int i;-
2436 int mode = 0;-
2437 for(i=0; aMode[i].z
aMode[i].zDescription
TRUEevaluated 201 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
8-201
2438 const char *z = aMode[i].z;-
2439 if( nVal==sqlite3Strlen30(z)
nVal==sqlite3Strlen30(z)Description
TRUEevaluated 101 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 100 times by 1 test
Evaluated by:
  • Self test (438)
&& 0==memcmp(zVal, z, nVal)
0==memcmp(zVal, z, nVal)Description
TRUEevaluated 81 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
){
20-101
2440 mode = aMode[i].mode;-
2441 break;
executed 81 times by 1 test: break;
Executed by:
  • Self test (438)
81
2442 }-
2443 }
executed 120 times by 1 test: end of block
Executed by:
  • Self test (438)
120
2444 if( mode==0
mode==0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 81 times by 1 test
Evaluated by:
  • Self test (438)
){
8-81
2445 *pzErrMsg = sqlite3_mprintf("no such %s mode: %s", zModeType, zVal);-
2446 rc = 1;-
2447 goto
executed 8 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
parse_uri_out;
executed 8 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
8
2448 }-
2449 if( (
(mode & ~0x00000080)>limitDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test (438)
mode & ~0x00000080)>limit
(mode & ~0x00000080)>limitDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test (438)
){
5-76
2450 *pzErrMsg = sqlite3_mprintf("%s mode not allowed: %s",-
2451 zModeType, zVal);-
2452 rc = 3;-
2453 goto
executed 5 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
parse_uri_out;
executed 5 times by 1 test: goto parse_uri_out;
Executed by:
  • Self test (438)
5
2454 }-
2455 flags = (flags & ~mask) | mode;-
2456 }
executed 76 times by 1 test: end of block
Executed by:
  • Self test (438)
76
2457 }
executed 168 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
168
2458-
2459 zOpt = &zVal[nVal+1];-
2460 }
executed 185 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
185
2461-
2462 }
executed 202 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
else{
202
2463 zFile = sqlite3_malloc64(nUri+2);-
2464 if( !zFile
!zFileDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 33882 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 8 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 8 times by 1 test: return 7;
Executed by:
  • Self test (438)
8-33882
2465 if( nUri
nUriDescription
TRUEevaluated 32987 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 895 times by 2 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
){
895-32987
2466 memcpy(zFile, zUri, nUri);-
2467 }
executed 32987 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
32987
2468 zFile[nUri] = '\0';-
2469 zFile[nUri+1] = '\0';-
2470 flags &= ~0x00000040;-
2471 }
executed 33882 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
33882
2472-
2473 *ppVfs = sqlite3_vfs_find(zVfs);-
2474 if( *
*ppVfs==0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 34079 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
ppVfs==0
*ppVfs==0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 34079 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
5-34079
2475 *pzErrMsg = sqlite3_mprintf("no such vfs: %s", zVfs);-
2476 rc = 1;-
2477 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test (438)
5
2478 parse_uri_out:
code before this statement executed 34084 times by 438 tests: parse_uri_out:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
34084
2479 if( rc!=0
rc!=0Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 34079 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
23-34079
2480 sqlite3_free(zFile);-
2481 zFile = 0;-
2482 }
executed 23 times by 1 test: end of block
Executed by:
  • Self test (438)
23
2483 *pFlags = flags;-
2484 *pzFile = zFile;-
2485 return
executed 34102 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
rc;
executed 34102 times by 438 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
34102
2486}-
2487-
2488-
2489-
2490-
2491-
2492-
2493-
2494static int openDatabase(-
2495 const char *zFilename,-
2496 sqlite3 **ppDb,-
2497 unsigned int flags,-
2498 const char *zVfs-
2499){-
2500 sqlite3 *db;-
2501 int rc;-
2502 int isThreadsafe;-
2503 char *zOpen = 0;-
2504 char *zErrMsg = 0;-
2505-
2506-
2507-
2508-
2509 *ppDb = 0;-
2510-
2511 rc = sqlite3_initialize();-
2512 if( rc
rcDescription
TRUEnever evaluated
FALSEevaluated 32533 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
never executed: return rc;
rc;
never executed: return rc;
0-32533
2513-
2514-
2515 if( sqlite3Config.bCoreMutex==0
sqlite3Config.bCoreMutex==0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32524 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
9-32524
2516 isThreadsafe = 0;-
2517 }
executed 9 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( flags & 0x00008000
flags & 0x00008000Description
TRUEevaluated 23255 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 9269 times by 1 test
Evaluated by:
  • Self test (438)
){
9-23255
2518 isThreadsafe = 0;-
2519 }
executed 23255 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
else if( flags & 0x00010000
flags & 0x00010000Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 9265 times by 1 test
Evaluated by:
  • Self test (438)
){
4-23255
2520 isThreadsafe = 1;-
2521 }
executed 4 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
4
2522 isThreadsafe = sqlite3Config.bFullMutex;-
2523 }
executed 9265 times by 1 test: end of block
Executed by:
  • Self test (438)
9265
2524-
2525 if( flags & 0x00040000
flags & 0x00040000Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32527 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
6-32527
2526 flags &= ~0x00020000;-
2527 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( sqlite3Config.sharedCacheEnabled
sqlite3Config....edCacheEnabledDescription
TRUEevaluated 338 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32189 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
6-32189
2528 flags |= 0x00020000;-
2529 }
executed 338 times by 1 test: end of block
Executed by:
  • Self test (438)
338
2530 flags &= ~( 0x00000008 |-
2531 0x00000010 |-
2532 0x00000100 |-
2533 0x00000200 |-
2534 0x00000400 |-
2535 0x00000800 |-
2536 0x00001000 |-
2537 0x00002000 |-
2538 0x00004000 |-
2539 0x00008000 |-
2540 0x00010000 |-
2541 0x00080000-
2542 );-
2543-
2544-
2545 db = sqlite3MallocZero( sizeof(sqlite3) );-
2546 if( db==0
db==0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32525 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) goto
executed 8 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 8 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
8-32525
2547 if( isThreadsafe
isThreadsafeDescription
TRUEevaluated 206 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32319 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
206-32319
2548-
2549-
2550-
2551 ){-
2552 db->mutex = sqlite3MutexAlloc(1);-
2553 if( db->mutex==0
db->mutex==0Description
TRUEnever evaluated
FALSEevaluated 206 times by 1 test
Evaluated by:
  • Self test (438)
){
0-206
2554 sqlite3_free(db);-
2555 db = 0;-
2556 goto
never executed: goto opendb_out;
opendb_out;
never executed: goto opendb_out;
0
2557 }-
2558 if( isThreadsafe==0
isThreadsafe==0Description
TRUEnever evaluated
FALSEevaluated 206 times by 1 test
Evaluated by:
  • Self test (438)
){
0-206
2559 ;-
2560 }
never executed: end of block
0
2561 }
executed 206 times by 1 test: end of block
Executed by:
  • Self test (438)
206
2562 sqlite3_mutex_enter(db->mutex);-
2563 db->errMask = 0xff;-
2564 db->nDb = 2;-
2565 db->magic = 0xf03b7906;-
2566 db->aDb = db->aDbStatic;-
2567 db->lookaside.bDisable = 1;-
2568-
2569 -
2570 ((void) (0))-
2571 ;-
2572 memcpy(db->aLimit, aHardLimit, sizeof(db->aLimit));-
2573 db->aLimit[11] = 0;-
2574 db->autoCommit = 1;-
2575 db->nextAutovac = -1;-
2576 db->szMmap = sqlite3Config.szMmap;-
2577 db->nextPagesize = 0;-
2578 db->nMaxSorterMmap = 0x7FFFFFFF;-
2579 db->flags |= 0x00000040 | 0x00040000 | 0x00000020-
2580-
2581 | 0x00008000-
2582 ;-
2583 sqlite3HashInit(&db->aCollSeq);-
2584-
2585 sqlite3HashInit(&db->aModule);-
2586 createCollation(db, sqlite3StrBINARY, 1, 0, binCollFunc, 0);-
2587 createCollation(db, sqlite3StrBINARY, 3, 0, binCollFunc, 0);-
2588 createCollation(db, sqlite3StrBINARY, 2, 0, binCollFunc, 0);-
2589 createCollation(db, "NOCASE", 1, 0, nocaseCollatingFunc, 0);-
2590 createCollation(db, "RTRIM", 1, (void*)1, binCollFunc, 0);-
2591 if( db->mallocFailed
db->mallocFailedDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32477 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
48-32477
2592 goto
executed 48 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 48 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
48
2593 }-
2594-
2595-
2596-
2597 db->pDfltColl = sqlite3FindCollSeq(db, 1, sqlite3StrBINARY, 0);-
2598 -
2599 ((void) (0))-
2600 ;-
2601 db->openFlags = flags;-
2602 -
2603 ((void) (0))-
2604 ;-
2605 -
2606 ((void) (0))-
2607 ;-
2608 -
2609 ((void) (0))-
2610 ;-
2611 ;-
2612 ;-
2613 ;-
2614 if( ((
((1<<(flags&7)) & 0x46)==0Description
TRUEnever evaluated
FALSEevaluated 32477 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
1<<(flags&7)) & 0x46)==0
((1<<(flags&7)) & 0x46)==0Description
TRUEnever evaluated
FALSEevaluated 32477 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
0-32477
2615 rc = sqlite3MisuseError(3112);-
2616 }
never executed: end of block
else{
0
2617 rc = sqlite3ParseUri(zVfs, zFilename, &flags, &db->pVfs, &zOpen, &zErrMsg);-
2618 }
executed 32477 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
32477
2619 if( rc!=0
rc!=0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32446 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
31-32446
2620 if( rc==7
rc==7Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
) sqlite3OomFault(db);
executed 8 times by 1 test: sqlite3OomFault(db);
Executed by:
  • Self test (438)
8-23
2621 sqlite3ErrorWithMsg(db, rc, zErrMsg ? "%s" : 0, zErrMsg);-
2622 sqlite3_free(zErrMsg);-
2623 goto
executed 31 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 31 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
31
2624 }-
2625-
2626-
2627 rc = sqlite3BtreeOpen(db->pVfs, zOpen, db, &db->aDb[0].pBt, 0,-
2628 flags | 0x00000100);-
2629 if( rc!=0
rc!=0Description
TRUEevaluated 655 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31791 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
655-31791
2630 if( rc==(10 | (12<<8))
rc==(10 | (12<<8))Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 627 times by 1 test
Evaluated by:
  • Self test (438)
){
28-627
2631 rc = 7;-
2632 }
executed 28 times by 1 test: end of block
Executed by:
  • Self test (438)
28
2633 sqlite3Error(db, rc);-
2634 goto
executed 655 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 655 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
655
2635 }-
2636 sqlite3BtreeEnter(db->aDb[0].pBt);-
2637 db->aDb[0].pSchema = sqlite3SchemaGet(db, db->aDb[0].pBt);-
2638 if( !db->mallocFailed
!db->mallocFailedDescription
TRUEevaluated 31783 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
) ((
executed 31783 times by 438 tests: ((db)->enc) = ((db)->aDb[0].pSchema->enc);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
db)->enc) = ((db)->aDb[0].pSchema->enc);
executed 31783 times by 438 tests: ((db)->enc) = ((db)->aDb[0].pSchema->enc);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
8-31783
2639 sqlite3BtreeLeave(db->aDb[0].pBt);-
2640 db->aDb[1].pSchema = sqlite3SchemaGet(db, 0);-
2641-
2642-
2643-
2644-
2645 db->aDb[0].zDbSName = "main";-
2646 db->aDb[0].safety_level = 2 +1;-
2647 db->aDb[1].zDbSName = "temp";-
2648 db->aDb[1].safety_level = 0x01;-
2649-
2650 db->magic = 0xa029a697;-
2651 if( db->mallocFailed
db->mallocFailedDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31775 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
16-31775
2652 goto
executed 16 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 16 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
16
2653 }-
2654-
2655-
2656-
2657-
2658-
2659 sqlite3Error(db, 0);-
2660 sqlite3RegisterPerConnectionBuiltinFunctions(db);-
2661 rc = sqlite3_errcode(db);-
2662 if( rc==0
rc==0Description
TRUEevaluated 31743 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
){
32-31743
2663 sqlite3AutoLoadExtensions(db);-
2664 rc = sqlite3_errcode(db);-
2665 if( rc!=0
rc!=0Description
TRUEevaluated 191 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31552 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
191-31552
2666 goto
executed 191 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
opendb_out;
executed 191 times by 1 test: goto opendb_out;
Executed by:
  • Self test (438)
191
2667 }-
2668 }
executed 31552 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31552
2669 if( !db->mallocFailed
!db->mallocFailedDescription
TRUEevaluated 31552 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
&& rc==0
rc==0Description
TRUEevaluated 31552 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEnever evaluated
){
0-31552
2670 rc = sqlite3DbpageRegister(db);-
2671 }
executed 31552 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31552
2672 if( !db->mallocFailed
!db->mallocFailedDescription
TRUEevaluated 31552 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test (438)
&& rc==0
rc==0Description
TRUEevaluated 31536 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
){
16-31552
2673 rc = sqlite3StmtVtabInit(db);-
2674 }
executed 31536 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31536
2675 if( rc
rcDescription
TRUEevaluated 64 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31520 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) sqlite3Error(db, rc);
executed 64 times by 1 test: sqlite3Error(db, rc);
Executed by:
  • Self test (438)
64-31520
2676-
2677-
2678 setupLookaside(db, 0, sqlite3Config.szLookaside,-
2679 sqlite3Config.nLookaside);-
2680-
2681 sqlite3_wal_autocheckpoint(db, 1000);-
2682-
2683opendb_out:
code before this statement executed 31584 times by 438 tests: opendb_out:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
31584
2684 if( db
dbDescription
TRUEevaluated 32525 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-32525
2685 -
2686 ((void) (0))-
2687 -
2688 ;-
2689 sqlite3_mutex_leave(db->mutex);-
2690 }
executed 32525 times by 438 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
32525
2691 rc = sqlite3_errcode(db);-
2692 -
2693 ((void) (0))-
2694 ;-
2695 if( rc==7
rc==7Description
TRUEevaluated 458 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 32075 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
458-32075
2696 sqlite3_close(db);-
2697 db = 0;-
2698 }
executed 458 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( rc!=0
rc!=0Description
TRUEevaluated 555 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 31520 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
458-31520
2699 db->magic = 0x4b771290;-
2700 }
executed 555 times by 1 test: end of block
Executed by:
  • Self test (438)
555
2701 *ppDb = db;-
2702 sqlite3_free(zOpen);-
2703 return
executed 32533 times by 438 tests: return rc & 0xff;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
rc & 0xff;
executed 32533 times by 438 tests: return rc & 0xff;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
32533
2704}-
2705-
2706-
2707-
2708-
2709int sqlite3_open(-
2710 const char *zFilename,-
2711 sqlite3 **ppDb-
2712){-
2713 return
executed 155 times by 1 test: return openDatabase(zFilename, ppDb, 0x00000002 | 0x00000004, 0);
Executed by:
  • Self test (438)
openDatabase(zFilename, ppDb,
executed 155 times by 1 test: return openDatabase(zFilename, ppDb, 0x00000002 | 0x00000004, 0);
Executed by:
  • Self test (438)
155
2714 0x00000002 | 0x00000004, 0);
executed 155 times by 1 test: return openDatabase(zFilename, ppDb, 0x00000002 | 0x00000004, 0);
Executed by:
  • Self test (438)
155
2715}-
2716int sqlite3_open_v2(-
2717 const char *filename,-
2718 sqlite3 **ppDb,-
2719 int flags,-
2720 const char *zVfs-
2721){-
2722 return
executed 32358 times by 438 tests: return openDatabase(filename, ppDb, (unsigned int)flags, zVfs);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
openDatabase(filename, ppDb, (unsigned int)flags, zVfs);
executed 32358 times by 438 tests: return openDatabase(filename, ppDb, (unsigned int)flags, zVfs);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
32358
2723}-
2724-
2725-
2726-
2727-
2728-
2729int sqlite3_open16(-
2730 const void *zFilename,-
2731 sqlite3 **ppDb-
2732){-
2733 char const *zFilename8;-
2734 sqlite3_value *pVal;-
2735 int rc;-
2736-
2737-
2738-
2739-
2740 *ppDb = 0;-
2741-
2742 rc = sqlite3_initialize();-
2743 if( rc
rcDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
) return
never executed: return rc;
rc;
never executed: return rc;
0-20
2744-
2745 if( zFilename==0
zFilename==0Description
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
) zFilename = "\000\000";
never executed: zFilename = "\000\000";
0-20
2746 pVal = sqlite3ValueNew(0);-
2747 sqlite3ValueSetStr(pVal, -1, zFilename, 2, ((sqlite3_destructor_type)0));-
2748 zFilename8 = sqlite3ValueText(pVal, 1);-
2749 if( zFilename8
zFilename8Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-20
2750 rc = openDatabase(zFilename8, ppDb,-
2751 0x00000002 | 0x00000004, 0);-
2752 -
2753 ((void) (0))-
2754 ;-
2755 if( rc==0
rc==0Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& !(((*ppDb)->aDb[0].pSchema->schemaFlags&(0x0001))==(0x0001))
!(((*ppDb)->aD...1))==(0x0001))Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-18
2756 ((*ppDb)->aDb[0].pSchema->enc) = ((*ppDb)->enc) = 2;-
2757 }
executed 16 times by 1 test: end of block
Executed by:
  • Self test (438)
16
2758 }
executed 20 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
20
2759 rc = 7;-
2760 }
never executed: end of block
0
2761 sqlite3ValueFree(pVal);-
2762-
2763 return
executed 20 times by 1 test: return rc & 0xff;
Executed by:
  • Self test (438)
rc & 0xff;
executed 20 times by 1 test: return rc & 0xff;
Executed by:
  • Self test (438)
20
2764}-
2765-
2766-
2767-
2768-
2769-
2770int sqlite3_create_collation(-
2771 sqlite3* db,-
2772 const char *zName,-
2773 int enc,-
2774 void* pCtx,-
2775 int(*xCompare)(void*,int,const void*,int,const void*)-
2776){-
2777 return
executed 106 times by 1 test: return sqlite3_create_collation_v2(db, zName, enc, pCtx, xCompare, 0);
Executed by:
  • Self test (438)
sqlite3_create_collation_v2(db, zName, enc, pCtx, xCompare, 0);
executed 106 times by 1 test: return sqlite3_create_collation_v2(db, zName, enc, pCtx, xCompare, 0);
Executed by:
  • Self test (438)
106
2778}-
2779-
2780-
2781-
2782-
2783int sqlite3_create_collation_v2(-
2784 sqlite3* db,-
2785 const char *zName,-
2786 int enc,-
2787 void* pCtx,-
2788 int(*xCompare)(void*,int,const void*,int,const void*),-
2789 void(*xDel)(void*)-
2790){-
2791 int rc;-
2792-
2793-
2794-
2795-
2796 sqlite3_mutex_enter(db->mutex);-
2797 -
2798 ((void) (0))-
2799 ;-
2800 rc = createCollation(db, zName, (u8)enc, pCtx, xCompare, xDel);-
2801 rc = sqlite3ApiExit(db, rc);-
2802 sqlite3_mutex_leave(db->mutex);-
2803 return
executed 112 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 112 times by 1 test: return rc;
Executed by:
  • Self test (438)
112
2804}-
2805-
2806-
2807-
2808-
2809-
2810int sqlite3_create_collation16(-
2811 sqlite3* db,-
2812 const void *zName,-
2813 int enc,-
2814 void* pCtx,-
2815 int(*xCompare)(void*,int,const void*,int,const void*)-
2816){-
2817 int rc = 0;-
2818 char *zName8;-
2819-
2820-
2821-
2822-
2823 sqlite3_mutex_enter(db->mutex);-
2824 -
2825 ((void) (0))-
2826 ;-
2827 zName8 = sqlite3Utf16to8(db, zName, -1, 2);-
2828 if( zName8
zName8Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-15
2829 rc = createCollation(db, zName8, (u8)enc, pCtx, xCompare, 0);-
2830 sqlite3DbFree(db, zName8);-
2831 }
executed 15 times by 1 test: end of block
Executed by:
  • Self test (438)
15
2832 rc = sqlite3ApiExit(db, rc);-
2833 sqlite3_mutex_leave(db->mutex);-
2834 return
executed 15 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 15 times by 1 test: return rc;
Executed by:
  • Self test (438)
15
2835}-
2836-
2837-
2838-
2839-
2840-
2841-
2842int sqlite3_collation_needed(-
2843 sqlite3 *db,-
2844 void *pCollNeededArg,-
2845 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)-
2846){-
2847-
2848-
2849-
2850 sqlite3_mutex_enter(db->mutex);-
2851 db->xCollNeeded = xCollNeeded;-
2852 db->xCollNeeded16 = 0;-
2853 db->pCollNeededArg = pCollNeededArg;-
2854 sqlite3_mutex_leave(db->mutex);-
2855 return
executed 4 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 4 times by 1 test: return 0;
Executed by:
  • Self test (438)
4
2856}-
2857-
2858-
2859-
2860-
2861-
2862-
2863int sqlite3_collation_needed16(-
2864 sqlite3 *db,-
2865 void *pCollNeededArg,-
2866 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)-
2867){-
2868-
2869-
2870-
2871 sqlite3_mutex_enter(db->mutex);-
2872 db->xCollNeeded = 0;-
2873 db->xCollNeeded16 = xCollNeeded16;-
2874 db->pCollNeededArg = pCollNeededArg;-
2875 sqlite3_mutex_leave(db->mutex);-
2876 return
executed 2 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 2 times by 1 test: return 0;
Executed by:
  • Self test (438)
2
2877}-
2878-
2879-
2880-
2881-
2882-
2883-
2884-
2885int sqlite3_global_recover(void){-
2886 return
never executed: return 0;
0;
never executed: return 0;
0
2887}-
2888int sqlite3_get_autocommit(sqlite3 *db){-
2889-
2890-
2891-
2892-
2893-
2894-
2895 return
executed 247 times by 1 test: return db->autoCommit;
Executed by:
  • Self test (438)
db->autoCommit;
executed 247 times by 1 test: return db->autoCommit;
Executed by:
  • Self test (438)
247
2896}-
2897int sqlite3ReportError(int iErr, int lineno, const char *zType){-
2898 sqlite3_log(iErr, "%s at line %d of [%.10s]",-
2899 zType, lineno, 20+sqlite3_sourceid());-
2900 return
executed 1888 times by 1 test: return iErr;
Executed by:
  • Self test (438)
iErr;
executed 1888 times by 1 test: return iErr;
Executed by:
  • Self test (438)
1888
2901}-
2902int sqlite3CorruptError(int lineno){-
2903 ;-
2904 return
executed 358 times by 1 test: return sqlite3ReportError(11, lineno, "database corruption");
Executed by:
  • Self test (438)
sqlite3ReportError(11, lineno, "database corruption");
executed 358 times by 1 test: return sqlite3ReportError(11, lineno, "database corruption");
Executed by:
  • Self test (438)
358
2905}-
2906int sqlite3MisuseError(int lineno){-
2907 ;-
2908 return
executed 1018 times by 1 test: return sqlite3ReportError(21, lineno, "misuse");
Executed by:
  • Self test (438)
sqlite3ReportError(21, lineno, "misuse");
executed 1018 times by 1 test: return sqlite3ReportError(21, lineno, "misuse");
Executed by:
  • Self test (438)
1018
2909}-
2910int sqlite3CantopenError(int lineno){-
2911 ;-
2912 return
executed 512 times by 1 test: return sqlite3ReportError(14, lineno, "cannot open file");
Executed by:
  • Self test (438)
sqlite3ReportError(14, lineno, "cannot open file");
executed 512 times by 1 test: return sqlite3ReportError(14, lineno, "cannot open file");
Executed by:
  • Self test (438)
512
2913}-
2914void sqlite3_thread_cleanup(void){-
2915}-
2916-
2917-
2918-
2919-
2920-
2921-
2922int sqlite3_table_column_metadata(-
2923 sqlite3 *db,-
2924 const char *zDbName,-
2925 const char *zTableName,-
2926 const char *zColumnName,-
2927 char const **pzDataType,-
2928 char const **pzCollSeq,-
2929 int *pNotNull,-
2930 int *pPrimaryKey,-
2931 int *pAutoinc-
2932){-
2933 int rc;-
2934 char *zErrMsg = 0;-
2935 Table *pTab = 0;-
2936 Column *pCol = 0;-
2937 int iCol = 0;-
2938 char const *zDataType = 0;-
2939 char const *zCollSeq = 0;-
2940 int notnull = 0;-
2941 int primarykey = 0;-
2942 int autoinc = 0;-
2943 sqlite3_mutex_enter(db->mutex);-
2944 sqlite3BtreeEnterAll(db);-
2945 rc = sqlite3Init(db, &zErrMsg);-
2946 if( 0!=rc
0!=rcDescription
TRUEnever evaluated
FALSEevaluated 8756 times by 1 test
Evaluated by:
  • Self test (438)
){
0-8756
2947 goto
never executed: goto error_out;
error_out;
never executed: goto error_out;
0
2948 }-
2949-
2950-
2951 pTab = sqlite3FindTable(db, zTableName, zDbName);-
2952 if( !pTab
!pTabDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8751 times by 1 test
Evaluated by:
  • Self test (438)
|| pTab->pSelect
pTab->pSelectDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8741 times by 1 test
Evaluated by:
  • Self test (438)
){
5-8751
2953 pTab = 0;-
2954 goto
executed 15 times by 1 test: goto error_out;
Executed by:
  • Self test (438)
error_out;
executed 15 times by 1 test: goto error_out;
Executed by:
  • Self test (438)
15
2955 }-
2956-
2957-
2958 if( zColumnName==0
zColumnName==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8740 times by 1 test
Evaluated by:
  • Self test (438)
){
1-8740
2959-
2960 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
else{
1
2961 for(iCol=0; iCol<pTab->nCol
iCol<pTab->nColDescription
TRUEevaluated 17471 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8566 times by 1 test
Evaluated by:
  • Self test (438)
; iCol++){
8566-17471
2962 pCol = &pTab->aCol[iCol];-
2963 if( 0==sqlite3StrICmp(pCol->zName, zColumnName)
0==sqlite3StrI..., zColumnName)Description
TRUEevaluated 174 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17297 times by 1 test
Evaluated by:
  • Self test (438)
){
174-17297
2964 break;
executed 174 times by 1 test: break;
Executed by:
  • Self test (438)
174
2965 }-
2966 }
executed 17297 times by 1 test: end of block
Executed by:
  • Self test (438)
17297
2967 if( iCol==pTab->nCol
iCol==pTab->nColDescription
TRUEevaluated 8566 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 174 times by 1 test
Evaluated by:
  • Self test (438)
){
174-8566
2968 if( (((
(((pTab)->tabF... & 0x0020)==0)Description
TRUEevaluated 8563 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
pTab)->tabFlags & 0x0020)==0)
(((pTab)->tabF... & 0x0020)==0)Description
TRUEevaluated 8563 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
&& sqlite3IsRowid(zColumnName)
sqlite3IsRowid(zColumnName)Description
TRUEevaluated 8561 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-8563
2969 iCol = pTab->iPKey;-
2970 pCol = iCol>=0
iCol>=0Description
TRUEevaluated 8551 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
? &pTab->aCol[iCol] : 0;
10-8551
2971 }
executed 8561 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
8561
2972 pTab = 0;-
2973 goto
executed 5 times by 1 test: goto error_out;
Executed by:
  • Self test (438)
error_out;
executed 5 times by 1 test: goto error_out;
Executed by:
  • Self test (438)
5
2974 }-
2975 }-
2976 }
executed 8735 times by 1 test: end of block
Executed by:
  • Self test (438)
8735
2977 if( pCol
pColDescription
TRUEevaluated 8725 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
){
11-8725
2978 zDataType = sqlite3ColumnType(pCol,0);-
2979 zCollSeq = pCol->zColl;-
2980 notnull = pCol->notNull!=0;-
2981 primarykey = (pCol->colFlags & 0x0001)!=0;-
2982 autoinc = pTab->iPKey==iCol
pTab->iPKey==iColDescription
TRUEevaluated 8555 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 170 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(pTab->tabFlags & 0x0008)!=0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8551 times by 1 test
Evaluated by:
  • Self test (438)
pTab->tabFlags & 0x0008)!=0
(pTab->tabFlags & 0x0008)!=0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8551 times by 1 test
Evaluated by:
  • Self test (438)
;
4-8555
2983 }
executed 8725 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
8725
2984 zDataType = "INTEGER";-
2985 primarykey = 1;-
2986 }
executed 11 times by 1 test: end of block
Executed by:
  • Self test (438)
11
2987 if( !zCollSeq
!zCollSeqDescription
TRUEevaluated 8728 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
){
8-8728
2988 zCollSeq = sqlite3StrBINARY;-
2989 }
executed 8728 times by 1 test: end of block
Executed by:
  • Self test (438)
8728
2990-
2991error_out:
code before this statement executed 8736 times by 1 test: error_out:
Executed by:
  • Self test (438)
8736
2992 sqlite3BtreeLeaveAll(db);-
2993-
2994-
2995-
2996-
2997-
2998 if( pzDataType
pzDataTypeDescription
TRUEevaluated 8614 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 142 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 8614 times by 1 test: *pzDataType = zDataType;
Executed by:
  • Self test (438)
pzDataType = zDataType;
executed 8614 times by 1 test: *pzDataType = zDataType;
Executed by:
  • Self test (438)
142-8614
2999 if( pzCollSeq
pzCollSeqDescription
TRUEevaluated 192 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8564 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 192 times by 1 test: *pzCollSeq = zCollSeq;
Executed by:
  • Self test (438)
pzCollSeq = zCollSeq;
executed 192 times by 1 test: *pzCollSeq = zCollSeq;
Executed by:
  • Self test (438)
192-8564
3000 if( pNotNull
pNotNullDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8706 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 50 times by 1 test: *pNotNull = notnull;
Executed by:
  • Self test (438)
pNotNull = notnull;
executed 50 times by 1 test: *pNotNull = notnull;
Executed by:
  • Self test (438)
50-8706
3001 if( pPrimaryKey
pPrimaryKeyDescription
TRUEevaluated 8614 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 142 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 8614 times by 1 test: *pPrimaryKey = primarykey;
Executed by:
  • Self test (438)
pPrimaryKey = primarykey;
executed 8614 times by 1 test: *pPrimaryKey = primarykey;
Executed by:
  • Self test (438)
142-8614
3002 if( pAutoinc
pAutoincDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8706 times by 1 test
Evaluated by:
  • Self test (438)
) *
executed 50 times by 1 test: *pAutoinc = autoinc;
Executed by:
  • Self test (438)
pAutoinc = autoinc;
executed 50 times by 1 test: *pAutoinc = autoinc;
Executed by:
  • Self test (438)
50-8706
3003-
3004 if( 0==rc
0==rcDescription
TRUEevaluated 8756 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& !pTab
!pTabDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8736 times by 1 test
Evaluated by:
  • Self test (438)
){
0-8756
3005 sqlite3DbFree(db, zErrMsg);-
3006 zErrMsg = sqlite3MPrintf(db, "no such table column: %s.%s", zTableName,-
3007 zColumnName);-
3008 rc = 1;-
3009 }
executed 20 times by 1 test: end of block
Executed by:
  • Self test (438)
20
3010 sqlite3ErrorWithMsg(db, rc, (zErrMsg?"%s":0), zErrMsg);-
3011 sqlite3DbFree(db, zErrMsg);-
3012 rc = sqlite3ApiExit(db, rc);-
3013 sqlite3_mutex_leave(db->mutex);-
3014 return
executed 8756 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 8756 times by 1 test: return rc;
Executed by:
  • Self test (438)
8756
3015}-
3016-
3017-
3018-
3019-
3020int sqlite3_sleep(int ms){-
3021 sqlite3_vfs *pVfs;-
3022 int rc;-
3023 pVfs = sqlite3_vfs_find(0);-
3024 if( pVfs==0
pVfs==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
1-6
3025-
3026-
3027-
3028-
3029 rc = (sqlite3OsSleep(pVfs, 1000*ms)/1000);-
3030 return
executed 6 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 6 times by 1 test: return rc;
Executed by:
  • Self test (438)
6
3031}-
3032-
3033-
3034-
3035-
3036int sqlite3_extended_result_codes(sqlite3 *db, int onoff){-
3037-
3038-
3039-
3040 sqlite3_mutex_enter(db->mutex);-
3041 db->errMask = onoff
onoffDescription
TRUEevaluated 2941 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
? 0xffffffff : 0xff;
0-2941
3042 sqlite3_mutex_leave(db->mutex);-
3043 return
executed 2941 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 2941 times by 1 test: return 0;
Executed by:
  • Self test (438)
2941
3044}-
3045-
3046-
3047-
3048-
3049int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){-
3050 int rc = 1;-
3051 Btree *pBtree;-
3052-
3053-
3054-
3055-
3056 sqlite3_mutex_enter(db->mutex);-
3057 pBtree = sqlite3DbNameToBtree(db, zDbName);-
3058 if( pBtree
pBtreeDescription
TRUEevaluated 36634 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
){
5-36634
3059 Pager *pPager;-
3060 sqlite3_file *fd;-
3061 sqlite3BtreeEnter(pBtree);-
3062 pPager = sqlite3BtreePager(pBtree);-
3063 -
3064 ((void) (0))-
3065 ;-
3066 fd = sqlite3PagerFile(pPager);-
3067 -
3068 ((void) (0))-
3069 ;-
3070 if( op==7
op==7Description
TRUEevaluated 95 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 36539 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
){
95-36539
3071 *(sqlite3_file**)pArg = fd;-
3072 rc = 0;-
3073 }
executed 95 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( op==27
op==27Description
TRUEnever evaluated
FALSEevaluated 36539 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
){
0-36539
3074 *(sqlite3_vfs**)pArg = sqlite3PagerVfs(pPager);-
3075 rc = 0;-
3076 }
never executed: end of block
else if( op==28
op==28Description
TRUEnever evaluated
FALSEevaluated 36539 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
){
0-36539
3077 *(sqlite3_file**)pArg = sqlite3PagerJrnlFile(pPager);-
3078 rc = 0;-
3079 }
never executed: end of block
else if( op==35
op==35Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 36531 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
){
0-36531
3080 *(unsigned int*)pArg = sqlite3PagerDataVersion(pPager);-
3081 rc = 0;-
3082 }
executed 8 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
8
3083 rc = sqlite3OsFileControl(fd, op, pArg);-
3084 }
executed 36531 times by 53 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
36531
3085 sqlite3BtreeLeave(pBtree);-
3086 }
executed 36634 times by 53 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
36634
3087 sqlite3_mutex_leave(db->mutex);-
3088 return
executed 36639 times by 53 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
rc;
executed 36639 times by 53 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
36639
3089}-
3090-
3091-
3092-
3093-
3094int sqlite3_test_control(int op, ...){-
3095 int rc = 0;-
3096-
3097-
3098-
3099 va_list ap;-
3100 -
3101 __builtin_va_start(-
3102 ap-
3103 ,-
3104 op-
3105 )-
3106 ;-
3107 switch( op ){-
3108-
3109-
3110-
3111-
3112 case
executed 5 times by 1 test: case 5:
Executed by:
  • Self test (438)
5:
executed 5 times by 1 test: case 5:
Executed by:
  • Self test (438)
{
5
3113 sqlite3PrngSaveState();-
3114 break;
executed 5 times by 1 test: break;
Executed by:
  • Self test (438)
5
3115 }-
3116-
3117-
3118-
3119-
3120-
3121-
3122 case
executed 927 times by 1 test: case 6:
Executed by:
  • Self test (438)
6:
executed 927 times by 1 test: case 6:
Executed by:
  • Self test (438)
{
927
3123 sqlite3PrngRestoreState();-
3124 break;
executed 927 times by 1 test: break;
Executed by:
  • Self test (438)
927
3125 }-
3126-
3127-
3128-
3129-
3130-
3131-
3132 case
executed 978 times by 1 test: case 7:
Executed by:
  • Self test (438)
7:
executed 978 times by 1 test: case 7:
Executed by:
  • Self test (438)
{
978
3133 sqlite3_randomness(0,0);-
3134 break;
executed 978 times by 1 test: break;
Executed by:
  • Self test (438)
978
3135 }-
3136 case
executed 180 times by 1 test: case 8:
Executed by:
  • Self test (438)
8:
executed 180 times by 1 test: case 8:
Executed by:
  • Self test (438)
{
180
3137 int sz = -
3138 __builtin_va_arg(-
3139 ap-
3140 ,-
3141 int-
3142 )-
3143 ;-
3144 int *aProg = -
3145 __builtin_va_arg(-
3146 ap-
3147 ,-
3148 int*-
3149 )-
3150 ;-
3151 rc = sqlite3BitvecBuiltinTest(sz, aProg);-
3152 break;
executed 180 times by 1 test: break;
Executed by:
  • Self test (438)
180
3153 }-
3154 case
executed 2 times by 1 test: case 9:
Executed by:
  • Self test (438)
9:
executed 2 times by 1 test: case 9:
Executed by:
  • Self test (438)
{
2
3155-
3156-
3157-
3158-
3159 typedef int(*TESTCALLBACKFUNC_t)(int);-
3160 sqlite3Config.xTestCallback = -
3161 __builtin_va_arg(-
3162 ap-
3163 ,-
3164 TESTCALLBACKFUNC_t-
3165 )-
3166 ;-
3167 rc = sqlite3FaultSim(0);-
3168 break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
3169 }-
3170-
3171-
3172-
3173-
3174-
3175-
3176-
3177 case
executed 1 time by 1 test: case 10:
Executed by:
  • Self test (438)
10:
executed 1 time by 1 test: case 10:
Executed by:
  • Self test (438)
{
1
3178 typedef void (*void_function)(void);-
3179 void_function xBenignBegin;-
3180 void_function xBenignEnd;-
3181 xBenignBegin = -
3182 __builtin_va_arg(-
3183 ap-
3184 ,-
3185 void_function-
3186 )-
3187 ;-
3188 xBenignEnd = -
3189 __builtin_va_arg(-
3190 ap-
3191 ,-
3192 void_function-
3193 )-
3194 ;-
3195 sqlite3BenignMallocHooks(xBenignBegin, xBenignEnd);-
3196 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
3197 }-
3198 case
executed 1417 times by 436 tests: case 11:
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11:
executed 1417 times by 436 tests: case 11:
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
{
1417
3199 rc = sqlite3PendingByte;-
3200-
3201 {-
3202 unsigned int newVal = -
3203 __builtin_va_arg(-
3204 ap-
3205 ,-
3206 unsigned int-
3207 )-
3208 ;-
3209 if( newVal
newValDescription
TRUEevaluated 1417 times by 436 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
) sqlite3PendingByte = newVal;
executed 1417 times by 436 tests: sqlite3PendingByte = newVal;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
0-1417
3210 }-
3211-
3212 break;
executed 1417 times by 436 tests: break;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1417
3213 }-
3214 case
never executed: case 12:
12:
never executed: case 12:
{
0
3215 volatile int x = 0;-
3216 -
3217 ((void) (0))-
3218 ;-
3219 rc = x;-
3220 break;
never executed: break;
0
3221 }-
3222 case
never executed: case 13:
13:
never executed: case 13:
{
0
3223 int x = -
3224 __builtin_va_arg(-
3225 ap-
3226 ,-
3227 int-
3228 )-
3229 ;-
3230 rc = x
xDescription
TRUEnever evaluated
FALSEnever evaluated
? (x) : 0;
0
3231 break;
never executed: break;
0
3232 }-
3233 case
never executed: case 22:
22:
never executed: case 22:
{
0
3234 rc = 1234*100 + 1*10 + 0;-
3235 break;
never executed: break;
0
3236 }-
3237-
3238-
3239-
3240-
3241-
3242-
3243 case
never executed: case 14:
14:
never executed: case 14:
{
0
3244 sqlite3 *db = -
3245 __builtin_va_arg(-
3246 ap-
3247 ,-
3248 sqlite3*-
3249 )-
3250 ;-
3251 int x = -
3252 __builtin_va_arg(-
3253 ap-
3254 ,-
3255 int-
3256 )-
3257 ;-
3258 sqlite3_mutex_enter(db->mutex);-
3259 sqlite3BtreeSetPageSize(db->aDb[0].pBt, 0, x, 0);-
3260 sqlite3_mutex_leave(db->mutex);-
3261 break;
never executed: break;
0
3262 }-
3263 case
executed 27 times by 1 test: case 15:
Executed by:
  • Self test (438)
15:
executed 27 times by 1 test: case 15:
Executed by:
  • Self test (438)
{
27
3264 sqlite3 *db = -
3265 __builtin_va_arg(-
3266 ap-
3267 ,-
3268 sqlite3*-
3269 )-
3270 ;-
3271 db->dbOptFlags = (u16)(-
3272 __builtin_va_arg(-
3273 ap-
3274 ,-
3275 int-
3276 ) -
3277 & 0xffff);-
3278 break;
executed 27 times by 1 test: break;
Executed by:
  • Self test (438)
27
3279 }-
3280-
3281-
3282-
3283-
3284-
3285-
3286-
3287 case
executed 2 times by 1 test: case 18:
Executed by:
  • Self test (438)
18:
executed 2 times by 1 test: case 18:
Executed by:
  • Self test (438)
{
2
3288 sqlite3Config.bLocaltimeFault = -
3289 __builtin_va_arg(-
3290 ap-
3291 ,-
3292 int-
3293 )-
3294 ;-
3295 break;
executed 2 times by 1 test: break;
Executed by:
  • Self test (438)
2
3296 }-
3297 case
executed 996 times by 1 test: case 20:
Executed by:
  • Self test (438)
20:
executed 996 times by 1 test: case 20:
Executed by:
  • Self test (438)
{
996
3298 sqlite3Config.neverCorrupt = -
3299 __builtin_va_arg(-
3300 ap-
3301 ,-
3302 int-
3303 )-
3304 ;-
3305 break;
executed 996 times by 1 test: break;
Executed by:
  • Self test (438)
996
3306 }-
3307-
3308-
3309-
3310-
3311-
3312-
3313 case
never executed: case 19:
19:
never executed: case 19:
{
0
3314 sqlite3Config.iOnceResetThreshold = -
3315 __builtin_va_arg(-
3316 ap-
3317 ,-
3318 int-
3319 )-
3320 ;-
3321 break;
never executed: break;
0
3322 }-
3323-
3324-
3325-
3326-
3327-
3328-
3329 case
never executed: case 21:
21:
never executed: case 21:
{
0
3330-
3331-
3332-
3333-
3334-
3335-
3336 break;
never executed: break;
0
3337 }-
3338-
3339-
3340 case
executed 7 times by 1 test: case 24:
Executed by:
  • Self test (438)
24:
executed 7 times by 1 test: case 24:
Executed by:
  • Self test (438)
{
7
3341 sqlite3 *db = -
3342 __builtin_va_arg(-
3343 ap-
3344 ,-
3345 sqlite3*-
3346 )-
3347 ;-
3348 db->nMaxSorterMmap = -
3349 __builtin_va_arg(-
3350 ap-
3351 ,-
3352 int-
3353 )-
3354 ;-
3355 break;
executed 7 times by 1 test: break;
Executed by:
  • Self test (438)
7
3356 }-
3357-
3358-
3359-
3360-
3361-
3362-
3363 case
never executed: case 23:
23:
never executed: case 23:
{
0
3364 if( sqlite3Config.isInit==0
sqlite3Config.isInit==0Description
TRUEnever evaluated
FALSEnever evaluated
) rc = 1;
never executed: rc = 1;
0
3365 break;
never executed: break;
0
3366 }-
3367 case
executed 4 times by 1 test: case 25:
Executed by:
  • Self test (438)
25:
executed 4 times by 1 test: case 25:
Executed by:
  • Self test (438)
{
4
3368 sqlite3 *db = -
3369 __builtin_va_arg(-
3370 ap-
3371 ,-
3372 sqlite3*-
3373 )-
3374 ;-
3375 sqlite3_mutex_enter(db->mutex);-
3376 db->init.iDb = sqlite3FindDbName(db, -
3377 __builtin_va_arg(-
3378 ap-
3379 ,-
3380 const char*-
3381 )-
3382 );-
3383 db->init.busy = db->init.imposterTable = -
3384 __builtin_va_arg(-
3385 ap-
3386 ,-
3387 int-
3388 )-
3389 ;-
3390 db->init.newTnum = -
3391 __builtin_va_arg(-
3392 ap-
3393 ,-
3394 int-
3395 )-
3396 ;-
3397 if( db->init.busy==0
db->init.busy==0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& db->init.newTnum>0
db->init.newTnum>0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
1-2
3398 sqlite3ResetAllSchemasOfConnection(db);-
3399 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
3400 sqlite3_mutex_leave(db->mutex);-
3401 break;
executed 4 times by 1 test: break;
Executed by:
  • Self test (438)
4
3402 }-
3403 }-
3404 -
3405 __builtin_va_end(-
3406 ap-
3407 )-
3408 ;-
3409-
3410 return
executed 4556 times by 436 tests: return rc;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
rc;
executed 4556 times by 436 tests: return rc;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
4556
3411}-
3412const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam){-
3413 if( zFilename==0
zFilename==0Description
TRUEevaluated 79399 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
FALSEevaluated 65362 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
|| zParam==0
zParam==0Description
TRUEnever evaluated
FALSEevaluated 65362 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
) return
executed 79399 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 79399 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0-79399
3414 zFilename += sqlite3Strlen30(zFilename) + 1;-
3415 while( zFilename[0]
zFilename[0]Description
TRUEevaluated 563 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 65322 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
){
563-65322
3416 int x = -
3417 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (-
3418 zFilename-
3419 ) && __builtin_constant_p (-
3420 zParam-
3421 ) && (__s1_len = __builtin_strlen (-
3422 zFilename-
3423 ), __s2_len = __builtin_strlen (-
3424 zParam-
3425 ), (!((size_t)(const void *)((-
3426 zFilename-
3427 ) + 1) - (size_t)(const void *)(-
3428 zFilename-
3429 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((-
3430 zParam-
3431 ) + 1) - (size_t)(const void *)(-
3432 zParam-
3433 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (-
3434 zFilename-
3435 , -
3436 zParam-
3437 ) : (__builtin_constant_p (-
3438 zFilename-
3439 ) && ((size_t)(const void *)((-
3440 zFilename-
3441 ) + 1) - (size_t)(const void *)(-
3442 zFilename-
3443 ) == 1) && (__s1_len = __builtin_strlen (-
3444 zFilename-
3445 ), __s1_len < 4) ? (__builtin_constant_p (-
3446 zParam-
3447 ) && ((size_t)(const void *)((-
3448 zParam-
3449 ) + 1) - (size_t)(const void *)(-
3450 zParam-
3451 ) == 1) ? __builtin_strcmp (-
3452 zFilename-
3453 , -
3454 zParam-
3455 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
3456 zParam-
3457 ); int __result = (((const unsigned char *) (const char *) (-
3458 zFilename-
3459 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
3460 zFilename-
3461 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
3462 zFilename-
3463 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( zFilename ))[3] - __s2[3]);
0
3464 zFilename
never executed: __result = (((const unsigned char *) (const char *) ( zFilename ))[3] - __s2[3]);
0
3465 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( zFilename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
0
3466 zParam-
3467 ) && ((size_t)(const void *)((-
3468 zParam-
3469 ) + 1) - (size_t)(const void *)(-
3470 zParam-
3471 ) == 1) && (__s2_len = __builtin_strlen (-
3472 zParam-
3473 ), __s2_len < 4) ? (__builtin_constant_p (-
3474 zFilename-
3475 ) && ((size_t)(const void *)((-
3476 zFilename-
3477 ) + 1) - (size_t)(const void *)(-
3478 zFilename-
3479 ) == 1) ? __builtin_strcmp (-
3480 zFilename-
3481 , -
3482 zParam-
3483 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
3484 zFilename-
3485 ); int __result = (((const unsigned char *) (const char *) (-
3486 zParam-
3487 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
3488 zParam-
3489 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
3490 zParam-
3491 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( zParam ))[3] - __s2[3]);
0
3492 zParam
never executed: __result = (((const unsigned char *) (const char *) ( zParam ))[3] - __s2[3]);
0
3493 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( zParam ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
0
3494 zFilename-
3495 , -
3496 zParam-
3497 )))); })-
3498 ;-
3499 zFilename += sqlite3Strlen30(zFilename) + 1;-
3500 if( x==0
x==0Description
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 523 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
) return
executed 40 times by 4 tests: return zFilename;
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
zFilename;
executed 40 times by 4 tests: return zFilename;
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
40-523
3501 zFilename += sqlite3Strlen30(zFilename) + 1;-
3502 }
executed 523 times by 4 tests: end of block
Executed by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
523
3503 return
executed 65322 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
0;
executed 65322 times by 438 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
65322
3504}-
3505-
3506-
3507-
3508-
3509int sqlite3_uri_boolean(const char *zFilename, const char *zParam, int bDflt){-
3510 const char *z = sqlite3_uri_parameter(zFilename, zParam);-
3511 bDflt = bDflt!=0;-
3512 return
executed 143447 times by 438 tests: return z ? sqlite3GetBoolean(z, bDflt) : bDflt;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
z
zDescription
TRUEevaluated 39 times by 4 tests
Evaluated by:
  • Self test (103)
  • Self test (104)
  • Self test (438)
  • Self test (61)
FALSEevaluated 143408 times by 438 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
? sqlite3GetBoolean(z, bDflt) : bDflt;
executed 143447 times by 438 tests: return z ? sqlite3GetBoolean(z, bDflt) : bDflt;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (102)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • ...
39-143447
3513}-
3514-
3515-
3516-
3517-
3518sqlite3_int64 sqlite3_uri_int64(-
3519 const char *zFilename,-
3520 const char *zParam,-
3521 sqlite3_int64 bDflt-
3522){-
3523 const char *z = sqlite3_uri_parameter(zFilename, zParam);-
3524 sqlite3_int64 v;-
3525 if( z
zDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1148 times by 2 tests
Evaluated by:
  • Self test (34)
  • Self test (438)
&& sqlite3DecOrHexToI64(z, &v)==0
sqlite3DecOrHexToI64(z, &v)==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-1148
3526 bDflt = v;-
3527 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
3528 return
executed 1149 times by 2 tests: return bDflt;
Executed by:
  • Self test (34)
  • Self test (438)
bDflt;
executed 1149 times by 2 tests: return bDflt;
Executed by:
  • Self test (34)
  • Self test (438)
1149
3529}-
3530-
3531-
3532-
3533-
3534Btree *sqlite3DbNameToBtree(sqlite3 *db, const char *zDbName){-
3535 int iDb = zDbName
zDbNameDescription
TRUEevaluated 1588 times by 12 tests
Evaluated by:
  • Self test (100)
  • Self test (34)
  • Self test (438)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 35090 times by 42 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • Self test (57)
  • Self test (58)
  • ...
? sqlite3FindDbName(db, zDbName) : 0;
1588-35090
3536 return
executed 36678 times by 53 tests: return iDb<0 ? 0 : db->aDb[iDb].pBt;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
iDb<0
iDb<0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 36673 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
? 0 : db->aDb[iDb].pBt;
executed 36678 times by 53 tests: return iDb<0 ? 0 : db->aDb[iDb].pBt;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (28)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (39)
  • Self test (43)
  • Self test (438)
  • Self test (45)
  • Self test (53)
  • Self test (54)
  • ...
5-36678
3537}-
3538-
3539-
3540-
3541-
3542-
3543const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName){-
3544 Btree *pBt;-
3545-
3546-
3547-
3548-
3549-
3550-
3551 pBt = sqlite3DbNameToBtree(db, zDbName);-
3552 return
executed 34 times by 1 test: return pBt ? sqlite3BtreeGetFilename(pBt) : 0;
Executed by:
  • Self test (438)
pBt
pBtDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
? sqlite3BtreeGetFilename(pBt) : 0;
executed 34 times by 1 test: return pBt ? sqlite3BtreeGetFilename(pBt) : 0;
Executed by:
  • Self test (438)
11-34
3553}-
3554-
3555-
3556-
3557-
3558-
3559int sqlite3_db_readonly(sqlite3 *db, const char *zDbName){-
3560 Btree *pBt;-
3561-
3562-
3563-
3564-
3565-
3566-
3567 pBt = sqlite3DbNameToBtree(db, zDbName);-
3568 return
executed 5 times by 1 test: return pBt ? sqlite3BtreeIsReadonly(pBt) : -1;
Executed by:
  • Self test (438)
pBt
pBtDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
? sqlite3BtreeIsReadonly(pBt) : -1;
executed 5 times by 1 test: return pBt ? sqlite3BtreeIsReadonly(pBt) : -1;
Executed by:
  • Self test (438)
1-5
3569}-
3570int sqlite3_compileoption_used(const char *zOptName){-
3571 int i, n;-
3572 int nOpt;-
3573 const char **azCompileOpt;-
3574 azCompileOpt = sqlite3CompileOptions(&nOpt);-
3575-
3576 if( sqlite3_strnicmp(zOptName, "SQLITE_", 7)==0
sqlite3_strnic...QLITE_", 7)==0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 23 times by 1 test
Evaluated by:
  • Self test (438)
) zOptName += 7;
executed 2 times by 1 test: zOptName += 7;
Executed by:
  • Self test (438)
2-23
3577 n = sqlite3Strlen30(zOptName);-
3578-
3579-
3580-
3581 for(i=0; i<nOpt
i<nOptDescription
TRUEevaluated 165 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
12-165
3582 if( sqlite3_strnicmp(zOptName, azCompileOpt[i], n)==0
sqlite3_strnic...eOpt[i], n)==0Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 135 times by 1 test
Evaluated by:
  • Self test (438)
30-135
3583 && sqlite3IsIdChar((unsigned char)azCompileOpt[i][n])==0
sqlite3IsIdCha...eOpt[i][n])==0Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
13-17
3584 ){-
3585 return
executed 13 times by 1 test: return 1;
Executed by:
  • Self test (438)
1;
executed 13 times by 1 test: return 1;
Executed by:
  • Self test (438)
13
3586 }-
3587 }
executed 152 times by 1 test: end of block
Executed by:
  • Self test (438)
152
3588 return
executed 12 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 12 times by 1 test: return 0;
Executed by:
  • Self test (438)
12
3589}-
3590-
3591-
3592-
3593-
3594-
3595const char *sqlite3_compileoption_get(int N){-
3596 int nOpt;-
3597 const char **azCompileOpt;-
3598 azCompileOpt = sqlite3CompileOptions(&nOpt);-
3599 if( N>=0
N>=0Description
TRUEevaluated 65 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
&& N<nOpt
N<nOptDescription
TRUEevaluated 58 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
){
1-65
3600 return
executed 58 times by 1 test: return azCompileOpt[N];
Executed by:
  • Self test (438)
azCompileOpt[N];
executed 58 times by 1 test: return azCompileOpt[N];
Executed by:
  • Self test (438)
58
3601 }-
3602 return
executed 8 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 8 times by 1 test: return 0;
Executed by:
  • Self test (438)
8
3603}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2