@intuitionrobotics/testelot 0.41.69 → 0.41.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,19 +16,6 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var __extends = (this && this.__extends) || (function () {
20
- var extendStatics = function (d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
- return function (d, b) {
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- };
31
- })();
32
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
33
20
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
34
21
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -38,56 +25,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
38
25
  step((generator = generator.apply(thisArg, _arguments || [])).next());
39
26
  });
40
27
  };
41
- var __generator = (this && this.__generator) || function (thisArg, body) {
42
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
43
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44
- function verb(n) { return function (v) { return step([n, v]); }; }
45
- function step(op) {
46
- if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
48
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
49
- if (y = 0, t) op = [op[0] & 2, t.value];
50
- switch (op[0]) {
51
- case 0: case 1: t = op; break;
52
- case 4: _.label++; return { value: op[1], done: false };
53
- case 5: _.label++; y = op[1]; op = [0]; continue;
54
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
55
- default:
56
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
57
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
58
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
59
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60
- if (t[2]) _.ops.pop();
61
- _.trys.pop(); continue;
62
- }
63
- op = body.call(thisArg, _);
64
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
65
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
66
- }
67
- };
68
28
  Object.defineProperty(exports, "__esModule", { value: true });
69
29
  exports.Action_Sleep = void 0;
70
30
  /**
71
31
  * Created by IR on 3/18/17.
72
32
  */
73
- var Action_1 = require("./Action");
74
- var ts_common_1 = require("@intuitionrobotics/ts-common");
75
- var Action_Sleep = /** @class */ (function (_super) {
76
- __extends(Action_Sleep, _super);
77
- function Action_Sleep(sleepMs) {
78
- var _this = _super.call(this, Action_Sleep) || this;
79
- _this.setLabel("Sleeping for " + sleepMs + " ms");
80
- _this.sleepMs = sleepMs;
81
- return _this;
33
+ const Action_1 = require("./Action");
34
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
35
+ class Action_Sleep extends Action_1.Action {
36
+ constructor(sleepMs) {
37
+ super(Action_Sleep);
38
+ this.setLabel(`Sleeping for ${sleepMs} ms`);
39
+ this.sleepMs = sleepMs;
82
40
  }
83
- Action_Sleep.prototype.execute = function () {
84
- return __awaiter(this, void 0, void 0, function () {
85
- return __generator(this, function (_a) {
86
- return [2 /*return*/, ts_common_1.timeout(this.sleepMs)];
87
- });
41
+ execute() {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ return ts_common_1.timeout(this.sleepMs);
88
44
  });
89
- };
90
- return Action_Sleep;
91
- }(Action_1.Action));
45
+ }
46
+ }
92
47
  exports.Action_Sleep = Action_Sleep;
93
48
  //# sourceMappingURL=Action_Sleep.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action_Sleep.js","sourceRoot":"","sources":["../../src/main/core/Action_Sleep.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,mCAAgC;AAChC,0DAAqD;AAGrD;IACS,gCAAM;IAGd,sBAAsB,OAAe;QAArC,YACC,kBAAM,YAAY,CAAC,SAGnB;QAFA,KAAI,CAAC,QAAQ,CAAC,kBAAgB,OAAO,QAAK,CAAC,CAAC;QAC5C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACxB,CAAC;IAEe,8BAAO,GAAvB;;;gBACC,sBAAO,mBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC;;;KAC7B;IACF,mBAAC;AAAD,CAAC,AAbD,CACS,eAAM,GAYd;AAbY,oCAAY"}
1
+ {"version":3,"file":"Action_Sleep.js","sourceRoot":"","sources":["../../src/main/core/Action_Sleep.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAChC,4DAAqD;AAGrD,MAAa,YACZ,SAAQ,eAAM;IAGd,YAAsB,OAAe;QACpC,KAAK,CAAC,YAAY,CAAC,CAAC;QACpB,IAAI,CAAC,QAAQ,CAAC,gBAAgB,OAAO,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAEe,OAAO;;YACtB,OAAO,mBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;KAAA;CACD;AAbD,oCAaC"}
@@ -16,19 +16,6 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var __extends = (this && this.__extends) || (function () {
20
- var extendStatics = function (d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
- return function (d, b) {
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- };
31
- })();
32
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
33
20
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
34
21
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -38,55 +25,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
38
25
  step((generator = generator.apply(thisArg, _arguments || [])).next());
39
26
  });
40
27
  };
