smartlog-destination-devtools/.cache/5b/c2dfcf731fde58368e878edbe37f4e.json

1 line
9.0 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptest.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/tapbundle.classes.taptest.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/package.json","includedInParent":true,"mtime":1542063791802},{"name":"./tapbundle.plugins","loc":{"line":11,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptest.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.js"},{"name":"./tapbundle.classes.taptools","loc":{"line":12,"column":45},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptest.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptools.js"},{"name":"@pushrocks/early","loc":{"line":14,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptest.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/early/dist/index.js"}],"generated":{"js":"\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst plugins = require(\"./tapbundle.plugins\");\nconst tapbundle_classes_taptools_1 = require(\"./tapbundle.classes.taptools\");\n// imported interfaces\nconst early_1 = require(\"@pushrocks/early\");\nclass TapTest {\n /**\n * constructor\n */\n constructor(optionsArg) {\n this.testDeferred = plugins.smartpromise.defer();\n this.testPromise = this.testDeferred.promise;\n this.description = optionsArg.description;\n this.hrtMeasurement = new early_1.HrtMeasurement();\n this.parallel = optionsArg.parallel;\n this.status = 'pending';\n this.tapTools = new tapbundle_classes_taptools_1.TapTools(this);\n this.testFunction = optionsArg.testFunction;\n }\n /**\n * run the test\n */\n run(testKeyArg) {\n return __awaiter(this, void 0, void 0, function* () {\n this.hrtMeasurement.start();\n this.testKey = testKeyArg;\n let testNumber = testKeyArg + 1;\n try {\n yield this.testFunction(this.tapTools);\n if (this.status === 'timeout') {\n throw new Error('Test succeeded, but timed out...');\n }\n this.hrtMeasurement.stop();\n console.log(`ok ${testNumber} - ${this.description} # time=${this.hrtMeasurement.milliSeconds}ms`);\n this.status = 'success';\n this.testDeferred.resolve(this);\n }\n catch (err) {\n this.hrtMeasurement.stop();\n console.log(`not ok ${testNumber} - ${this.description} # time=${this.hrtMeasurement.milliSeconds}ms`);\n this.testDeferred.resolve(this);\n // if the t