1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.testResult = exports.stepResult = exports.fixtureResult = exports.testResultContainer = void 0;
|
4 | const crypto_1 = require("crypto");
|
5 | const model_js_1 = require("./model.js");
|
6 | const testResultContainer = () => {
|
7 | return {
|
8 | uuid: (0, crypto_1.randomUUID)(),
|
9 | children: [],
|
10 | befores: [],
|
11 | afters: [],
|
12 | };
|
13 | };
|
14 | exports.testResultContainer = testResultContainer;
|
15 | const fixtureResult = () => {
|
16 | return {
|
17 | status: model_js_1.Status.BROKEN,
|
18 | statusDetails: {},
|
19 | stage: model_js_1.Stage.PENDING,
|
20 | steps: [],
|
21 | attachments: [],
|
22 | parameters: [],
|
23 | };
|
24 | };
|
25 | exports.fixtureResult = fixtureResult;
|
26 | const stepResult = () => {
|
27 | return {
|
28 | status: undefined,
|
29 | statusDetails: {},
|
30 | stage: model_js_1.Stage.PENDING,
|
31 | steps: [],
|
32 | attachments: [],
|
33 | parameters: [],
|
34 | };
|
35 | };
|
36 | exports.stepResult = stepResult;
|
37 | const testResult = () => {
|
38 | return {
|
39 | uuid: (0, crypto_1.randomUUID)(),
|
40 | historyId: (0, crypto_1.randomUUID)(),
|
41 | status: undefined,
|
42 | statusDetails: {},
|
43 | stage: model_js_1.Stage.PENDING,
|
44 | steps: [],
|
45 | attachments: [],
|
46 | parameters: [],
|
47 | labels: [],
|
48 | links: [],
|
49 | };
|
50 | };
|
51 | exports.testResult = testResult;
|
52 |
|
\ | No newline at end of file |