- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitcf223c3
committed
Improve contrib/bloom regression test using code coverage info.
Originally, this test created a 100000-row test table, which made itrun rather slowly compared to other contrib tests. Investigation withgcov showed that we got no further improvement in code coverage afterthe first 700 or so rows, making the large table 99% a waste of time.Cut it back to 2000 rows to fix the runtime problem and still leavesome headroom for testing behaviors that may appear later.A closer look at the gcov results showed that the main coverageomissions in contrib/bloom occurred because the test never filled morethan one entry in the notFullPage array; which is unsurprising becauseit exercised index cleanup only in the scenario of complete tabledeletion, allowing every page in the index to become deleted ratherthan not-full. Add testing that allows the not-full path to beexercised as well.Also, test the amvalidate function, because blvalidate.c had zerocoverage without that, and besides it's a good idea to check formistakes in the bloom opclass definitions.1 parentbd905a0 commitcf223c3
2 files changed
+62
-16
lines changedLines changed: 46 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
| 65 | + | |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
| 86 | + | |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
99 | 120 |
| |
100 | 121 |
| |
101 | 122 |
| |
102 | 123 |
| |
103 | 124 |
| |
104 | 125 |
| |
105 |
| - | |
| 126 | + | |
106 | 127 |
| |
107 | 128 |
| |
108 | 129 |
| |
109 | 130 |
| |
110 | 131 |
| |
111 |
| - | |
| 132 | + | |
112 | 133 |
| |
113 | 134 |
| |
114 | 135 |
| |
115 | 136 |
| |
116 | 137 |
| |
117 |
| - | |
| 138 | + | |
118 | 139 |
| |
119 | 140 |
| |
120 | 141 |
| |
121 | 142 |
| |
122 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + |
Lines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 |
| |
40 | 48 |
| |
41 | 49 |
| |
| |||
45 | 53 |
| |
46 | 54 |
| |
47 | 55 |
| |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + |
0 commit comments
Comments
(0)