cylon/lib/test/test-driver.js

22 lines
477 B
JavaScript
Raw Normal View History

2014-12-16 03:15:29 +08:00
"use strict";
2014-12-16 03:15:29 +08:00
var Driver = require("../driver"),
Utils = require("../utils");
2014-05-07 09:24:43 +08:00
var TestDriver = module.exports = function TestDriver() {
TestDriver.__super__.constructor.apply(this, arguments);
};
Utils.subclass(TestDriver, Driver);
TestDriver.prototype.start = function(callback) {
callback();
};
TestDriver.prototype.halt = function(callback) {
callback();
};
2014-12-16 03:15:29 +08:00
TestDriver.drivers = ["test"];
TestDriver.driver = function(opts) { return new TestDriver(opts); };