41
- var __generator = (this && this.__generator) || function (thisArg, body) {
42
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
43
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44
- function verb(n) { return function (v) { return step([n, v]); }; }
45
- function step(op) {
46
- if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
48
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
49
- if (y = 0, t) op = [op[0] & 2, t.value];
50
- switch (op[0]) {
51
- case 0: case 1: t = op; break;
52
- case 4: _.label++; return { value: op[1], done: false };
53
- case 5: _.label++; y = op[1]; op = [0]; continue;
54
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
55
- default:
56
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
57
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
58
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
59
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60
- if (t[2]) _.ops.pop();
61
- _.trys.pop(); continue;
62
- }
63
- op = body.call(thisArg, _);
64
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
65
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
66
- }
67
- };
68
28
  Object.defineProperty(exports, "__esModule", { value: true });
69
29
  exports.Action_ThrowException = void 0;
70
30
  /**
71
31
  * Created by IR on 3/18/17.
72
32
  */
73
- var Action_1 = require("./Action");
74
- var ts_common_1 = require("@intuitionrobotics/ts-common");
75
- var Action_ThrowException = /** @class */ (function (_super) {
76
- __extends(Action_ThrowException, _super);
77
- function Action_ThrowException(message, tag) {
78
- var _this = _super.call(this, Action_ThrowException, tag) || this;
79
- _this.message = message;
80
- return _this;
33
+ const Action_1 = require("./Action");
34
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
35
+ class Action_ThrowException extends Action_1.Action {
36
+ constructor(message, tag) {
37
+ super(Action_ThrowException, tag);
38
+ this.message = message;
81
39
  }
82
- Action_ThrowException.prototype.execute = function () {
83
- return __awaiter(this, void 0, void 0, function () {
84
- return __generator(this, function (_a) {
85
- throw new ts_common_1.Exception(this.message);
86
- });
40
+ execute() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ throw new ts_common_1.Exception(this.message);
87
43
  });
88
- };
89
- return Action_ThrowException;
90
- }(Action_1.Action));
44
+ }
45
+ }
91
46
  exports.Action_ThrowException = Action_ThrowException;
92
47
  //# sourceMappingURL=Action_ThrowException.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action_ThrowException.js","sourceRoot":"","sources":["../../src/main/core/Action_ThrowException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,mCAAgC;AAChC,0DAAuD;AAGvD;IACS,yCAAM;IAGd,+BAAsB,OAAe,EAAE,GAAY;QAAnD,YACC,kBAAM,qBAAqB,EAAE,GAAG,CAAC,SAEjC;QADA,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACxB,CAAC;IAEe,uCAAO,GAAvB;;;gBACC,MAAM,IAAI,qBAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;;;KAClC;IACF,4BAAC;AAAD,CAAC,AAZD,CACS,eAAM,GAWd;AAZY,sDAAqB"}
1
+ {"version":3,"file":"Action_ThrowException.js","sourceRoot":"","sources":["../../src/main/core/Action_ThrowException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAChC,4DAAuD;AAGvD,MAAa,qBACZ,SAAQ,eAAM;IAGd,YAAsB,OAAe,EAAE,GAAY;QAClD,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAEe,OAAO;;YACtB,MAAM,IAAI,qBAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;KAAA;CACD;AAZD,sDAYC"}
@@ -21,31 +21,29 @@ exports.TypedHashMap = exports.ContextKey = void 0;
21
21
  /**
22
22
  * Created by IR on 3/18/17.
23
23
  */
24
- var ContextKey = /** @class */ (function () {
25
- function ContextKey(key, defaultValue) {
24
+ class ContextKey {
25
+ constructor(key, defaultValue) {
26
26
  this.key = key;
27
27
  this.defaultValue = defaultValue;
28
28
  }
29
- return ContextKey;
30
- }());
29
+ }
31
30
  exports.ContextKey = ContextKey;
32
- var TypedHashMap = /** @class */ (function () {
33
- function TypedHashMap() {
31
+ class TypedHashMap {
32
+ constructor() {
34
33
  this.map = new Map();
35
34
  }
36
- TypedHashMap.prototype.delete = function (key) {
35
+ delete(key) {
37
36
  return this.map.delete(key.key);
38
- };
39
- TypedHashMap.prototype.get = function (key) {
37
+ }
38
+ get(key) {
40
39
  return this.map.get(key.key);
41
- };
42
- TypedHashMap.prototype.set = function (key, value) {
40
+ }
41
+ set(key, value) {
43
42
  return this.map.set(key.key, value);
44
- };
45
- TypedHashMap.prototype.clear = function () {
43
+ }
44
+ clear() {
46
45
  return this.map.clear();
47
- };
48
- return TypedHashMap;
49
- }());
46
+ }
47
+ }
50
48
  exports.TypedHashMap = TypedHashMap;
51
49
  //# sourceMappingURL=ContainerContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContainerContext.js","sourceRoot":"","sources":["../../src/main/core/ContainerContext.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH;;GAEG;AAEH;IAIC,oBAAY,GAAW,EAAE,YAAgB;QACxC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IAClC,CAAC;IACF,iBAAC;AAAD,CAAC,AARD,IAQC;AARY,gCAAU;AAUvB;IAAA;QAES,QAAG,GAAqB,IAAI,GAAG,EAAe,CAAC;IAiBxD,CAAC;IAfA,6BAAM,GAAN,UAAO,GAAoB;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,0BAAG,GAAH,UAAe,GAA0B;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAc,CAAC;IAC3C,CAAC;IAED,0BAAG,GAAH,UAAe,GAA0B,EAAE,KAAgB;QAC1D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAEA,4BAAK,GAAL;QACC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IACF,mBAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBY,oCAAY"}
1
+ {"version":3,"file":"ContainerContext.js","sourceRoot":"","sources":["../../src/main/core/ContainerContext.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH;;GAEG;AAEH,MAAa,UAAU;IAItB,YAAY,GAAW,EAAE,YAAgB;QACxC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IAClC,CAAC;CACD;AARD,gCAQC;AAED,MAAa,YAAY;IAAzB;QAES,QAAG,GAAqB,IAAI,GAAG,EAAe,CAAC;IAiBxD,CAAC;IAfA,MAAM,CAAC,GAAoB;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,GAAG,CAAY,GAA0B;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAc,CAAC;IAC3C,CAAC;IAED,GAAG,CAAY,GAA0B,EAAE,KAAgB;QAC1D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAEA,KAAK;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACD;AAnBD,oCAmBC"}
package/core/Reporter.js CHANGED
@@ -16,58 +16,42 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var __extends = (this && this.__extends) || (function () {
20
- var extendStatics = function (d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
- return function (d, b) {
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- };
31
- })();
32
19
  Object.defineProperty(exports, "__esModule", { value: true });
33
20
  exports.ActionReport = exports.Reporter = void 0;
34
- var Action_1 = require("./Action");
35
- var ts_common_1 = require("@intuitionrobotics/ts-common");
36
- var ReportSummary = /** @class */ (function () {
37
- function ReportSummary() {
21
+ const Action_1 = require("./Action");
22
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
23
+ class ReportSummary {
24
+ constructor() {
38
25
  this.Running = 0;
39
26
  this.Skipped = 0;
40
27
  this.Success = 0;
41
28
  this.Error = 0;
42
29
  }
43
- return ReportSummary;
44
- }());
45
- var Reporter = /** @class */ (function (_super) {
46
- __extends(Reporter, _super);
47
- function Reporter() {
48
- var _this = _super.call(this, "Testelot") || this;
49
- _this.reports = {};
50
- _this.summary = new ReportSummary();
51
- _this.reporter = new ReporterLogClient(_this);
52
- ts_common_1.BeLogged.addClient(_this.reporter);
53
- return _this;
30
+ }
31
+ class Reporter extends ts_common_1.Logger {
32
+ constructor() {
33
+ super("Testelot");
34
+ this.reports = {};
35
+ this.summary = new ReportSummary();
36
+ this.reporter = new ReporterLogClient(this);
37
+ ts_common_1.BeLogged.addClient(this.reporter);
38
+ }
39
+ init() {
54
40
  }
55
- Reporter.prototype.init = function () {
56
- };
57
- Reporter.prototype.logMessage = function (logMessage) {
41
+ logMessage(logMessage) {
58
42
  if (this.report)
59
43
  this.report.appendLog(logMessage);
60
- };
61
- Reporter.prototype.onActionStarted = function (action) {
44
+ }
45
+ onActionStarted(action) {
62
46
  this.reports[action.uuid] = this.report = new ActionReport(action);
63
47
  // if (action.isContainer())
64
48
  this.reporter.onContainerStarted();
65
- };
66
- Reporter.prototype.onActionEnded = function (action) {
49
+ }
50
+ onActionEnded(action) {
67
51
  switch (action.status) {
68
52
  case Action_1.Status.Ready:
69
53
  case Action_1.Status.Running:
70
- this.logWarning("action state: " + action.status + " found in action ended event");
54
+ this.logWarning(`action state: ${action.status} found in action ended event`);
71
55
  break;
72
56
  case Action_1.Status.Skipped:
73
57
  case Action_1.Status.Success:
@@ -79,62 +63,57 @@ var Reporter = /** @class */ (function (_super) {
79
63
  this.summary[action.status]++;
80
64
  break;
81
65
  }
82
- };
83
- return Reporter;
84
- }(ts_common_1.Logger));
66
+ }
67
+ }
85
68
  exports.Reporter = Reporter;
86
- var ActionReport = /** @class */ (function () {
87
- function ActionReport(action) {
69
+ class ActionReport {
70
+ constructor(action) {
88
71
  this.logs = "";
89
72
  this.action = action;
90
73
  }
91
- ActionReport.prototype.getLog = function () {
74
+ getLog() {
92
75
  return this.logs;
93
- };
94
- ActionReport.prototype.appendLog = function (logMessage) {
95
- this.logs += logMessage + "\n";
96
- };
97
- return ActionReport;
98
- }());
76
+ }
77
+ appendLog(logMessage) {
78
+ this.logs += `${logMessage}\n`;
79
+ }
80
+ }
99
81
  exports.ActionReport = ActionReport;
100
82
  function pad(value, length) {
101
- var s = "" + value;
83
+ let s = "" + value;
102
84
  while (s.length < (length || 2)) {
103
85
  s = "0" + s;
104
86
  }
105
87
  return s;
106
88
  }
107
- var ReporterLogClient = /** @class */ (function (_super) {
108
- __extends(ReporterLogClient, _super);
109
- function ReporterLogClient(report) {
110
- var _this = _super.call(this) || this;
111
- _this.indent = "";
112
- _this.composer = function (tag, level) {
113
- var successPart = "\u001B[32m" + pad(_this.report.summary.Success, 3) + ts_common_1.NoColor;
114
- var skippedPart = "\u001B[90m\u001B[1m" + pad(_this.report.summary.Skipped, 3) + ts_common_1.NoColor;
115
- var errorPart = "\u001B[31m" + pad(_this.report.summary.Error, 3) + ts_common_1.NoColor;
116
- var status = errorPart + "/" + skippedPart + "/" + successPart;
117
- var defaultPrefix = ts_common_1.DefaultLogPrefixComposer("Testelot", level);
118
- var color = ts_common_1.LogClient_Terminal.getColor(level);
119
- return " " + defaultPrefix + " " + ts_common_1.NoColor + "[" + status + "]:" + color + " " + _this.indent;
89
+ class ReporterLogClient extends ts_common_1.LogClient {
90
+ constructor(report) {
91
+ super();
92
+ this.indent = "";
93
+ this.composer = (tag, level) => {
94
+ const successPart = `\x1b[32m${pad(this.report.summary.Success, 3)}${ts_common_1.NoColor}`;
95
+ const skippedPart = `\x1b[90m\x1b[1m${pad(this.report.summary.Skipped, 3)}${ts_common_1.NoColor}`;
96
+ const errorPart = `\x1b[31m${pad(this.report.summary.Error, 3)}${ts_common_1.NoColor}`;
97
+ const status = `${errorPart}/${skippedPart}/${successPart}`;
98
+ const defaultPrefix = ts_common_1.DefaultLogPrefixComposer("Testelot", level);
99
+ const color = ts_common_1.LogClient_Terminal.getColor(level);
100
+ return ` ${defaultPrefix} ${ts_common_1.NoColor}[${status}]:${color} ${this.indent}`;
120
101
  };
121
- _this.report = report;
122
- _this.setComposer(_this.composer);
123
- return _this;
102
+ this.report = report;
103
+ this.setComposer(this.composer);
104
+ }
105
+ logMessage(level, bold, prefix, toLog) {
106
+ const color = ts_common_1.LogClient_Terminal.getColor(level, bold);
107
+ const paramsAsStrings = ts_common_1._logger_convertLogParamsToStrings(toLog);
108
+ paramsAsStrings.forEach(str => console.log(ts_common_1._logger_indentNewLineBy(color + prefix, str), ts_common_1.NoColor));
124
109
  }
125
- ReporterLogClient.prototype.logMessage = function (level, bold, prefix, toLog) {
126
- var color = ts_common_1.LogClient_Terminal.getColor(level, bold);
127
- var paramsAsStrings = ts_common_1._logger_convertLogParamsToStrings(toLog);
128
- paramsAsStrings.forEach(function (str) { return console.log(ts_common_1._logger_indentNewLineBy(color + prefix, str), ts_common_1.NoColor); });
129
- };
130
- ReporterLogClient.prototype.onContainerStarted = function () {
110
+ onContainerStarted() {
131
111
  this.indent += ReporterLogClient.indent;
132
- };
133
- ReporterLogClient.prototype.onContainerEnded = function () {
112
+ }
113
+ onContainerEnded() {
134
114
  this.indent = this.indent.substring(0, this.indent.length - ReporterLogClient.indent.length);
135
115
  return;
136
- };
137
- ReporterLogClient.indent = " ";
138
- return ReporterLogClient;
139
- }(ts_common_1.LogClient));
116
+ }
117
+ }
118
+ ReporterLogClient.indent = " ";
140
119
  //# sourceMappingURL=Reporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Reporter.js","sourceRoot":"","sources":["../../src/main/core/Reporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;AAEH,mCAGkB;AAElB,0DAYsC;AAEtC;IAAA;QACC,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,UAAK,GAAW,CAAC,CAAC;IACnB,CAAC;IAAD,oBAAC;AAAD,CAAC,AALD,IAKC;AAED;IACS,4BAAM;IASd;QAAA,YACC,kBAAM,UAAU,CAAC,SAEjB;QAVgB,aAAO,GAAoC,EAAE,CAAC;QAC/C,aAAO,GAAkB,IAAI,aAAa,EAAE,CAAC;QAIrD,cAAQ,GAAG,IAAI,iBAAiB,CAAC,KAAI,CAAC,CAAC;QAI9C,oBAAQ,CAAC,SAAS,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;;IACnC,CAAC;IAED,uBAAI,GAAJ;IACA,CAAC;IAED,6BAAU,GAAV,UAAW,UAAkB;QAC5B,IAAI,IAAI,CAAC,MAAM;YACd,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IAED,kCAAe,GAAf,UAAgB,MAAmB;QAClC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACnE,4BAA4B;QAC5B,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACpC,CAAC;IAED,gCAAa,GAAb,UAAc,MAAmB;QAChC,QA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mCAAuB,CAAC,KAAK,GAAG,MAAM,EAAE,GAAG,CAAC,EAAE,mBAAO,CAAC,CAAC,CAAA;IACnG,CAAC;IAED,kBAAkB;QACjB,IAAI,CAAC,MAAM,IAAI,iBAAiB,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7F,OAAO;IACR,CAAC;;AAlCc,wBAAM,GAAW,IAAI,CAAC"}
package/core/Scenario.js CHANGED
@@ -16,19 +16,6 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var __extends = (this && this.__extends) || (function () {
20
- var extendStatics = function (d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
- return function (d, b) {
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- };
31
- })();
32
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
33
20
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
34
21
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -38,59 +25,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
38
25
  step((generator = generator.apply(thisArg, _arguments || [])).next());
39
26
  });
40
27
  };
41
- var __generator = (this && this.__generator) || function (thisArg, body) {
42
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
43
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44
- function verb(n) { return function (v) { return step([n, v]); }; }
45
- function step(op) {
46
- if (f) throw new TypeError("Generator is already executing.");
47
- while (_) try {
48
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
49
- if (y = 0, t) op = [op[0] & 2, t.value];
50
- switch (op[0]) {
51
- case 0: case 1: t = op; break;
52
- case 4: _.label++; return { value: op[1], done: false };
53
- case 5: _.label++; y = op[1]; op = [0]; continue;
54
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
55
- default:
56
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
57
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
58
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
59
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60
- if (t[2]) _.ops.pop();
61
- _.trys.pop(); continue;
62
- }
63
- op = body.call(thisArg, _);
64
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
65
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
66
- }
67
- };
68
28
  Object.defineProperty(exports, "__esModule", { value: true });
69
29
  exports.Scenario = void 0;
70
30
  /**
71
31
  * Created by IR on 3/18/17.
72
32
  */
73
- var Action_Container_1 = require("./Action_Container");
74
- var Scenario = /** @class */ (function (_super) {
75
- __extends(Scenario, _super);
76
- function Scenario() {
77
- var _this = _super.call(this, Scenario) || this;
78
- _this.run = function () { return __awaiter(_this, void 0, void 0, function () {
79
- return __generator(this, function (_a) {
80
- switch (_a.label) {
81
- case 0:
82
- // @ts-ignore
83
- return [4 /*yield*/, this._execute()];
84
- case 1:
85
- // @ts-ignore
86
- _a.sent();
87
- return [2 /*return*/];
88
- }
89
- });
90
- }); };
91
- return _this;
33
+ const Action_Container_1 = require("./Action_Container");
34
+ class Scenario extends Action_Container_1.Action_Container {
35
+ constructor() {
36
+ super(Scenario);
37
+ this.run = () => __awaiter(this, void 0, void 0, function* () {
38
+ // @ts-ignore
39
+ yield this._execute();
40
+ });
92
41
  }
93
- return Scenario;
94
- }(Action_Container_1.Action_Container));
42
+ }
95
43
  exports.Scenario = Scenario;
96
44
  //# sourceMappingURL=Scenario.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../src/main/core/Scenario.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,uDAAoD;AAEpD;IACS,4BAAgB;IAExB;QAAA,YACC,kBAAM,QAAQ,CAAC,SACf;QAEM,SAAG,GAAG;;;;oBACZ,aAAa;oBACb,qBAAM,IAAI,CAAC,QAAQ,EAAE,EAAA;;wBADrB,aAAa;wBACb,SAAqB,CAAC;;;;aACtB,CAAC;;IALF,CAAC;IAMF,eAAC;AAAD,CAAC,AAXD,CACS,mCAAgB,GAUxB;AAXY,4BAAQ"}
1
+ {"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../src/main/core/Scenario.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,yDAAoD;AAEpD,MAAa,QACZ,SAAQ,mCAAgB;IAExB;QACC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAGV,QAAG,GAAG,GAAS,EAAE;YACvB,aAAa;YACb,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvB,CAAC,CAAA,CAAC;IALF,CAAC;CAMD;AAXD,4BAWC"}
@@ -16,31 +16,16 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var __extends = (this && this.__extends) || (function () {
20
- var extendStatics = function (d, b) {
21
- extendStatics = Object.setPrototypeOf ||
22
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
24
- return extendStatics(d, b);
25
- };
26
- return function (d, b) {
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- };
31
- })();
32
19
  Object.defineProperty(exports, "__esModule", { value: true });
33
20
  exports.TestException = void 0;
34
21
  /**
35
22
  * Created by IR on 3/18/17.
36
23
  */
37
- var ts_common_1 = require("@intuitionrobotics/ts-common");
38
- var TestException = /** @class */ (function (_super) {
39
- __extends(TestException, _super);
40
- function TestException(message) {
41
- return _super.call(this, TestException, message) || this;
24
+ const ts_common_1 = require("@intuitionrobotics/ts-common");
25
+ class TestException extends ts_common_1.CustomException {
26
+ constructor(message) {
27
+ super(TestException, message);
42
28
  }
43
- return TestException;
44
- }(ts_common_1.CustomException));
29
+ }
45
30
  exports.TestException = TestException;
46
31
  //# sourceMappingURL=TestException.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TestException.js","sourceRoot":"","sources":["../../src/main/core/TestException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,0DAA6D;AAG7D;IACS,iCAAe;IAEvB,uBAAY,OAAe;eAC1B,kBAAM,aAAa,EAAE,OAAO,CAAC;IAC9B,CAAC;IACF,oBAAC;AAAD,CAAC,AAND,CACS,2BAAe,GAKvB;AANY,sCAAa"}
1
+ {"version":3,"file":"TestException.js","sourceRoot":"","sources":["../../src/main/core/TestException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH;;GAEG;AACH,4DAA6D;AAG7D,MAAa,aACZ,SAAQ,2BAAe;IAEvB,YAAY,OAAe;QAC1B,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACD;AAND,sCAMC"}