-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.js
34 lines (21 loc) · 1.44 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var test = require('tap').test
, testCommon = require('./testCommon')
, MysqlDOWN = require('./mysqldown')
, testBuffer = require('fs').readFileSync(require('path').join(__dirname, 'testdata.bin'))
, factory = function (location) {
return new MysqlDOWN(location)
}
/*** compatibility with basic LevelDOWN API ***/
require('abstract-leveldown/abstract/leveldown-test').args(factory, test, testCommon)
require('abstract-leveldown/abstract/open-test').args(factory, test, testCommon)
require('abstract-leveldown/abstract/open-test').open(factory, test, testCommon)
require('abstract-leveldown/abstract/put-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/del-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/get-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/put-get-del-test').all(factory, test, testCommon, testBuffer)
require('abstract-leveldown/abstract/iterator-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/batch-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/chained-batch-test').all(factory, test, testCommon)
require('abstract-leveldown/abstract/close-test').close(factory, test, testCommon)
// require('abstract-leveldown/abstract/approximate-size-test').setUp(factory, test, testCommon)
// require('abstract-leveldown/abstract/approximate-size-test').args(factory, test, testCommon)