smartlog-destination-devtools/.cache/d7/399722e8454912b24321f3cf5b715c.json

1 line
5.7 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptools.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/tapbundle.classes.taptools.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.taptools.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.plugins.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\");\nclass TapTools {\n constructor(TapTestArg) {\n this._tapTest = TapTestArg;\n }\n /**\n * allow failure\n */\n allowFailure() {\n this._tapTest.failureAllowed = true;\n }\n /**\n * async/await delay method\n */\n delayFor(timeMilliArg) {\n return __awaiter(this, void 0, void 0, function* () {\n yield plugins.smartdelay.delayFor(timeMilliArg);\n });\n }\n delayForRandom(timeMilliMinArg, timeMilliMaxArg) {\n return __awaiter(this, void 0, void 0, function* () {\n yield plugins.smartdelay.delayForRandom(timeMilliMinArg, timeMilliMaxArg);\n });\n }\n timeout(timeMilliArg) {\n return __awaiter(this, void 0, void 0, function* () {\n let timeout = new plugins.smartdelay.Timeout(timeMilliArg);\n timeout.makeUnrefed();\n yield timeout.promise;\n if (this._tapTest.status === 'pending') {\n this._tapTest.status = 'timeout';\n }\n });\n }\n checkIterationLeak(iterationfuncArg) {\n return __awaiter(this, void 0, void 0, function* () {\n yield plugins.leakage.iterate.async(iterationfuncArg);\n });\n }\n returnError(throwingFuncArg) {\n return __awaiter(this, void 0, void 0, function* () {\n let funcErr;\n try {\n yield throwingFuncArg();\n }\n catch (err) {\n funcErr = err;\n }\n return funcErr;\n });\n }\n}\nexports.TapTools = TapTools;\n","map":{"version":3,"file":"tapbundle.classes.taptools.js","sourceRoot":"","sources":["../ts/tapbundle.classes.taptools.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,+CAA+C;AAO/C,MAAa,QAAQ;IAMnB,YAAY,UAAU;QACpB,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,YAAY;QACV,IAAI,CAAC,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC;IACtC,CAAC;IAED;;OAEG;IACG,QAAQ,CAAC,YAAY;;YACzB,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC;KAAA;IAEK,cAAc,CAAC,eAAe,EAAE,eAAe;;YACnD,MAAM,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;QAC5E,CAAC;KAAA;IAEK,OAAO,CAAC,YAAoB;;YAChC,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;YAC3D,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,OAAO,CAAC,OAAO,CAAC;YACtB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE;gBACtC,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAA