rvagg/node-memdown

2013-10-13 13:52:21
8.0
9.0
10.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
5.1
6.0
12.0
15.0
next
6.0
6.0
4.2
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 value is undefined ok 17 NotFound error # test del on non-existent key ok 18 should not error on delete # tearDown not ok 19 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 20 cleanup returned an error # setUp db not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 24 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 25 no error ok 26 no error ok 27 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/d10e13506fa974e1e0c8ffe28b22e2b6dc3fabaf.1381667425806/1381667426304.80957e96.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
not ok 1 Error: 'Uint8Array' is undefined on line 11383
idle timeout: 30 seconds with no output
2013-10-12 07:20:17
8.0
9.0
10.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
5.1
6.0
12.0
15.0
next
6.0
6.0
4.2
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 value is undefined ok 17 NotFound error # test del on non-existent key ok 18 should not error on delete # tearDown not ok 19 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 20 cleanup returned an error # setUp db not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 24 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 25 no error ok 26 no error ok 27 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
not ok 1 Error: Syntax error at line 2455 while loading: syntax error on line 2455
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" at: Test.assert [as _assert] (http://git.testling.com/work/rvagg/repos/5f2f565515ee4714e3a7f1a44d14eac87d1ceb53.1381557576370/1381557576847.e2e45df8.js:10449:13) ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 value is undefined ok 16 NotFound error # test del on non-existent key ok 17 should not error on delete # tearDown ok 18 cleanup returned an error # setUp common ok 19 cleanup returned an error # setUp db # test argument-less get() throws ok 20 no-arg get() throws # test callback-less, 1-arg, get() throws ok 21 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 22 callback-less, 2-arg get() throws # test simple get() ok 23 no error ok 24 no error ok 25 should not be string by default ok 26 should be equal ok 27 no error ok 28 should not be string by default ok 29 should be equal ok 30 no error ok 31 should be string if not buffer ok 32 should be equal # test simultaniously get() ok 33 should not error ok 34 should not error not ok 35 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 36 should not error not ok 37 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 38 should not error not ok 39 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 40 should not error not ok 41 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 42 should not error not ok 43 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 44 should not error not ok 45 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 46 should not error not ok 47 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 48 should not error not ok 49 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 50 should not error not ok 51 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 52 should not error not ok 53 should be equal --- operator: equal expected: "world" actual: "[object Uint8Array]" ... ok 54 should error ok 55 should have correct error message ok 56 value is undefined 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 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 # tearDown ok 84 cleanup returned an error # setUp common ok 85 cleanup returned an error # setUp db # test argument-less put() throws ok 86 no-arg put() throws # test callback-less, 1-arg, put() throws ok 87 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 88 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 89 callback-less, 3-arg put() throws # test simple put() ok 90 no error ok 91 no error ok 92 should be equal # test object value put() ok 93 no error ok 94 no error ok 95 should be equal # tearDown ok 96 cleanup returned an error # setUp common ok 97 cleanup returned an error # setUp db # test get() with null key causes error ok 98 has error ok 99 (unnamed assert) ok 100 correct error message # test del() with null key causes error ok 101 has error ok 102 (unnamed assert) ok 103 correct error message # test put() with null key causes error ok 104 has error ok 105 (unnamed assert) ok 106 correct error message # test get() with undefined key causes error ok 107 has error ok 108 (unnamed assert) ok 109 correct error message # test del() with undefined key causes error ok 110 has error ok 111 (unnamed assert) ok 112 correct error message # test put() with undefined key causes error ok 113 has error ok 114 (unnamed assert) ok 115 correct error message # test get() with empty String key causes error ok 116 has error ok 117 (unnamed assert) ok 118 correct error message # test del() with empty String key causes error ok 119 has error ok 120 (unnamed assert) ok 121 correct error message # test put() with empty String key causes error ok 122 has error ok 123 (unnamed assert) ok 124 correct error message # test get() with empty Buffer key causes error ok 125 has error ok 126 (unnamed assert) ok 127 correct error message # test del() with empty Buffer key causes error ok 128 has error ok 129 (unnamed assert) ok 130 correct error message # test put() with empty Buffer key causes error ok 131 has error ok 132 (unnamed assert) ok 133 correct error message # test get() with empty Array key causes error ok 134 has error ok 135 (unnamed assert) ok 136 correct error message # test del() with empty Array key causes error ok 137 has error ok 138 (unnamed assert) ok 139 correct error message # test put() with empty Array key causes error ok 140 has error ok 141 (unnamed assert) ok 142 correct error message # test put()/get()/del() with `false` value ok 143 no error ok 144 no error, has key/value for `foo false` ok 145 should be equal ok 146 no error, deleted key/value for `foo false` ok 147 entry propertly deleted ok 148 should have correct error message ok 149 value is undefined # test put()/get()/del() with `0` value ok 150 no error ok 151 no error, has key/value for `foo 0` ok 152 should be equal ok 153 no error, deleted key/value for `foo 0` ok 154 entry propertly deleted ok 155 should have correct error message ok 156 value is undefined # test put()/get()/del() with `NaN` value ok 157 no error ok 158 no error, has key/value for `foo NaN` ok 159 should be equal ok 160 no error, deleted key/value for `foo NaN` ok 161 entry propertly deleted ok 162 should have correct error message ok 163 value is undefined # test put()/get()/del() with long String value ok 164 no error ok 165 no error, has key/value for `foo` ok 166 should be equal ok 167 no error, deleted key/value for `foo` ok 168 entry propertly deleted ok 169 should have correct error message ok 170 value is undefined # test put()/get()/del() with Buffer value ok 171 no error ok 172 no error, has key/value for `foo` ok 173 should be equal ok 174 no error, deleted key/value for `foo` ok 175 entry propertly deleted ok 176 should have correct error message ok 177 value is undefined # test put()/get()/del() with Array key ok 178 no error ok 179 no error, has key/value for `1,2,3,4` ok 180 should be equal ok 181 no error, deleted key/value for `1,2,3,4` ok 182 entry propertly deleted ok 183 should have correct error message ok 184 value is undefined # test put() with null value causes error ok 185 has error ok 186 (unnamed assert) ok 187 correct error message # test put() with undefined value causes error ok 188 has error ok 189 (unnamed assert) ok 190 correct error message # test put() with empty String value causes error ok 191 has error ok 192 (unnamed assert) ok 193 correct error message # test put() with empty Buffer value causes error ok 194 has error ok 195 (unnamed assert) ok 196 correct error message # test put() with empty Array value causes error ok 197 has error ok 198 (unnamed assert) ok 199 correct error message # test put()/get()/del() with `false` value ok 200 no error ok 201 no error, has key/value for `foo false` ok 202 should be equal ok 203 no error, deleted key/value for `foo false` ok 204 entry propertly deleted ok 205 should have correct error message ok 206 value is undefined # test put()/get()/del() with `0` value ok 207 no error ok 208 no error, has key/value for `foo 0` ok 209 should be equal ok 210 no error, deleted key/value for `foo 0` ok 211 entry propertly deleted ok 212 should have correct error message ok 213 value is undefined # test put()/get()/del() with `NaN` value ok 214 no error ok 215 no error, has key/value for `foo NaN` ok 216 should be equal ok 217 no error, deleted key/value for `foo NaN` ok 218 entry propertly deleted ok 219 should have correct error message ok 220 value is undefined # test put()/get()/del() with long String value ok 221 no error ok 222 no error, has key/value for `foo` ok 223 should be equal ok 224 no error, deleted key/value for `foo` ok 225 entry propertly deleted ok 226 should have correct error message ok 227 value is undefined # test put()/get()/del() with Buffer value ok 228 no error ok 229 no error, has key/value for `foo` ok 230 should be equal ok 231 no error, deleted key/value for `foo` ok 232 entry propertly deleted ok 233 should have correct error message ok 234 value is undefined # test put()/get()/del() with Array key ok 235 no error ok 236 no error, has key/value for `1,2,3,4` ok 237 should be equal ok 238 no error, deleted key/value for `1,2,3,4` ok 239 entry propertly deleted ok 240 should have correct error message ok 241 value is undefined # tearDown ok 242 cleanup returned an error # setUp common ok 243 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 244 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 245 correct error message # test batch() with null `value` ok 246 correct error message # test batch() with missing `key` ok 247 correct error message # test batch() with null `key` ok 248 correct error message # test batch() with missing `key` and `value` ok 249 correct error message # test batch() with empty array ok 250 no error # test simple batch() ok 251 no error ok 252 no error ok 253 should be equal # test multiple batch() ok 254 no error ok 255 no error ok 256 should be equal ok 257 entry not found ok 258 value is undefined ok 259 NotFound error ok 260 no error ok 261 should be equal # tearDown ok 262 cleanup returned an error # setUp common ok 263 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 264 correct error message # test batch#put() with null `value` ok 265 correct error message # test batch#put() with missing `key` ok 266 correct error message # test batch#put() with null `key` ok 267 correct error message # test batch#put() with missing `key` and `value` ok 268 correct error message # test batch#del() with missing `key` ok 269 correct error message # test batch#del() with null `key` ok 270 correct error message # test batch#del() with null `key` ok 271 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 272 correct error message # test batch#put() after write() ok 273 correct error message # test batch#del() after write() ok 274 correct error message # test batch#clear() after write() ok 275 correct error message # test batch#write() after write() ok 276 correct error message # test basic batch ok 277 no error ok 278 no error ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # tearDown ok 282 cleanup returned an error # test close() ok 283 no error ok 284 no-arg close() throws ok 285 non-callback close() throws ok 286 no error # setUp common ok 287 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 288 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 289 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 290 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 291 no error ok 292 returned error ok 293 correct error ok 294 should be equal # test iterator#next after iterator#end() callback with error ok 295 no error ok 296 returned error ok 297 correct error ok 298 correct message # test twice iterator#next() throws ok 299 returned error ok 300 correct error ok 301 should be equal # test simple iterator() ok 302 no error ok 303 no error ok 304 no error ok 305 no error ok 306 correct key ok 307 correct value ok 308 no error ok 309 correct key ok 310 correct value ok 311 no error ok 312 correct key ok 313 correct value ok 314 no error ok 315 err argument is undefined ok 316 key argument is undefined ok 317 value argument is undefined ok 318 correct number of entries # setUp #2 # test full data collection ok 319 no error ok 320 correct number of entries ok 321 should be equivalent # test iterator with reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start=0 ok 325 no error ok 326 correct number of entries ok 327 should be equivalent # test iterator with start=50 ok 328 no error ok 329 correct number of entries ok 330 should be equivalent # test iterator with start=50 and reverse=true ok 331 no error ok 332 correct number of entries ok 333 should be equivalent # test iterator with start being a midway key (49.5) ok 334 no error ok 335 correct number of entries ok 336 should be equivalent # test iterator with start being a midway key (49999) ok 337 no error ok 338 correct number of entries ok 339 should be equivalent # test iterator with start being a midway key and reverse=true ok 340 no error ok 341 correct number of entries ok 342 should be equivalent # test iterator with end=50 ok 343 no error ok 344 correct number of entries ok 345 should be equivalent # test iterator with end being a midway key (50.5) ok 346 no error ok 347 correct number of entries ok 348 should be equivalent # test iterator with end being a midway key (50555) ok 349 no error ok 350 correct number of entries ok 351 should be equivalent # test iterator with end being a midway key and reverse=true ok 352 no error ok 353 correct number of entries ok 354 should be equivalent # test iterator with end=0 ok 355 no error ok 356 correct number of entries # test iterator with start=30 and end=70 ok 357 no error ok 358 correct number of entries ok 359 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 360 no error ok 361 correct number of entries ok 362 should be equivalent # test iterator with limit=20 ok 363 no error ok 364 correct number of entries ok 365 should be equivalent # test iterator with limit=20 and start=20 ok 366 no error ok 367 correct number of entries ok 368 should be equivalent # test iterator with limit=20 and reverse=true ok 369 no error ok 370 correct number of entries ok 371 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 372 no error ok 373 correct number of entries ok 374 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 375 no error ok 376 correct number of entries ok 377 should be equivalent # test iterator with end after limit ok 378 no error ok 379 correct number of entries ok 380 should be equivalent # test iterator with end before limit ok 381 no error ok 382 correct number of entries ok 383 should be equivalent # test iterator with start after database end ok 384 no error ok 385 correct number of entries # test iterator with start after database end and reverse=true ok 386 no error ok 387 correct number of entries ok 388 should be equivalent # test iterator with start and end after database and and reverse=true ok 389 no error ok 390 correct number of entries # test iterator with start as empty string ok 391 no error ok 392 correct number of entries ok 393 should be equivalent # test iterator with start as null ok 394 no error ok 395 correct number of entries ok 396 should be equivalent # test iterator with end as empty string ok 397 no error ok 398 correct number of entries ok 399 should be equivalent # test iterator with end as null ok 400 no error ok 401 correct number of entries ok 402 should be equivalent # tearDown ok 403 cleanup returned an error # unsorted entry, sorted iterator ok 404 no error ok 405 correct number of entries ok 406 should be equivalent 1..406 # tests 406 # pass 396 # fail 10
not ok 1 Error: 'Uint8Array' is undefined on line 11383
idle timeout: 30 seconds with no output
2013-08-03 03:25:56
8.0
9.0
✓10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
✓6.0
6.0
4.2
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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 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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error ok 3 open() function exists # test database open no-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: expected: 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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws ok 7 no error not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error ... actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- expected: actual: {"message":"'undefined' is not a function"} ... operator: error expected: # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function actual: {"message":"'undefined' is not a function"} --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- operator: error ... # test simple del() expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 24 no error ok 25 no error ok 26 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: 'Uint8Array' is undefined on line 8738
idle timeout: 30 seconds with no output
2013-08-02 14:34:15
8.0
9.0
✓10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
6.0
6.0
4.2
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 TAP version 13 # test database creation no-arg throws # test database open no-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} 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-arg throws ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 24 no error ok 25 no error ok 26 should not be string by default # test callback-less, 1-arg, del() throws not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply' not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: 'Uint8Array' is undefined on line 8738
idle timeout: 30 seconds with no output
2013-08-02 14:25:15
8.0
9.0
✓10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
6.0
6.0
4.2
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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: 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 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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted operator: error expected: actual: {"message":"'undefined' is not a function"} ok 16 returned NotFound # test del on non-existent key ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function # test database open no-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} --- operator: error expected: --- operator: error actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 19 cleanup returned an error # setUp db --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function ... --- not ok 20 TypeError: 'undefined' is not a function # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error operator: error --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 23 TypeError: 'undefined' is not a function actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 22 TypeError: 'undefined' is not a function --- # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 24 no error operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- operator: error ok 25 no error ok 26 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: 'Uint8Array' is undefined on line 8738
idle timeout: 30 seconds with no output
2013-08-02 14:15:34
8.0
9.0
10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
6.0
6.0
4.2
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 TAP version 13 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 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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} # test database open no-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # test database open no-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: ... actual: {"message":"'undefined' is not a function"} # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function ... # test simple del() ok 13 no error ok 14 no error --- operator: error expected: ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error ... expected: # test simple del() ok 13 no error actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function ok 14 no error ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} --- ... # test callback-less, 1-arg, get() throws operator: error expected: actual: {"message":"'undefined' is not a function"} not ok 22 TypeError: 'undefined' is not a function --- operator: error ... # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws operator: error not ok 23 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 24 no error ok 25 no error ok 26 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: Syntax error on line 1885
not ok 1 Error: Syntax error on line 1885
idle timeout: 30 seconds with no output
2013-08-02 14:16:28
8.0
9.0
10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
6.0
6.0
4.2
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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... 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-arg throws # test simple del() not ok 4 TypeError: 'undefined' is not a function --- ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- not ok 21 TypeError: 'undefined' is not a function operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... not ok 23 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- ... # test simple get() ok 24 no error ok 25 no error ok 26 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: Syntax error on line 1885
not ok 1 Error: Syntax error on line 1885
idle timeout: 30 seconds with no output
2013-08-02 14:32:19
8.0
9.0
10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
6.0
6.0
4.2
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-arg throws not ok 4 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, open() throws not ok 5 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db not ok 9 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less del() throws not ok 10 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, del() throws not ok 11 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, del() throws not ok 12 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple del() ok 13 no error ok 14 no error ok 15 entry propertly deleted ok 16 returned NotFound # test del on non-existent key ok 17 should not error on delete # tearDown not ok 18 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # setUp common ok 19 cleanup returned an error # setUp db not ok 20 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test argument-less get() throws not ok 21 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 1-arg, get() throws not ok 22 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test callback-less, 3-arg, get() throws not ok 23 TypeError: 'undefined' is not a function --- operator: error expected: actual: {"message":"'undefined' is not a function"} ... # test simple get() ok 24 no error ok 25 no error ok 26 should not be string by default not ok 1 Error: TypeError: '[object Uint16Array]' is not a valid argument for 'Function.prototype.apply'
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
firefox/nightly
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common ok 8 cleanup returned an error # setUp db # test argument-less del() throws ok 9 no-arg del() throws # test callback-less, 1-arg, del() throws ok 10 callback-less, 1-arg del() throws # test callback-less, 3-arg, del() throws ok 11 callback-less, 2-arg del() throws # test simple del() ok 12 no error ok 13 no error ok 14 entry propertly deleted ok 15 returned NotFound # test del on non-existent key ok 16 should not error on delete # tearDown ok 17 cleanup returned an error # setUp common ok 18 cleanup returned an error # setUp db # test argument-less get() throws ok 19 no-arg get() throws # test callback-less, 1-arg, get() throws ok 20 callback-less, 1-arg get() throws # test callback-less, 3-arg, get() throws ok 21 callback-less, 2-arg get() throws # test simple get() ok 22 no error ok 23 no error ok 24 should not be string by default ok 25 should be equal ok 26 no error ok 27 should not be string by default ok 28 should be equal ok 29 no error ok 30 should be string if not buffer ok 31 should be equal # tearDown ok 32 cleanup returned an error # setUp common ok 33 cleanup returned an error # setUp db # test argument-less put() throws ok 34 no-arg put() throws # test callback-less, 1-arg, put() throws ok 35 callback-less, 1-arg put() throws # test callback-less, 2-arg, put() throws ok 36 callback-less, 2-arg put() throws # test callback-less, 3-arg, put() throws ok 37 callback-less, 3-arg put() throws # test simple put() ok 38 no error ok 39 no error ok 40 should be equal # test object value put() ok 41 no error ok 42 no error ok 43 should be equal # tearDown ok 44 cleanup returned an error # setUp common ok 45 cleanup returned an error # setUp db # test get() with null key causes error ok 46 has error ok 47 (unnamed assert) ok 48 correct error message # test del() with null key causes error ok 49 has error ok 50 (unnamed assert) ok 51 correct error message # test put() with null key causes error ok 52 has error ok 53 (unnamed assert) ok 54 correct error message # test get() with undefined key causes error ok 55 has error ok 56 (unnamed assert) ok 57 correct error message # test del() with undefined key causes error ok 58 has error ok 59 (unnamed assert) ok 60 correct error message # test put() with undefined key causes error ok 61 has error ok 62 (unnamed assert) ok 63 correct error message # test get() with empty String key causes error ok 64 has error ok 65 (unnamed assert) ok 66 correct error message # test del() with empty String key causes error ok 67 has error ok 68 (unnamed assert) ok 69 correct error message # test put() with empty String key causes error ok 70 has error ok 71 (unnamed assert) ok 72 correct error message # test get() with empty Buffer key causes error ok 73 has error ok 74 (unnamed assert) ok 75 correct error message # test del() with empty Buffer key causes error ok 76 has error ok 77 (unnamed assert) ok 78 correct error message # test put() with empty Buffer key causes error ok 79 has error ok 80 (unnamed assert) ok 81 correct error message # test get() with empty Array key causes error ok 82 has error ok 83 (unnamed assert) ok 84 correct error message # test del() with empty Array key causes error ok 85 has error ok 86 (unnamed assert) ok 87 correct error message # test put() with empty Array key causes error ok 88 has error ok 89 (unnamed assert) ok 90 correct error message # test put()/get()/del() with `false` value ok 91 no error ok 92 no error, has key/value for `foo false` ok 93 should be equal ok 94 no error, deleted key/value for `foo false` ok 95 entry propertly deleted ok 96 is NotFound # test put()/get()/del() with `0` value ok 97 no error ok 98 no error, has key/value for `foo 0` ok 99 should be equal ok 100 no error, deleted key/value for `foo 0` ok 101 entry propertly deleted ok 102 is NotFound # test put()/get()/del() with `NaN` value ok 103 no error ok 104 no error, has key/value for `foo NaN` ok 105 should be equal ok 106 no error, deleted key/value for `foo NaN` ok 107 entry propertly deleted ok 108 is NotFound # test put()/get()/del() with long String value ok 109 no error ok 110 no error, has key/value for `foo` ok 111 should be equal ok 112 no error, deleted key/value for `foo` ok 113 entry propertly deleted ok 114 is NotFound # test put()/get()/del() with Buffer value ok 115 no error ok 116 no error, has key/value for `foo` ok 117 should be equal ok 118 no error, deleted key/value for `foo` ok 119 entry propertly deleted ok 120 is NotFound # test put()/get()/del() with Array key ok 121 no error ok 122 no error, has key/value for `1,2,3,4` ok 123 should be equal ok 124 no error, deleted key/value for `1,2,3,4` ok 125 entry propertly deleted ok 126 is NotFound # test put() with null value causes error ok 127 has error ok 128 (unnamed assert) ok 129 correct error message # test put() with undefined value causes error ok 130 has error ok 131 (unnamed assert) ok 132 correct error message # test put() with empty String value causes error ok 133 has error ok 134 (unnamed assert) ok 135 correct error message # test put() with empty Buffer value causes error ok 136 has error ok 137 (unnamed assert) ok 138 correct error message # test put() with empty Array value causes error ok 139 has error ok 140 (unnamed assert) ok 141 correct error message # test put()/get()/del() with `false` value ok 142 no error ok 143 no error, has key/value for `foo false` ok 144 should be equal ok 145 no error, deleted key/value for `foo false` ok 146 entry propertly deleted ok 147 is NotFound # test put()/get()/del() with `0` value ok 148 no error ok 149 no error, has key/value for `foo 0` ok 150 should be equal ok 151 no error, deleted key/value for `foo 0` ok 152 entry propertly deleted ok 153 is NotFound # test put()/get()/del() with `NaN` value ok 154 no error ok 155 no error, has key/value for `foo NaN` ok 156 should be equal ok 157 no error, deleted key/value for `foo NaN` ok 158 entry propertly deleted ok 159 is NotFound # test put()/get()/del() with long String value ok 160 no error ok 161 no error, has key/value for `foo` ok 162 should be equal ok 163 no error, deleted key/value for `foo` ok 164 entry propertly deleted ok 165 is NotFound # test put()/get()/del() with Buffer value ok 166 no error ok 167 no error, has key/value for `foo` ok 168 should be equal ok 169 no error, deleted key/value for `foo` ok 170 entry propertly deleted ok 171 is NotFound # test put()/get()/del() with Array key ok 172 no error ok 173 no error, has key/value for `1,2,3,4` ok 174 should be equal ok 175 no error, deleted key/value for `1,2,3,4` ok 176 entry propertly deleted ok 177 is NotFound # tearDown ok 178 cleanup returned an error # setUp common ok 179 cleanup returned an error # setUp db # test callback-less, 2-arg, batch() throws ok 180 callback-less, 2-arg batch() throws # test batch() with missing `value` ok 181 correct error message # test batch() with null `value` ok 182 correct error message # test batch() with missing `key` ok 183 correct error message # test batch() with null `key` ok 184 correct error message # test batch() with missing `key` and `value` ok 185 correct error message # test batch() with empty array ok 186 no error # test simple batch() ok 187 no error ok 188 no error ok 189 should be equal # test multiple batch() ok 190 no error ok 191 no error ok 192 should be equal ok 193 entry not found ok 194 value not returned ok 195 NotFound error ok 196 no error ok 197 should be equal # tearDown ok 198 cleanup returned an error # setUp common ok 199 cleanup returned an error # setUp db # test batch#put() with missing `value` ok 200 correct error message # test batch#put() with null `value` ok 201 correct error message # test batch#put() with missing `key` ok 202 correct error message # test batch#put() with null `key` ok 203 correct error message # test batch#put() with missing `key` and `value` ok 204 correct error message # test batch#del() with missing `key` ok 205 correct error message # test batch#del() with null `key` ok 206 correct error message # test batch#del() with null `key` ok 207 correct error message # test batch#clear() doesn't throw # test batch#write() with no callback ok 208 correct error message # test batch#put() after write() ok 209 correct error message # test batch#del() after write() ok 210 correct error message # test batch#clear() after write() ok 211 correct error message # test batch#write() after write() ok 212 correct error message # test basic batch ok 213 no error ok 214 no error ok 215 no error ok 216 correct number of entries ok 217 should be equivalent # tearDown ok 218 cleanup returned an error # test close() ok 219 no error ok 220 no-arg close() throws ok 221 non-callback close() throws ok 222 no error # setUp common ok 223 cleanup returned an error # setUp db # test argument-less iterator#next() throws ok 224 no-arg iterator#next() throws # test argument-less iterator#end() after next() throws ok 225 no-arg iterator#end() throws # test argument-less iterator#end() throws ok 226 no-arg iterator#end() throws # test twice iterator#end() callback with error ok 227 no error ok 228 returned error ok 229 correct error ok 230 should be equal # test iterator#next after iterator#end() callback with error ok 231 no error ok 232 returned error ok 233 correct error ok 234 correct message # test twice iterator#next() throws ok 235 returned error ok 236 correct error ok 237 should be equal # test simple iterator() ok 238 no error ok 239 no error ok 240 no error ok 241 no error ok 242 correct key ok 243 correct value ok 244 no error ok 245 correct key ok 246 correct value ok 247 no error ok 248 correct key ok 249 correct value ok 250 no error ok 251 err argument is undefined ok 252 key argument is undefined ok 253 value argument is undefined ok 254 correct number of entries # setUp #2 # test full data collection ok 255 no error ok 256 correct number of entries ok 257 should be equivalent # test iterator with reverse=true ok 258 no error ok 259 correct number of entries ok 260 should be equivalent # test iterator with start=0 ok 261 no error ok 262 correct number of entries ok 263 should be equivalent # test iterator with start=50 ok 264 no error ok 265 correct number of entries ok 266 should be equivalent # test iterator with start=50 and reverse=true ok 267 no error ok 268 correct number of entries ok 269 should be equivalent # test iterator with start being a midway key (49.5) ok 270 no error ok 271 correct number of entries ok 272 should be equivalent # test iterator with start being a midway key (49999) ok 273 no error ok 274 correct number of entries ok 275 should be equivalent # test iterator with start being a midway key and reverse=true ok 276 no error ok 277 correct number of entries ok 278 should be equivalent # test iterator with end=50 ok 279 no error ok 280 correct number of entries ok 281 should be equivalent # test iterator with end being a midway key (50.5) ok 282 no error ok 283 correct number of entries ok 284 should be equivalent # test iterator with end being a midway key (50555) ok 285 no error ok 286 correct number of entries ok 287 should be equivalent # test iterator with end being a midway key and reverse=true ok 288 no error ok 289 correct number of entries ok 290 should be equivalent # test iterator with end=0 ok 291 no error ok 292 correct number of entries # test iterator with start=30 and end=70 ok 293 no error ok 294 correct number of entries ok 295 should be equivalent # test iterator with start=30 and end=70 and reverse=true ok 296 no error ok 297 correct number of entries ok 298 should be equivalent # test iterator with limit=20 ok 299 no error ok 300 correct number of entries ok 301 should be equivalent # test iterator with limit=20 and start=20 ok 302 no error ok 303 correct number of entries ok 304 should be equivalent # test iterator with limit=20 and reverse=true ok 305 no error ok 306 correct number of entries ok 307 should be equivalent # test iterator with limit=20 and start=20 and reverse=true ok 308 no error ok 309 correct number of entries ok 310 should be equivalent # test iterator with limit=-1 should iterate over whole database ok 311 no error ok 312 correct number of entries ok 313 should be equivalent # test iterator with end after limit ok 314 no error ok 315 correct number of entries ok 316 should be equivalent # test iterator with end before limit ok 317 no error ok 318 correct number of entries ok 319 should be equivalent # test iterator with start after database end ok 320 no error ok 321 correct number of entries # test iterator with start after database end and reverse=true ok 322 no error ok 323 correct number of entries ok 324 should be equivalent # test iterator with start and end after database and and reverse=true ok 325 no error ok 326 correct number of entries # test iterator with start as empty string ok 327 no error ok 328 correct number of entries ok 329 should be equivalent # test iterator with start as null ok 330 no error ok 331 correct number of entries ok 332 should be equivalent # test iterator with end as empty string ok 333 no error ok 334 correct number of entries ok 335 should be equivalent # test iterator with end as null ok 336 no error ok 337 correct number of entries ok 338 should be equivalent # tearDown ok 339 cleanup returned an error # unsorted entry, sorted iterator ok 340 no error ok 341 correct number of entries ok 342 should be equivalent 1..342 # tests 342 # pass 342 # ok
not ok 1 Error: Syntax error on line 1885
not ok 1 Error: Syntax error on line 1885
idle timeout: 30 seconds with no output
2013-08-02 13:29:11
8.0
9.0
10.0
22.0
23.0
24.0
25.0
canary
26.0
27.0
28.0
29.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
5.1
6.0
12.0
next
15.0
6.0
6.0
4.2
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common 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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common
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-arg throws ok 4 no-arg open() throws # test callback-less, 1-arg, open() throws ok 5 callback-less, 1-arg open() throws # test database open, no options ok 6 no error # test database open, options and callback ok 7 no error # setUp common