2014-12-16 03:15:29 +08:00
|
|
|
"use strict";
|
2014-02-19 00:51:25 +08:00
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
var Driver = require("../driver"),
|
|
|
|
Utils = require("../utils");
|
2014-05-07 09:24:43 +08:00
|
|
|
|
2015-06-12 03:16:43 +08:00
|
|
|
var TestDriver = module.exports = function TestDriver() {
|
2014-05-07 09:56:13 +08:00
|
|
|
TestDriver.__super__.constructor.apply(this, arguments);
|
|
|
|
};
|
2014-02-19 00:51:25 +08:00
|
|
|
|
2014-06-06 03:11:37 +08:00
|
|
|
Utils.subclass(TestDriver, Driver);
|
2014-02-19 00:51:25 +08:00
|
|
|
|
2016-07-27 01:19:43 +08:00
|
|
|
TestDriver.prototype.start = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
|
|
|
TestDriver.prototype.halt = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
TestDriver.drivers = ["test"];
|
2014-05-07 09:56:13 +08:00
|
|
|
TestDriver.driver = function(opts) { return new TestDriver(opts); };
|