maxogden/level.js

2014-06-15 19:53:31
✓10.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
6.0
✓15.0
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer not ok 164 should be equal --- operator: equal expected: 'NaN' actual: 'null' ... ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer not ok 180 should be equal --- operator: equal expected: 'foo' actual: '[object Object]' ... ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer not ok 227 should be equal --- operator: equal expected: 'NaN' actual: 'null' ... ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer not ok 243 should be equal --- operator: equal expected: 'foo' actual: '[object Object]' ... ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value not ok 331 no error --- operator: notOk expected: false actual: {} ... not ok 332 err argument is undefined --- operator: ok expected: true actual: false ... ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries not ok 341 .end() called twice --- operator: fail ... # setUp #2 # test full data collection ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with reverse=true ok 345 no error ok 346 correct number of entries not ok 347 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' }, { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' }, { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with start=0 ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start=50 ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start=50 and reverse=true ok 354 no error not ok 355 correct number of entries --- operator: equal expected: 51 actual: 50 ... not ok 356 should be equivalent --- operator: deepEqual expected: [ { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with start being a midway key (49.5) ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start being a midway key (49999) ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with start being a midway key and reverse=true ok 363 no error ok 364 correct number of entries not ok 365 should be equivalent --- operator: deepEqual expected: [ { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with end=50 ok 366 no error not ok 367 correct number of entries --- operator: equal expected: 51 actual: 50 ... not ok 368 should be equivalent --- operator: deepEqual expected: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with end being a midway key (50.5) ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end being a midway key (50555) ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with end being a midway key and reverse=true ok 375 no error ok 376 correct number of entries not ok 377 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' } ] actual: [ { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with end=0 ok 378 no error ok 379 correct number of entries # test iterator with start=30 and end=70 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 383 no error ok 384 correct number of entries not ok 385 should be equivalent --- operator: deepEqual expected: [ { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' }, { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' } ] actual: [ { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' }, { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' } ] ... # test iterator with limit=20 ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=20 and reverse=true ok 392 no error ok 393 correct number of entries not ok 394 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' } ] ... # test iterator with limit=20 and start=20 and reverse=true ok 395 no error ok 396 correct number of entries not ok 397 should be equivalent --- operator: deepEqual expected: [ { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' } ] ... # test iterator with limit=-1 should iterate over whole database ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with end after limit ok 401 no error ok 402 correct number of entries ok 403 should be equivalent # test iterator with end before limit ok 404 no error not ok 405 correct number of entries --- operator: equal expected: 20 actual: 19 ... not ok 406 should be equivalent --- operator: deepEqual expected: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' } ] ... # test iterator with start after database end ok 407 no error ok 408 correct number of entries # test iterator with start after database end and reverse=true ok 409 no error ok 410 correct number of entries not ok 411 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' }, { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' }, { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with start and end after database and and reverse=true ok 412 no error ok 413 correct number of entries # test iterator with start as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with start as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # test iterator with end as empty string ok 420 no error ok 421 correct number of entries ok 422 should be equivalent # test iterator with end as null ok 423 no error ok 424 correct number of entries ok 425 should be equivalent # tearDown ok 426 cleanup returned an error # setUp common ok 427 cleanup returned an error # setUp db ok 428 null # test simple iterator() ok 429 no error ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 correct key ok 435 correct value ok 436 no error ok 437 correct key ok 438 correct value ok 439 no error ok 440 err argument is undefined ok 441 key argument is undefined ok 442 value argument is undefined ok 443 correct number of entries # setUp #2 # test full data collection ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with reverse=true ok 447 no error ok 448 correct number of entries not ok 449 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' }, { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' }, { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with gte=0 ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with gte=50 ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with lte=50 and reverse=true ok 456 no error not ok 457 correct number of entries --- operator: equal expected: 51 actual: 50 ... not ok 458 should be equivalent --- operator: deepEqual expected: [ { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with start being a midway key (49.5) ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key (49999) ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries not ok 467 should be equivalent --- operator: deepEqual expected: [ { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with start being a midway key and reverse=true ok 468 no error ok 469 correct number of entries not ok 470 should be equivalent --- operator: deepEqual expected: [ { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with start being a midway key and reverse=true ok 471 no error ok 472 correct number of entries not ok 473 should be equivalent --- operator: deepEqual expected: [ { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' }, { key: '29', value: '0.08214727323502302' }, { key: '28', value: '0.7369481178466231' }, { key: '27', value: '0.39694249886088073' }, { key: '26', value: '0.8123028646223247' }, { key: '25', value: '0.9497727691195905' }, { key: '24', value: '0.48563225474208593' }, { key: '23', value: '0.9683291157707572' }, { key: '22', value: '0.40675152535550296' }, { key: '21', value: '0.7257494069635868' }, { key: '20', value: '0.28405392286367714' }, { key: '19', value: '0.08669433975592256' }, { key: '18', value: '0.5293043453712016' }, { key: '17', value: '0.9082101667299867' }, { key: '16', value: '0.3416099336463958' }, { key: '15', value: '0.3773425845429301' }, { key: '14', value: '0.675978648243472' }, { key: '13', value: '0.025740223936736584' }, { key: '12', value: '0.9116712464019656' }, { key: '11', value: '0.5739606386050582' }, { key: '10', value: '0.4559832864906639' }, { key: '09', value: '0.012903727358207107' }, { key: '08', value: '0.009586006170138717' }, { key: '07', value: '0.8079106865916401' }, { key: '06', value: '0.04893251042813063' }, { key: '05', value: '0.49617204209789634' }, { key: '04', value: '0.917069616029039' }, { key: '03', value: '0.9348360034637153' }, { key: '02', value: '0.6851251972839236' }, { key: '01', value: '0.0026672417297959328' }, { key: '00', value: '0.2384356774855405' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with end=50 ok 474 no error not ok 475 correct number of entries --- operator: equal expected: 51 actual: 50 ... not ok 476 should be equivalent --- operator: deepEqual expected: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' } ] actual: [ { key: '00', value: '0.2384356774855405' }, { key: '01', value: '0.0026672417297959328' }, { key: '02', value: '0.6851251972839236' }, { key: '03', value: '0.9348360034637153' }, { key: '04', value: '0.917069616029039' }, { key: '05', value: '0.49617204209789634' }, { key: '06', value: '0.04893251042813063' }, { key: '07', value: '0.8079106865916401' }, { key: '08', value: '0.009586006170138717' }, { key: '09', value: '0.012903727358207107' }, { key: '10', value: '0.4559832864906639' }, { key: '11', value: '0.5739606386050582' }, { key: '12', value: '0.9116712464019656' }, { key: '13', value: '0.025740223936736584' }, { key: '14', value: '0.675978648243472' }, { key: '15', value: '0.3773425845429301' }, { key: '16', value: '0.3416099336463958' }, { key: '17', value: '0.9082101667299867' }, { key: '18', value: '0.5293043453712016' }, { key: '19', value: '0.08669433975592256' }, { key: '20', value: '0.28405392286367714' }, { key: '21', value: '0.7257494069635868' }, { key: '22', value: '0.40675152535550296' }, { key: '23', value: '0.9683291157707572' }, { key: '24', value: '0.48563225474208593' }, { key: '25', value: '0.9497727691195905' }, { key: '26', value: '0.8123028646223247' }, { key: '27', value: '0.39694249886088073' }, { key: '28', value: '0.7369481178466231' }, { key: '29', value: '0.08214727323502302' }, { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' } ] ... # test iterator with end being a midway key (50.5) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key (50555) ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with end being a midway key (50555) ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with end being a midway key and reverse=true ok 486 no error ok 487 correct number of entries not ok 488 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' } ] actual: [ { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with gt a midway key and reverse=true ok 489 no error ok 490 correct number of entries not ok 491 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' } ] actual: [ { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with gt a midway key and reverse=true ok 492 no error ok 493 correct number of entries not ok 494 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' } ] actual: [ { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with gt 50 key and reverse=true ok 495 no error ok 496 correct number of entries not ok 497 should be equivalent --- operator: deepEqual expected: [ { key: '99', value: '0.132790541741997' }, { key: '98', value: '0.6294303187169135' }, { key: '97', value: '0.7592235021293163' }, { key: '96', value: '0.35672547086142004' }, { key: '95', value: '0.6062059735413641' }, { key: '94', value: '0.8751094110775739' }, { key: '93', value: '0.9011583614628762' }, { key: '92', value: '0.35954653308726847' }, { key: '91', value: '0.5283517383504659' }, { key: '90', value: '0.4058190411888063' }, { key: '89', value: '0.8596502679865807' }, { key: '88', value: '0.1828972389921546' }, { key: '87', value: '0.8498513731174171' }, { key: '86', value: '0.21556665655225515' }, { key: '85', value: '0.10879452037625015' }, { key: '84', value: '0.6477654983755201' }, { key: '83', value: '0.6094687872100621' }, { key: '82', value: '0.9426531617064029' }, { key: '81', value: '0.23142995382659137' }, { key: '80', value: '0.5007250008638948' }, { key: '79', value: '0.5345807445701212' }, { key: '78', value: '0.5882850969210267' }, { key: '77', value: '0.0088271196000278' }, { key: '76', value: '0.14494206965900958' }, { key: '75', value: '0.49777533765882254' }, { key: '74', value: '0.983353502349928' }, { key: '73', value: '0.8890918588731438' }, { key: '72', value: '0.8820849440526217' }, { key: '71', value: '0.9958067927509546' }, { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' } ] actual: [ { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' }, { key: '71', value: '0.9958067927509546' }, { key: '72', value: '0.8820849440526217' }, { key: '73', value: '0.8890918588731438' }, { key: '74', value: '0.983353502349928' }, { key: '75', value: '0.49777533765882254' }, { key: '76', value: '0.14494206965900958' }, { key: '77', value: '0.0088271196000278' }, { key: '78', value: '0.5882850969210267' }, { key: '79', value: '0.5345807445701212' }, { key: '80', value: '0.5007250008638948' }, { key: '81', value: '0.23142995382659137' }, { key: '82', value: '0.9426531617064029' }, { key: '83', value: '0.6094687872100621' }, { key: '84', value: '0.6477654983755201' }, { key: '85', value: '0.10879452037625015' }, { key: '86', value: '0.21556665655225515' }, { key: '87', value: '0.8498513731174171' }, { key: '88', value: '0.1828972389921546' }, { key: '89', value: '0.8596502679865807' }, { key: '90', value: '0.4058190411888063' }, { key: '91', value: '0.5283517383504659' }, { key: '92', value: '0.35954653308726847' }, { key: '93', value: '0.9011583614628762' }, { key: '94', value: '0.8751094110775739' }, { key: '95', value: '0.6062059735413641' }, { key: '96', value: '0.35672547086142004' }, { key: '97', value: '0.7592235021293163' }, { key: '98', value: '0.6294303187169135' }, { key: '99', value: '0.132790541741997' } ] ... # test iterator with end=0 ok 498 no error ok 499 correct number of entries # test iterator with end<0 ok 500 no error ok 501 correct number of entries # test iterator with start=30 and end=70 ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 508 no error ok 509 correct number of entries not ok 510 should be equivalent --- operator: deepEqual expected: [ { key: '70', value: '0.06485448474995792' }, { key: '69', value: '0.477911947760731' }, { key: '68', value: '0.049214605474844575' }, { key: '67', value: '0.2685844253282994' }, { key: '66', value: '0.8379888434428722' }, { key: '65', value: '0.7627844884991646' }, { key: '64', value: '0.014412411954253912' }, { key: '63', value: '0.23383785807527602' }, { key: '62', value: '0.29773332411423326' }, { key: '61', value: '0.002130321692675352' }, { key: '60', value: '0.9765215953812003' }, { key: '59', value: '0.0023082001134753227' }, { key: '58', value: '0.2234389998484403' }, { key: '57', value: '0.5498312814161181' }, { key: '56', value: '0.7372530987486243' }, { key: '55', value: '0.23255224246531725' }, { key: '54', value: '0.700992913916707' }, { key: '53', value: '0.7004461828619242' }, { key: '52', value: '0.31091523659415543' }, { key: '51', value: '0.15176486712880433' }, { key: '50', value: '0.1354836265090853' }, { key: '49', value: '0.18304709088988602' }, { key: '48', value: '0.47640082938596606' }, { key: '47', value: '0.11175803397782147' }, { key: '46', value: '0.056044336408376694' }, { key: '45', value: '0.7247912895400077' }, { key: '44', value: '0.6470537642017007' }, { key: '43', value: '0.35609260271303356' }, { key: '42', value: '0.8102256765123457' }, { key: '41', value: '0.825274876318872' }, { key: '40', value: '0.3039253940805793' }, { key: '39', value: '0.19889583135955036' }, { key: '38', value: '0.8186787576414645' }, { key: '37', value: '0.8435877917800099' }, { key: '36', value: '0.6515691836830229' }, { key: '35', value: '0.7580978022888303' }, { key: '34', value: '0.9152154875919223' }, { key: '33', value: '0.34203543909825385' }, { key: '32', value: '0.04891057428903878' }, { key: '31', value: '0.2211633175611496' }, { key: '30', value: '0.13613208918832242' } ] actual: [ { key: '30', value: '0.13613208918832242' }, { key: '31', value: '0.2211633175611496' }, { key: '32', value: '0.04891057428903878' }, { key: '33', value: '0.34203543909825385' }, { key: '34', value: '0.9152154875919223' }, { key: '35', value: '0.7580978022888303' }, { key: '36', value: '0.6515691836830229' }, { key: '37', value: '0.8435877917800099' }, { key: '38', value: '0.8186787576414645' }, { key: '39', value: '0.19889583135955036' }, { key: '40', value: '0.3039253940805793' }, { key: '41', value: '0.825274876318872' }, { key: '42', value: '0.8102256765123457' }, { key: '43', value: '0.35609260271303356' }, { key: '44', value: '0.6470537642017007' }, { key: '45', value: '0.7247912895400077' }, { key: '46', value: '0.056044336408376694' }, { key: '47', value: '0.11175803397782147' }, { key: '48', value: '0.47640082938596606' }, { key: '49', value: '0.18304709088988602' }, { key: '50', value: '0.1354836265090853' }, { key: '51', value: '0.15176486712880433' }, { key: '52', value: '0.31091523659415543' }, { key: '53', value: '0.7004461828619242' }, { key: '54', value: '0.700992913916707' }, { key: '55', value: '0.23255224246531725' }, { key: '56', value: '0.7372530987486243' }, { key: '57', value: '0.5498312814161181' }, { key: '58', value: '0.2234389998484403' }, { key: '59', value: '0.0023082001134753227' }, { key: '60', value: '0.9765215953812003' }, { key: '61', value: '0.002130321692675352' }, { key: '62', value: '0.29773332411423326' }, { key: '63', value: '0.23383785807527602' }, { key: '64', value: '0.014412411954253912' }, { key: '65', value: '0.7627844884991646' }, { key: '66', value: '0.8379888434428722' }, { key: '67', value: '0.2685844253282994' }, { key: '68', value: '0.049214605474844575' }, { key: '69', value: '0.477911947760731' }, { key: '70', value: '0.06485448474995792' } ] ... # test iterator with start=30 and end=70 and reverse=true not ok 511 no error --- operator: notOk expected: false actual: {} ... not ok 1 Error: TypeError: 'undefined' is not an object on line 2382
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should error ok 58 should have correct error message ok 59 value is undefined ok 60 should error ok 61 should have correct error message ok 62 value is undefined ok 63 should error ok 64 should have correct error message ok 65 value is undefined ok 66 should not error ok 67 should be equal ok 68 should error ok 69 should have correct error message ok 70 value is undefined ok 71 should error ok 72 should have correct error message ok 73 value is undefined ok 74 should error ok 75 should have correct error message ok 76 value is undefined ok 77 should not error ok 78 should be equal ok 79 should not error ok 80 should be equal ok 81 should not error ok 82 should be equal ok 83 should not error ok 84 should be equal ok 85 should not error ok 86 should be equal ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 no error ok 277 (unnamed assert) ok 278 should be equal ok 279 entry not found ok 280 value is undefined ok 281 NotFound error # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should not error ok 68 should be equal ok 69 should error ok 70 should have correct error message ok 71 value is undefined ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should not error ok 92 should be equal ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should not error ok 71 should be equal ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should not error ok 68 should be equal ok 69 should error ok 70 should have correct error message ok 71 value is undefined ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 no error ok 277 (unnamed assert) ok 278 should be equal ok 279 entry not found ok 280 value is undefined ok 281 NotFound error # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined ok 97 should not error ok 98 should be equal # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should error ok 60 should have correct error message ok 61 value is undefined ok 62 should error ok 63 should have correct error message ok 64 value is undefined ok 65 should error ok 66 should have correct error message ok 67 value is undefined ok 68 should error ok 69 should have correct error message ok 70 value is undefined ok 71 should error ok 72 should have correct error message ok 73 value is undefined ok 74 should error ok 75 should have correct error message ok 76 value is undefined ok 77 should not error ok 78 should be equal ok 79 should not error ok 80 should be equal ok 81 should not error ok 82 should be equal ok 83 should not error ok 84 should be equal ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined ok 97 should not error ok 98 should be equal # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should error ok 58 should have correct error message ok 59 value is undefined ok 60 should error ok 61 should have correct error message ok 62 value is undefined ok 63 should error ok 64 should have correct error message ok 65 value is undefined ok 66 should error ok 67 should have correct error message ok 68 value is undefined ok 69 should error ok 70 should have correct error message ok 71 value is undefined ok 72 should not error ok 73 should be equal ok 74 should error ok 75 should have correct error message ok 76 value is undefined ok 77 should error ok 78 should have correct error message ok 79 value is undefined ok 80 should error ok 81 should have correct error message ok 82 value is undefined ok 83 should error ok 84 should have correct error message ok 85 value is undefined ok 86 should not error ok 87 should be equal ok 88 should not error ok 89 should be equal ok 90 should not error ok 91 should be equal ok 92 should not error ok 93 should be equal ok 94 should not error ok 95 should be equal ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 entry not found ok 274 value is undefined ok 275 NotFound error ok 276 no error ok 277 (unnamed assert) ok 278 should be equal ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
2014-06-15 19:52:49
✓10.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
6.0
✓15.0
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer not ok 164 should be equal --- operator: equal expected: 'NaN' actual: 'null' ... ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer not ok 180 should be equal --- operator: equal expected: 'foo' actual: '[object Object]' ... ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer not ok 227 should be equal --- operator: equal expected: 'NaN' actual: 'null' ... ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer not ok 243 should be equal --- operator: equal expected: 'foo' actual: '[object Object]' ... ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true not ok 339 no error --- operator: notOk expected: false actual: {} ... not ok 1 Error: TypeError: 'undefined' is not an object on line 1416
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should not error ok 68 should be equal ok 69 should error ok 70 should have correct error message ok 71 value is undefined ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should not error ok 68 should be equal ok 69 should error ok 70 should have correct error message ok 71 value is undefined ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 entry not found ok 274 value is undefined ok 275 NotFound error ok 276 no error ok 277 (unnamed assert) ok 278 should be equal ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should not error ok 77 should be equal ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should error ok 82 should have correct error message ok 83 value is undefined ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should not error ok 83 should be equal ok 84 should error ok 85 should have correct error message ok 86 value is undefined ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should error ok 62 should have correct error message ok 63 value is undefined ok 64 should error ok 65 should have correct error message ok 66 value is undefined ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should not error ok 74 should be equal ok 75 should error ok 76 should have correct error message ok 77 value is undefined ok 78 should error ok 79 should have correct error message ok 80 value is undefined ok 81 should not error ok 82 should be equal ok 83 should not error ok 84 should be equal ok 85 should not error ok 86 should be equal ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 entry not found ok 274 value is undefined ok 275 NotFound error ok 276 no error ok 277 (unnamed assert) ok 278 should be equal ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should error ok 52 should have correct error message ok 53 value is undefined ok 54 should not error ok 55 should be equal ok 56 should not error ok 57 should be equal ok 58 should not error ok 59 should be equal ok 60 should not error ok 61 should be equal ok 62 should error ok 63 should have correct error message ok 64 value is undefined ok 65 should error ok 66 should have correct error message ok 67 value is undefined ok 68 should error ok 69 should have correct error message ok 70 value is undefined ok 71 should not error ok 72 should be equal ok 73 should not error ok 74 should be equal ok 75 should not error ok 76 should be equal ok 77 should not error ok 78 should be equal ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should not error ok 92 should be equal ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should error ok 60 should have correct error message ok 61 value is undefined ok 62 should error ok 63 should have correct error message ok 64 value is undefined ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should not error ok 74 should be equal ok 75 should not error ok 76 should be equal ok 77 should error ok 78 should have correct error message ok 79 value is undefined ok 80 should error ok 81 should have correct error message ok 82 value is undefined ok 83 should not error ok 84 should be equal ok 85 should not error ok 86 should be equal ok 87 should error ok 88 should have correct error message ok 89 value is undefined ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 (unnamed assert) ok 40 should be equal ok 41 no error ok 42 should not be string by default ok 43 (unnamed assert) ok 44 should be equal ok 45 no error ok 46 should be string if not buffer ok 47 should be equal # test simultaniously get() ok 48 should not error ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should error ok 62 should have correct error message ok 63 value is undefined ok 64 should error ok 65 should have correct error message ok 66 value is undefined ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should not error ok 71 should be equal ok 72 should error ok 73 should have correct error message ok 74 value is undefined ok 75 should not error ok 76 should be equal ok 77 should not error ok 78 should be equal ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should not error ok 89 should be equal ok 90 should error ok 91 should have correct error message ok 92 value is undefined ok 93 should error ok 94 should have correct error message ok 95 value is undefined ok 96 should error ok 97 should have correct error message ok 98 value is undefined # tearDown ok 99 cleanup returned an error # setUp common ok 100 cleanup returned an error # setUp db ok 101 null # test get() with null key causes error ok 102 has error ok 103 (unnamed assert) ok 104 correct error message # test del() with null key causes error ok 105 has error ok 106 (unnamed assert) ok 107 correct error message # test put() with null key causes error ok 108 has error ok 109 (unnamed assert) ok 110 correct error message # test get() with undefined key causes error ok 111 has error ok 112 (unnamed assert) ok 113 correct error message # test del() with undefined key causes error ok 114 has error ok 115 (unnamed assert) ok 116 correct error message # test put() with undefined key causes error ok 117 has error ok 118 (unnamed assert) ok 119 correct error message # test get() with empty String key causes error ok 120 has error ok 121 (unnamed assert) ok 122 correct error message # test del() with empty String key causes error ok 123 has error ok 124 (unnamed assert) ok 125 correct error message # test put() with empty String key causes error ok 126 has error ok 127 (unnamed assert) ok 128 correct error message # test get() with empty Buffer key causes error ok 129 has error ok 130 (unnamed assert) not ok 131 correct error message --- operator: ok expected: true actual: null ... # test del() with empty Buffer key causes error ok 132 has error ok 133 (unnamed assert) not ok 134 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Buffer key causes error ok 135 has error ok 136 (unnamed assert) not ok 137 correct error message --- operator: ok expected: true actual: null ... # test get() with empty Array key causes error ok 138 has error ok 139 (unnamed assert) ok 140 correct error message # test del() with empty Array key causes error ok 141 has error ok 142 (unnamed assert) ok 143 correct error message # test put() with empty Array key causes error ok 144 has error ok 145 (unnamed assert) ok 146 correct error message # test put()/get()/del() with `false` value ok 147 no error ok 148 no error, has key/value for `foo false` ok 149 is a Buffer ok 150 should be equal ok 151 no error, deleted key/value for `foo false` ok 152 entry propertly deleted ok 153 should have correct error message ok 154 value is undefined # test put()/get()/del() with `0` value ok 155 no error ok 156 no error, has key/value for `foo 0` ok 157 is a Buffer ok 158 should be equal ok 159 no error, deleted key/value for `foo 0` ok 160 entry propertly deleted ok 161 should have correct error message ok 162 value is undefined # test put()/get()/del() with `NaN` value ok 163 no error ok 164 no error, has key/value for `foo NaN` ok 165 is a Buffer ok 166 should be equal ok 167 no error, deleted key/value for `foo NaN` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with long String value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 is a Buffer ok 174 should be equal ok 175 no error, deleted key/value for `foo` ok 176 entry propertly deleted ok 177 should have correct error message ok 178 value is undefined # test put()/get()/del() with Buffer value ok 179 no error ok 180 no error, has key/value for `foo` ok 181 is a Buffer ok 182 should be equal ok 183 no error, deleted key/value for `foo` ok 184 entry propertly deleted ok 185 should have correct error message ok 186 value is undefined # test put()/get()/del() with Array key ok 187 no error ok 188 no error, has key/value for `1,2,3,4` ok 189 is a Buffer ok 190 should be equal ok 191 no error, deleted key/value for `1,2,3,4` ok 192 entry propertly deleted ok 193 should have correct error message ok 194 value is undefined # test put() with null value causes error ok 195 has error ok 196 (unnamed assert) ok 197 correct error message # test put() with undefined value causes error ok 198 has error ok 199 (unnamed assert) ok 200 correct error message # test put() with empty String value causes error ok 201 has error ok 202 (unnamed assert) ok 203 correct error message # test put() with empty Buffer value causes error ok 204 has error ok 205 (unnamed assert) not ok 206 correct error message --- operator: ok expected: true actual: null ... # test put() with empty Array value causes error ok 207 has error ok 208 (unnamed assert) ok 209 correct error message # test put()/get()/del() with `false` value ok 210 no error ok 211 no error, has key/value for `foo false` ok 212 is a Buffer ok 213 should be equal ok 214 no error, deleted key/value for `foo false` ok 215 entry propertly deleted ok 216 should have correct error message ok 217 value is undefined # test put()/get()/del() with `0` value ok 218 no error ok 219 no error, has key/value for `foo 0` ok 220 is a Buffer ok 221 should be equal ok 222 no error, deleted key/value for `foo 0` ok 223 entry propertly deleted ok 224 should have correct error message ok 225 value is undefined # test put()/get()/del() with `NaN` value ok 226 no error ok 227 no error, has key/value for `foo NaN` ok 228 is a Buffer ok 229 should be equal ok 230 no error, deleted key/value for `foo NaN` ok 231 entry propertly deleted ok 232 should have correct error message ok 233 value is undefined # test put()/get()/del() with long String value ok 234 no error ok 235 no error, has key/value for `foo` ok 236 is a Buffer ok 237 should be equal ok 238 no error, deleted key/value for `foo` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # test put()/get()/del() with Buffer value ok 242 no error ok 243 no error, has key/value for `foo` ok 244 is a Buffer ok 245 should be equal ok 246 no error, deleted key/value for `foo` ok 247 entry propertly deleted ok 248 should have correct error message ok 249 value is undefined # test put()/get()/del() with Array key ok 250 no error ok 251 no error, has key/value for `1,2,3,4` ok 252 is a Buffer ok 253 should be equal ok 254 no error, deleted key/value for `1,2,3,4` ok 255 entry propertly deleted ok 256 should have correct error message ok 257 value is undefined # tearDown ok 258 cleanup returned an error # setUp common ok 259 cleanup returned an error # setUp db ok 260 null # test callback-less, 2-arg, batch() throws ok 261 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 262 correct error message # test batch() with null `value` ok 263 correct error message # test batch() with missing `key` ok 264 correct error message # test batch() with null `key` ok 265 correct error message # test batch() with missing `key` and `value` ok 266 correct error message # test batch() with empty array ok 267 no error # test simple batch() ok 268 no error ok 269 no error ok 270 (unnamed assert) ok 271 should be equal # test multiple batch() ok 272 no error ok 273 no error ok 274 (unnamed assert) ok 275 should be equal ok 276 entry not found ok 277 value is undefined ok 278 NotFound error ok 279 no error ok 280 (unnamed assert) ok 281 should be equal # tearDown ok 282 cleanup returned an error # setUp common ok 283 cleanup returned an error # setUp db ok 284 null # test batch#put() with missing `value` ok 285 correct error message # test batch#put() with null `value` ok 286 correct error message # test batch#put() with missing `key` ok 287 correct error message # test batch#put() with null `key` ok 288 correct error message # test batch#put() with missing `key` and `value` ok 289 correct error message # test batch#del() with missing `key` ok 290 correct error message # test batch#del() with null `key` ok 291 correct error message # test batch#del() with null `key` ok 292 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 293 correct error message # test batch#put() after write() ok 294 correct error message # test batch#del() after write() ok 295 correct error message # test batch#clear() after write() ok 296 correct error message # test batch#write() after write() ok 297 correct error message # test basic batch ok 298 no error ok 299 no error ok 300 no error ok 301 correct number of entries ok 302 should be equivalent # tearDown ok 303 cleanup returned an error # test close() ok 304 no error ok 305 no-arg close() throws ok 306 non-callback close() throws ok 307 no error # setUp common ok 308 cleanup returned an error # setUp db ok 309 null # test argument-less iterator#next() throws ok 310 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 311 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 312 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 313 no error ok 314 returned error ok 315 correct error ok 316 should be equal # test iterator#next after iterator#end() callback with error ok 317 no error ok 318 returned error ok 319 correct error ok 320 correct message # test twice iterator#next() throws ok 321 returned error ok 322 correct error ok 323 should be equal ok 324 no error ok 325 no error # test simple iterator() ok 326 no error ok 327 no error ok 328 correct key ok 329 correct value ok 330 no error ok 331 correct key ok 332 correct value ok 333 no error ok 334 correct key ok 335 correct value ok 336 no error ok 337 err argument is undefined ok 338 key argument is undefined ok 339 value argument is undefined ok 340 correct number of entries # setUp #2 # test full data collection ok 341 no error ok 342 correct number of entries ok 343 should be equivalent # test iterator with reverse=true ok 344 no error ok 345 correct number of entries ok 346 should be equivalent # test iterator with start=0 ok 347 no error ok 348 correct number of entries ok 349 should be equivalent # test iterator with start=50 ok 350 no error ok 351 correct number of entries ok 352 should be equivalent # test iterator with start=50 and reverse=true ok 353 no error ok 354 correct number of entries ok 355 should be equivalent # test iterator with start being a midway key (49.5) ok 356 no error ok 357 correct number of entries ok 358 should be equivalent # test iterator with start being a midway key (49999) ok 359 no error ok 360 correct number of entries ok 361 should be equivalent # test iterator with start being a midway key and reverse=true ok 362 no error ok 363 correct number of entries ok 364 should be equivalent # test iterator with end=50 ok 365 no error ok 366 correct number of entries ok 367 should be equivalent # test iterator with end being a midway key (50.5) ok 368 no error ok 369 correct number of entries ok 370 should be equivalent # test iterator with end being a midway key (50555) ok 371 no error ok 372 correct number of entries ok 373 should be equivalent # test iterator with end being a midway key and reverse=true ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with end=0 ok 377 no error ok 378 correct number of entries # test iterator with start=30 and end=70 ok 379 no error ok 380 correct number of entries ok 381 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 382 no error ok 383 correct number of entries ok 384 should be equivalent # test iterator with limit=20 ok 385 no error ok 386 correct number of entries ok 387 should be equivalent # test iterator with limit=20 and start=20 ok 388 no error ok 389 correct number of entries ok 390 should be equivalent # test iterator with limit=20 and reverse=true ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end after limit ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # test iterator with end before limit ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start after database end ok 406 no error ok 407 correct number of entries # test iterator with start after database end and reverse=true ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start and end after database and and reverse=true ok 411 no error ok 412 correct number of entries # test iterator with start as empty string ok 413 no error ok 414 correct number of entries ok 415 should be equivalent # test iterator with start as null ok 416 no error ok 417 correct number of entries ok 418 should be equivalent # test iterator with end as empty string ok 419 no error ok 420 correct number of entries ok 421 should be equivalent # test iterator with end as null ok 422 no error ok 423 correct number of entries ok 424 should be equivalent # tearDown ok 425 cleanup returned an error # setUp common ok 426 cleanup returned an error # setUp db ok 427 null # test simple iterator() ok 428 no error ok 429 no error ok 430 correct key ok 431 correct value ok 432 no error ok 433 correct key ok 434 correct value ok 435 no error ok 436 correct key ok 437 correct value ok 438 no error ok 439 err argument is undefined ok 440 key argument is undefined ok 441 value argument is undefined ok 442 correct number of entries # setUp #2 # test full data collection ok 443 no error ok 444 correct number of entries ok 445 should be equivalent # test iterator with reverse=true ok 446 no error ok 447 correct number of entries ok 448 should be equivalent # test iterator with gte=0 ok 449 no error ok 450 correct number of entries ok 451 should be equivalent # test iterator with gte=50 ok 452 no error ok 453 correct number of entries ok 454 should be equivalent # test iterator with lte=50 and reverse=true ok 455 no error ok 456 correct number of entries ok 457 should be equivalent # test iterator with start being a midway key (49.5) ok 458 no error ok 459 correct number of entries ok 460 should be equivalent # test iterator with start being a midway key (49999) ok 461 no error ok 462 correct number of entries ok 463 should be equivalent # test iterator with start being a midway key and reverse=true ok 464 no error ok 465 correct number of entries ok 466 should be equivalent # test iterator with start being a midway key and reverse=true ok 467 no error ok 468 correct number of entries ok 469 should be equivalent # test iterator with start being a midway key and reverse=true ok 470 no error ok 471 correct number of entries ok 472 should be equivalent # test iterator with end=50 ok 473 no error ok 474 correct number of entries ok 475 should be equivalent # test iterator with end being a midway key (50.5) ok 476 no error ok 477 correct number of entries ok 478 should be equivalent # test iterator with end being a midway key (50555) ok 479 no error ok 480 correct number of entries ok 481 should be equivalent # test iterator with end being a midway key (50555) ok 482 no error ok 483 correct number of entries ok 484 should be equivalent # test iterator with end being a midway key and reverse=true ok 485 no error ok 486 correct number of entries ok 487 should be equivalent # test iterator with gt a midway key and reverse=true ok 488 no error ok 489 correct number of entries ok 490 should be equivalent # test iterator with gt a midway key and reverse=true ok 491 no error ok 492 correct number of entries ok 493 should be equivalent # test iterator with gt 50 key and reverse=true ok 494 no error ok 495 correct number of entries ok 496 should be equivalent # test iterator with end=0 ok 497 no error ok 498 correct number of entries # test iterator with end<0 ok 499 no error ok 500 correct number of entries # test iterator with start=30 and end=70 ok 501 no error ok 502 correct number of entries ok 503 should be equivalent # test iterator with start=30 and end=70 ok 504 no error ok 505 correct number of entries ok 506 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 507 no error ok 508 correct number of entries ok 509 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 510 no error ok 511 correct number of entries ok 512 should be equivalent # test iterator with limit=20 and start=20 ok 513 no error ok 514 correct number of entries ok 515 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 516 no error ok 517 correct number of entries ok 518 should be equivalent # test iterator with end after limit ok 519 no error ok 520 correct number of entries ok 521 should be equivalent # test iterator with end before limit ok 522 no error ok 523 correct number of entries ok 524 should be equivalent # test iterator with start after database end ok 525 no error ok 526 correct number of entries # test iterator with start after database end ok 527 no error ok 528 correct number of entries # test iterator with start after database end and reverse=true ok 529 no error ok 530 correct number of entries ok 531 should be equivalent # test iterator with start and end after database and and reverse=true ok 532 no error ok 533 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 534 no error ok 535 correct number of entries # test iterator with start as empty string ok 536 no error ok 537 correct number of entries ok 538 should be equivalent # test iterator with start as null ok 539 no error ok 540 correct number of entries ok 541 should be equivalent # test iterator with end as empty string ok 542 no error ok 543 correct number of entries ok 544 should be equivalent # test iterator with end as null ok 545 no error ok 546 correct number of entries ok 547 should be equivalent # tearDown ok 548 cleanup returned an error # setUp common ok 549 cleanup returned an error # setUp db ok 550 null # store native JS types with raw = true ok 551 no error ok 552 no error ok 553 no error ok 554 is boolean type ok 555 is truthy # test levelup .destroy w/ string ok 556 no error ok 557 no error ok 558 should have value ok 559 no error ok 560 no error ok 561 key is not there # test levelup .destroy w/ db instance ok 562 no error ok 563 no error ok 564 should have value ok 565 no error ok 566 no error ok 567 key is not there 1..567 # tests 567 # pass 563 # fail 4
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
2014-05-31 18:44:01
✓10.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
6.0
✓15.0
timeout waiting to hear back from safari/6.0
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok 324 correct value ok 325 no error ok 326 correct key ok 327 correct value ok 328 no error ok 329 correct key ok 330 correct value ok 331 no error ok 332 err argument is undefined ok 333 key argument is undefined ok 334 value argument is undefined ok 335 correct number of entries # setUp #2 # test full data collection ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # test iterator with reverse=true ok 339 no error ok 340 correct number of entries ok 341 should be equivalent # test iterator with start=0 ok 342 no error ok 343 correct number of entries ok 344 should be equivalent # test iterator with start=50 ok 345 no error ok 346 correct number of entries ok 347 should be equivalent # test iterator with start=50 and reverse=true ok 348 no error ok 349 correct number of entries ok 350 should be equivalent # test iterator with start being a midway key (49.5) ok 351 no error ok 352 correct number of entries ok 353 should be equivalent # test iterator with start being a midway key (49999) ok 354 no error ok 355 correct number of entries ok 356 should be equivalent # test iterator with start being a midway key and reverse=true ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with end=50 ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with end being a midway key (50.5) ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with end being a midway key (50555) ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with end being a midway key and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with end=0 ok 372 no error ok 373 correct number of entries # test iterator with start=30 and end=70 ok 374 no error ok 375 correct number of entries ok 376 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 377 no error ok 378 correct number of entries ok 379 should be equivalent # test iterator with limit=20 ok 380 no error ok 381 correct number of entries ok 382 should be equivalent # test iterator with limit=20 and start=20 ok 383 no error ok 384 correct number of entries ok 385 should be equivalent # test iterator with limit=20 and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 389 no error ok 390 correct number of entries ok 391 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 392 no error ok 393 correct number of entries ok 394 should be equivalent # test iterator with end after limit ok 395 no error ok 396 correct number of entries ok 397 should be equivalent # test iterator with end before limit ok 398 no error ok 399 correct number of entries ok 400 should be equivalent # test iterator with start after database end ok 401 no error ok 402 correct number of entries # test iterator with start after database end and reverse=true ok 403 no error ok 404 correct number of entries ok 405 should be equivalent # test iterator with start and end after database and and reverse=true ok 406 no error ok 407 correct number of entries # test iterator with start as empty string ok 408 no error ok 409 correct number of entries ok 410 should be equivalent # test iterator with start as null ok 411 no error ok 412 correct number of entries ok 413 should be equivalent # test iterator with end as empty string ok 414 no error ok 415 correct number of entries ok 416 should be equivalent # test iterator with end as null ok 417 no error ok 418 correct number of entries ok 419 should be equivalent # tearDown ok 420 cleanup returned an error # setUp common ok 421 cleanup returned an error # setUp db ok 422 null # test simple iterator() ok 423 no error ok 424 no error ok 425 correct key ok 426 correct value ok 427 no error ok 428 correct key ok 429 correct value ok 430 no error ok 431 correct key ok 432 correct value ok 433 no error ok 434 err argument is undefined ok 435 key argument is undefined ok 436 value argument is undefined ok 437 correct number of entries # setUp #2 # test full data collection ok 438 no error ok 439 correct number of entries ok 440 should be equivalent # test iterator with reverse=true ok 441 no error ok 442 correct number of entries ok 443 should be equivalent # test iterator with gte=0 ok 444 no error ok 445 correct number of entries ok 446 should be equivalent # test iterator with gte=50 ok 447 no error ok 448 correct number of entries ok 449 should be equivalent # test iterator with lte=50 and reverse=true ok 450 no error ok 451 correct number of entries ok 452 should be equivalent # test iterator with start being a midway key (49.5) ok 453 no error ok 454 correct number of entries ok 455 should be equivalent # test iterator with start being a midway key (49999) ok 456 no error ok 457 correct number of entries ok 458 should be equivalent # test iterator with start being a midway key and reverse=true ok 459 no error ok 460 correct number of entries ok 461 should be equivalent # test iterator with start being a midway key and reverse=true ok 462 no error ok 463 correct number of entries ok 464 should be equivalent # test iterator with start being a midway key and reverse=true ok 465 no error ok 466 correct number of entries ok 467 should be equivalent # test iterator with end=50 ok 468 no error ok 469 correct number of entries ok 470 should be equivalent # test iterator with end being a midway key (50.5) ok 471 no error ok 472 correct number of entries ok 473 should be equivalent # test iterator with end being a midway key (50555) ok 474 no error ok 475 correct number of entries ok 476 should be equivalent # test iterator with end being a midway key (50555) ok 477 no error ok 478 correct number of entries ok 479 should be equivalent # test iterator with end being a midway key and reverse=true ok 480 no error ok 481 correct number of entries ok 482 should be equivalent # test iterator with gt a midway key and reverse=true ok 483 no error ok 484 correct number of entries ok 485 should be equivalent # test iterator with gt a midway key and reverse=true ok 486 no error ok 487 correct number of entries ok 488 should be equivalent # test iterator with gt 50 key and reverse=true ok 489 no error ok 490 correct number of entries ok 491 should be equivalent # test iterator with end=0 ok 492 no error ok 493 correct number of entries # test iterator with end<0 ok 494 no error ok 495 correct number of entries # test iterator with start=30 and end=70 ok 496 no error ok 497 correct number of entries ok 498 should be equivalent # test iterator with start=30 and end=70 ok 499 no error ok 500 correct number of entries ok 501 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 502 no error ok 503 correct number of entries ok 504 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 505 no error ok 506 correct number of entries ok 507 should be equivalent # test iterator with limit=20 and start=20 ok 508 no error ok 509 correct number of entries ok 510 should be equivalent # test iterator with limit=20 and start=79 and reverse=true ok 511 no error ok 512 correct number of entries ok 513 should be equivalent # test iterator with end after limit ok 514 no error ok 515 correct number of entries ok 516 should be equivalent # test iterator with end before limit ok 517 no error ok 518 correct number of entries ok 519 should be equivalent # test iterator with start after database end ok 520 no error ok 521 correct number of entries # test iterator with start after database end ok 522 no error ok 523 correct number of entries # test iterator with start after database end and reverse=true ok 524 no error ok 525 correct number of entries ok 526 should be equivalent # test iterator with start and end after database and and reverse=true ok 527 no error ok 528 correct number of entries # test iterator with lt and gt after database and and reverse=true ok 529 no error ok 530 correct number of entries # test iterator with start as empty string ok 531 no error ok 532 correct number of entries ok 533 should be equivalent # test iterator with start as null ok 534 no error ok 535 correct number of entries ok 536 should be equivalent # test iterator with end as empty string ok 537 no error ok 538 correct number of entries ok 539 should be equivalent # test iterator with end as null ok 540 no error ok 541 correct number of entries ok 542 should be equivalent # tearDown ok 543 cleanup returned an error # setUp common ok 544 cleanup returned an error # setUp db ok 545 null # store native JS types with raw = true ok 546 no error ok 547 no error ok 548 no error ok 549 is boolean type ok 550 is truthy # test levelup .destroy w/ string ok 551 no error ok 552 no error ok 553 should have value ok 554 no error ok 555 no error ok 556 key is not there # test levelup .destroy w/ db instance ok 557 no error ok 558 no error ok 559 should have value ok 560 no error ok 561 no error ok 562 key is not there 1..562 # tests 562 # pass 562 # ok
TAP version 13 # test database creation no-arg throws ok 1 no-arg leveldown() throws # test database open no-arg throws ok 2 database object returned ok 3 open() function exists # test database open, no options ok 4 no error # test database open, options and callback ok 5 no error # setUp common ok 6 cleanup returned an error # setUp db ok 7 null # test argument-less put() throws ok 8 no-arg put() throws # test callback-less, 1-arg, put() throws ok 9 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 10 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 11 callback-less, 3-arg put() throws # test simple put() ok 12 no error ok 13 no error ok 14 should be equal # test object value put() ok 15 no error ok 16 no error ok 17 should be equal # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db ok 20 null # test argument-less del() throws ok 21 no-arg del() throws # test callback-less, 1-arg, del() throws ok 22 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 23 callback-less, 2-arg del() throws # test simple del() ok 24 no error ok 25 no error ok 26 entry propertly deleted ok 27 value is undefined ok 28 NotFound error # test del on non-existent key ok 29 should not error on delete # tearDown ok 30 cleanup returned an error # setUp common ok 31 cleanup returned an error # setUp db ok 32 null # test argument-less get() throws ok 33 no-arg get() throws # test callback-less, 1-arg, get() throws ok 34 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 35 callback-less, 2-arg get() throws # test simple get() ok 36 no error ok 37 no error ok 38 should not be string by default ok 39 should be equal ok 40 no error ok 41 should not be string by default ok 42 should be equal ok 43 no error ok 44 should be string if not buffer ok 45 should be equal # test simultaniously get() ok 46 should not error ok 47 should not error ok 48 should be equal ok 49 should not error ok 50 should be equal ok 51 should not error ok 52 should be equal ok 53 should not error ok 54 should be equal ok 55 should not error ok 56 should be equal ok 57 should not error ok 58 should be equal ok 59 should not error ok 60 should be equal ok 61 should not error ok 62 should be equal ok 63 should not error ok 64 should be equal ok 65 should not error ok 66 should be equal ok 67 should error ok 68 should have correct error message ok 69 value is undefined ok 70 should error ok 71 should have correct error message ok 72 value is undefined ok 73 should error ok 74 should have correct error message ok 75 value is undefined ok 76 should error ok 77 should have correct error message ok 78 value is undefined ok 79 should error ok 80 should have correct error message ok 81 value is undefined ok 82 should error ok 83 should have correct error message ok 84 value is undefined ok 85 should error ok 86 should have correct error message ok 87 value is undefined ok 88 should error ok 89 should have correct error message ok 90 value is undefined ok 91 should error ok 92 should have correct error message ok 93 value is undefined ok 94 should error ok 95 should have correct error message ok 96 value is undefined # tearDown ok 97 cleanup returned an error # setUp common ok 98 cleanup returned an error # setUp db ok 99 null # test get() with null key causes error ok 100 has error ok 101 (unnamed assert) ok 102 correct error message # test del() with null key causes error ok 103 has error ok 104 (unnamed assert) ok 105 correct error message # test put() with null key causes error ok 106 has error ok 107 (unnamed assert) ok 108 correct error message # test get() with undefined key causes error ok 109 has error ok 110 (unnamed assert) ok 111 correct error message # test del() with undefined key causes error ok 112 has error ok 113 (unnamed assert) ok 114 correct error message # test put() with undefined key causes error ok 115 has error ok 116 (unnamed assert) ok 117 correct error message # test get() with empty String key causes error ok 118 has error ok 119 (unnamed assert) ok 120 correct error message # test del() with empty String key causes error ok 121 has error ok 122 (unnamed assert) ok 123 correct error message # test put() with empty String key causes error ok 124 has error ok 125 (unnamed assert) ok 126 correct error message # test get() with empty Buffer key causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test del() with empty Buffer key causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty Buffer key causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test get() with empty Array key causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test del() with empty Array key causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put() with empty Array key causes error ok 142 has error ok 143 (unnamed assert) ok 144 correct error message # test put()/get()/del() with `false` value ok 145 no error ok 146 no error, has key/value for `foo false` ok 147 is a Buffer ok 148 should be equal ok 149 no error, deleted key/value for `foo false` ok 150 entry propertly deleted ok 151 should have correct error message ok 152 value is undefined # test put()/get()/del() with `0` value ok 153 no error ok 154 no error, has key/value for `foo 0` ok 155 is a Buffer ok 156 should be equal ok 157 no error, deleted key/value for `foo 0` ok 158 entry propertly deleted ok 159 should have correct error message ok 160 value is undefined # test put()/get()/del() with `NaN` value ok 161 no error ok 162 no error, has key/value for `foo NaN` ok 163 is a Buffer ok 164 should be equal ok 165 no error, deleted key/value for `foo NaN` ok 166 entry propertly deleted ok 167 should have correct error message ok 168 value is undefined # test put()/get()/del() with long String value ok 169 no error ok 170 no error, has key/value for `foo` ok 171 is a Buffer ok 172 should be equal ok 173 no error, deleted key/value for `foo` ok 174 entry propertly deleted ok 175 should have correct error message ok 176 value is undefined # test put()/get()/del() with Buffer value ok 177 no error ok 178 no error, has key/value for `foo` ok 179 is a Buffer ok 180 should be equal ok 181 no error, deleted key/value for `foo` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put()/get()/del() with Array key ok 185 no error ok 186 no error, has key/value for `1,2,3,4` ok 187 is a Buffer ok 188 should be equal ok 189 no error, deleted key/value for `1,2,3,4` ok 190 entry propertly deleted ok 191 should have correct error message ok 192 value is undefined # test put() with null value causes error ok 193 has error ok 194 (unnamed assert) ok 195 correct error message # test put() with undefined value causes error ok 196 has error ok 197 (unnamed assert) ok 198 correct error message # test put() with empty String value causes error ok 199 has error ok 200 (unnamed assert) ok 201 correct error message # test put() with empty Buffer value causes error ok 202 has error ok 203 (unnamed assert) ok 204 correct error message # test put() with empty Array value causes error ok 205 has error ok 206 (unnamed assert) ok 207 correct error message # test put()/get()/del() with `false` value ok 208 no error ok 209 no error, has key/value for `foo false` ok 210 is a Buffer ok 211 should be equal ok 212 no error, deleted key/value for `foo false` ok 213 entry propertly deleted ok 214 should have correct error message ok 215 value is undefined # test put()/get()/del() with `0` value ok 216 no error ok 217 no error, has key/value for `foo 0` ok 218 is a Buffer ok 219 should be equal ok 220 no error, deleted key/value for `foo 0` ok 221 entry propertly deleted ok 222 should have correct error message ok 223 value is undefined # test put()/get()/del() with `NaN` value ok 224 no error ok 225 no error, has key/value for `foo NaN` ok 226 is a Buffer ok 227 should be equal ok 228 no error, deleted key/value for `foo NaN` ok 229 entry propertly deleted ok 230 should have correct error message ok 231 value is undefined # test put()/get()/del() with long String value ok 232 no error ok 233 no error, has key/value for `foo` ok 234 is a Buffer ok 235 should be equal ok 236 no error, deleted key/value for `foo` ok 237 entry propertly deleted ok 238 should have correct error message ok 239 value is undefined # test put()/get()/del() with Buffer value ok 240 no error ok 241 no error, has key/value for `foo` ok 242 is a Buffer ok 243 should be equal ok 244 no error, deleted key/value for `foo` ok 245 entry propertly deleted ok 246 should have correct error message ok 247 value is undefined # test put()/get()/del() with Array key ok 248 no error ok 249 no error, has key/value for `1,2,3,4` ok 250 is a Buffer ok 251 should be equal ok 252 no error, deleted key/value for `1,2,3,4` ok 253 entry propertly deleted ok 254 should have correct error message ok 255 value is undefined # tearDown ok 256 cleanup returned an error # setUp common ok 257 cleanup returned an error # setUp db ok 258 null # test callback-less, 2-arg, batch() throws ok 259 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 260 correct error message # test batch() with null `value` ok 261 correct error message # test batch() with missing `key` ok 262 correct error message # test batch() with null `key` ok 263 correct error message # test batch() with missing `key` and `value` ok 264 correct error message # test batch() with empty array ok 265 no error # test simple batch() ok 266 no error ok 267 no error ok 268 should be equal # test multiple batch() ok 269 no error ok 270 no error ok 271 should be equal ok 272 entry not found ok 273 value is undefined ok 274 NotFound error ok 275 no error ok 276 should be equal # tearDown ok 277 cleanup returned an error # setUp common ok 278 cleanup returned an error # setUp db ok 279 null # test batch#put() with missing `value` ok 280 correct error message # test batch#put() with null `value` ok 281 correct error message # test batch#put() with missing `key` ok 282 correct error message # test batch#put() with null `key` ok 283 correct error message # test batch#put() with missing `key` and `value` ok 284 correct error message # test batch#del() with missing `key` ok 285 correct error message # test batch#del() with null `key` ok 286 correct error message # test batch#del() with null `key` ok 287 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 288 correct error message # test batch#put() after write() ok 289 correct error message # test batch#del() after write() ok 290 correct error message # test batch#clear() after write() ok 291 correct error message # test batch#write() after write() ok 292 correct error message # test basic batch ok 293 no error ok 294 no error ok 295 no error ok 296 correct number of entries ok 297 should be equivalent # tearDown ok 298 cleanup returned an error # test close() ok 299 no error ok 300 no-arg close() throws ok 301 non-callback close() throws ok 302 no error # setUp common ok 303 cleanup returned an error # setUp db ok 304 null # test argument-less iterator#next() throws ok 305 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 306 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 307 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 308 no error ok 309 returned error ok 310 correct error ok 311 should be equal # test iterator#next after iterator#end() callback with error ok 312 no error ok 313 returned error ok 314 correct error ok 315 correct message # test twice iterator#next() throws ok 316 returned error ok 317 correct error ok 318 should be equal ok 319 no error ok 320 no error # test simple iterator() ok 321 no error ok 322 no error ok 323 correct key ok