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))