@nsshunt/ststestrunner 1.1.107 → 1.1.109
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.
- package/dist/ststestrunner.cjs +589 -9
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +608 -9
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +3 -1
- package/types/commonTypes.d.ts +1 -0
- package/types/commonTypes.d.ts.map +1 -1
- package/types/libmodule/randomSequence.d.ts +2 -0
- package/types/libmodule/randomSequence.d.ts.map +1 -0
- package/types/libmodule/testCaseFhir02.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir03.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir04.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir05.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir07.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir08.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir09.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir10.d.ts.map +1 -1
- package/types/libmodule/testCaseFhirBase.d.ts +2 -0
- package/types/libmodule/testCaseFhirBase.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -6,7 +6,12 @@ import http from "node:http";
|
|
|
6
6
|
import https from "node:https";
|
|
7
7
|
import { FhirRESTClient, FhirSocketClientAllInOne, FhirSocketClientIndividual, createRetryAxiosClient } from "@nsshunt/stsfhirclient";
|
|
8
8
|
//#region \0rolldown/runtime.js
|
|
9
|
+
var __create = Object.create;
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
15
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
16
|
var __exportAll = (all, no_symbols) => {
|
|
12
17
|
let target = {};
|
|
@@ -17,6 +22,20 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
22
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
23
|
return target;
|
|
19
24
|
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
+
key = keys[i];
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
29
|
+
get: ((k) => from[k]).bind(null, key),
|
|
30
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
36
|
+
value: mod,
|
|
37
|
+
enumerable: true
|
|
38
|
+
}) : target, mod));
|
|
20
39
|
//#endregion
|
|
21
40
|
//#region node_modules/http-status-codes/build/es/status-codes.js
|
|
22
41
|
var StatusCodes;
|
|
@@ -377,6 +396,579 @@ var StatusCodes;
|
|
|
377
396
|
StatusCodes[StatusCodes["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
378
397
|
})(StatusCodes || (StatusCodes = {}));
|
|
379
398
|
//#endregion
|
|
399
|
+
//#region node_modules/seedrandom/lib/alea.js
|
|
400
|
+
var require_alea = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
401
|
+
(function(global, module$6, define) {
|
|
402
|
+
function Alea(seed) {
|
|
403
|
+
var me = this, mash = Mash();
|
|
404
|
+
me.next = function() {
|
|
405
|
+
var t = 2091639 * me.s0 + me.c * 23283064365386963e-26;
|
|
406
|
+
me.s0 = me.s1;
|
|
407
|
+
me.s1 = me.s2;
|
|
408
|
+
return me.s2 = t - (me.c = t | 0);
|
|
409
|
+
};
|
|
410
|
+
me.c = 1;
|
|
411
|
+
me.s0 = mash(" ");
|
|
412
|
+
me.s1 = mash(" ");
|
|
413
|
+
me.s2 = mash(" ");
|
|
414
|
+
me.s0 -= mash(seed);
|
|
415
|
+
if (me.s0 < 0) me.s0 += 1;
|
|
416
|
+
me.s1 -= mash(seed);
|
|
417
|
+
if (me.s1 < 0) me.s1 += 1;
|
|
418
|
+
me.s2 -= mash(seed);
|
|
419
|
+
if (me.s2 < 0) me.s2 += 1;
|
|
420
|
+
mash = null;
|
|
421
|
+
}
|
|
422
|
+
function copy(f, t) {
|
|
423
|
+
t.c = f.c;
|
|
424
|
+
t.s0 = f.s0;
|
|
425
|
+
t.s1 = f.s1;
|
|
426
|
+
t.s2 = f.s2;
|
|
427
|
+
return t;
|
|
428
|
+
}
|
|
429
|
+
function impl(seed, opts) {
|
|
430
|
+
var xg = new Alea(seed), state = opts && opts.state, prng = xg.next;
|
|
431
|
+
prng.int32 = function() {
|
|
432
|
+
return xg.next() * 4294967296 | 0;
|
|
433
|
+
};
|
|
434
|
+
prng.double = function() {
|
|
435
|
+
return prng() + (prng() * 2097152 | 0) * 11102230246251565e-32;
|
|
436
|
+
};
|
|
437
|
+
prng.quick = prng;
|
|
438
|
+
if (state) {
|
|
439
|
+
if (typeof state == "object") copy(state, xg);
|
|
440
|
+
prng.state = function() {
|
|
441
|
+
return copy(xg, {});
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return prng;
|
|
445
|
+
}
|
|
446
|
+
function Mash() {
|
|
447
|
+
var n = 4022871197;
|
|
448
|
+
var mash = function(data) {
|
|
449
|
+
data = String(data);
|
|
450
|
+
for (var i = 0; i < data.length; i++) {
|
|
451
|
+
n += data.charCodeAt(i);
|
|
452
|
+
var h = .02519603282416938 * n;
|
|
453
|
+
n = h >>> 0;
|
|
454
|
+
h -= n;
|
|
455
|
+
h *= n;
|
|
456
|
+
n = h >>> 0;
|
|
457
|
+
h -= n;
|
|
458
|
+
n += h * 4294967296;
|
|
459
|
+
}
|
|
460
|
+
return (n >>> 0) * 23283064365386963e-26;
|
|
461
|
+
};
|
|
462
|
+
return mash;
|
|
463
|
+
}
|
|
464
|
+
if (module$6 && module$6.exports) module$6.exports = impl;
|
|
465
|
+
else if (define && define.amd) define(function() {
|
|
466
|
+
return impl;
|
|
467
|
+
});
|
|
468
|
+
else this.alea = impl;
|
|
469
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
470
|
+
}));
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region node_modules/seedrandom/lib/xor128.js
|
|
473
|
+
var require_xor128 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
474
|
+
(function(global, module$5, define) {
|
|
475
|
+
function XorGen(seed) {
|
|
476
|
+
var me = this, strseed = "";
|
|
477
|
+
me.x = 0;
|
|
478
|
+
me.y = 0;
|
|
479
|
+
me.z = 0;
|
|
480
|
+
me.w = 0;
|
|
481
|
+
me.next = function() {
|
|
482
|
+
var t = me.x ^ me.x << 11;
|
|
483
|
+
me.x = me.y;
|
|
484
|
+
me.y = me.z;
|
|
485
|
+
me.z = me.w;
|
|
486
|
+
return me.w ^= me.w >>> 19 ^ t ^ t >>> 8;
|
|
487
|
+
};
|
|
488
|
+
if (seed === (seed | 0)) me.x = seed;
|
|
489
|
+
else strseed += seed;
|
|
490
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
491
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
492
|
+
me.next();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
function copy(f, t) {
|
|
496
|
+
t.x = f.x;
|
|
497
|
+
t.y = f.y;
|
|
498
|
+
t.z = f.z;
|
|
499
|
+
t.w = f.w;
|
|
500
|
+
return t;
|
|
501
|
+
}
|
|
502
|
+
function impl(seed, opts) {
|
|
503
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
504
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
505
|
+
};
|
|
506
|
+
prng.double = function() {
|
|
507
|
+
do
|
|
508
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
509
|
+
while (result === 0);
|
|
510
|
+
return result;
|
|
511
|
+
};
|
|
512
|
+
prng.int32 = xg.next;
|
|
513
|
+
prng.quick = prng;
|
|
514
|
+
if (state) {
|
|
515
|
+
if (typeof state == "object") copy(state, xg);
|
|
516
|
+
prng.state = function() {
|
|
517
|
+
return copy(xg, {});
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
return prng;
|
|
521
|
+
}
|
|
522
|
+
if (module$5 && module$5.exports) module$5.exports = impl;
|
|
523
|
+
else if (define && define.amd) define(function() {
|
|
524
|
+
return impl;
|
|
525
|
+
});
|
|
526
|
+
else this.xor128 = impl;
|
|
527
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
528
|
+
}));
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region node_modules/seedrandom/lib/xorwow.js
|
|
531
|
+
var require_xorwow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
532
|
+
(function(global, module$4, define) {
|
|
533
|
+
function XorGen(seed) {
|
|
534
|
+
var me = this, strseed = "";
|
|
535
|
+
me.next = function() {
|
|
536
|
+
var t = me.x ^ me.x >>> 2;
|
|
537
|
+
me.x = me.y;
|
|
538
|
+
me.y = me.z;
|
|
539
|
+
me.z = me.w;
|
|
540
|
+
me.w = me.v;
|
|
541
|
+
return (me.d = me.d + 362437 | 0) + (me.v = me.v ^ me.v << 4 ^ (t ^ t << 1)) | 0;
|
|
542
|
+
};
|
|
543
|
+
me.x = 0;
|
|
544
|
+
me.y = 0;
|
|
545
|
+
me.z = 0;
|
|
546
|
+
me.w = 0;
|
|
547
|
+
me.v = 0;
|
|
548
|
+
if (seed === (seed | 0)) me.x = seed;
|
|
549
|
+
else strseed += seed;
|
|
550
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
551
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
552
|
+
if (k == strseed.length) me.d = me.x << 10 ^ me.x >>> 4;
|
|
553
|
+
me.next();
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
function copy(f, t) {
|
|
557
|
+
t.x = f.x;
|
|
558
|
+
t.y = f.y;
|
|
559
|
+
t.z = f.z;
|
|
560
|
+
t.w = f.w;
|
|
561
|
+
t.v = f.v;
|
|
562
|
+
t.d = f.d;
|
|
563
|
+
return t;
|
|
564
|
+
}
|
|
565
|
+
function impl(seed, opts) {
|
|
566
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
567
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
568
|
+
};
|
|
569
|
+
prng.double = function() {
|
|
570
|
+
do
|
|
571
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
572
|
+
while (result === 0);
|
|
573
|
+
return result;
|
|
574
|
+
};
|
|
575
|
+
prng.int32 = xg.next;
|
|
576
|
+
prng.quick = prng;
|
|
577
|
+
if (state) {
|
|
578
|
+
if (typeof state == "object") copy(state, xg);
|
|
579
|
+
prng.state = function() {
|
|
580
|
+
return copy(xg, {});
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
return prng;
|
|
584
|
+
}
|
|
585
|
+
if (module$4 && module$4.exports) module$4.exports = impl;
|
|
586
|
+
else if (define && define.amd) define(function() {
|
|
587
|
+
return impl;
|
|
588
|
+
});
|
|
589
|
+
else this.xorwow = impl;
|
|
590
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
591
|
+
}));
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region node_modules/seedrandom/lib/xorshift7.js
|
|
594
|
+
var require_xorshift7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
595
|
+
(function(global, module$3, define) {
|
|
596
|
+
function XorGen(seed) {
|
|
597
|
+
var me = this;
|
|
598
|
+
me.next = function() {
|
|
599
|
+
var X = me.x, i = me.i, t = X[i], v;
|
|
600
|
+
t ^= t >>> 7;
|
|
601
|
+
v = t ^ t << 24;
|
|
602
|
+
t = X[i + 1 & 7];
|
|
603
|
+
v ^= t ^ t >>> 10;
|
|
604
|
+
t = X[i + 3 & 7];
|
|
605
|
+
v ^= t ^ t >>> 3;
|
|
606
|
+
t = X[i + 4 & 7];
|
|
607
|
+
v ^= t ^ t << 7;
|
|
608
|
+
t = X[i + 7 & 7];
|
|
609
|
+
t = t ^ t << 13;
|
|
610
|
+
v ^= t ^ t << 9;
|
|
611
|
+
X[i] = v;
|
|
612
|
+
me.i = i + 1 & 7;
|
|
613
|
+
return v;
|
|
614
|
+
};
|
|
615
|
+
function init(me, seed) {
|
|
616
|
+
var j, X = [];
|
|
617
|
+
if (seed === (seed | 0)) X[0] = seed;
|
|
618
|
+
else {
|
|
619
|
+
seed = "" + seed;
|
|
620
|
+
for (j = 0; j < seed.length; ++j) X[j & 7] = X[j & 7] << 15 ^ seed.charCodeAt(j) + X[j + 1 & 7] << 13;
|
|
621
|
+
}
|
|
622
|
+
while (X.length < 8) X.push(0);
|
|
623
|
+
for (j = 0; j < 8 && X[j] === 0; ++j);
|
|
624
|
+
if (j == 8) X[7] = -1;
|
|
625
|
+
else X[j];
|
|
626
|
+
me.x = X;
|
|
627
|
+
me.i = 0;
|
|
628
|
+
for (j = 256; j > 0; --j) me.next();
|
|
629
|
+
}
|
|
630
|
+
init(me, seed);
|
|
631
|
+
}
|
|
632
|
+
function copy(f, t) {
|
|
633
|
+
t.x = f.x.slice();
|
|
634
|
+
t.i = f.i;
|
|
635
|
+
return t;
|
|
636
|
+
}
|
|
637
|
+
function impl(seed, opts) {
|
|
638
|
+
if (seed == null) seed = +/* @__PURE__ */ new Date();
|
|
639
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
640
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
641
|
+
};
|
|
642
|
+
prng.double = function() {
|
|
643
|
+
do
|
|
644
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
645
|
+
while (result === 0);
|
|
646
|
+
return result;
|
|
647
|
+
};
|
|
648
|
+
prng.int32 = xg.next;
|
|
649
|
+
prng.quick = prng;
|
|
650
|
+
if (state) {
|
|
651
|
+
if (state.x) copy(state, xg);
|
|
652
|
+
prng.state = function() {
|
|
653
|
+
return copy(xg, {});
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
return prng;
|
|
657
|
+
}
|
|
658
|
+
if (module$3 && module$3.exports) module$3.exports = impl;
|
|
659
|
+
else if (define && define.amd) define(function() {
|
|
660
|
+
return impl;
|
|
661
|
+
});
|
|
662
|
+
else this.xorshift7 = impl;
|
|
663
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
664
|
+
}));
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region node_modules/seedrandom/lib/xor4096.js
|
|
667
|
+
var require_xor4096 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
668
|
+
(function(global, module$2, define) {
|
|
669
|
+
function XorGen(seed) {
|
|
670
|
+
var me = this;
|
|
671
|
+
me.next = function() {
|
|
672
|
+
var w = me.w, X = me.X, i = me.i, t, v;
|
|
673
|
+
me.w = w = w + 1640531527 | 0;
|
|
674
|
+
v = X[i + 34 & 127];
|
|
675
|
+
t = X[i = i + 1 & 127];
|
|
676
|
+
v ^= v << 13;
|
|
677
|
+
t ^= t << 17;
|
|
678
|
+
v ^= v >>> 15;
|
|
679
|
+
t ^= t >>> 12;
|
|
680
|
+
v = X[i] = v ^ t;
|
|
681
|
+
me.i = i;
|
|
682
|
+
return v + (w ^ w >>> 16) | 0;
|
|
683
|
+
};
|
|
684
|
+
function init(me, seed) {
|
|
685
|
+
var t, v, i, j, w, X = [], limit = 128;
|
|
686
|
+
if (seed === (seed | 0)) {
|
|
687
|
+
v = seed;
|
|
688
|
+
seed = null;
|
|
689
|
+
} else {
|
|
690
|
+
seed = seed + "\0";
|
|
691
|
+
v = 0;
|
|
692
|
+
limit = Math.max(limit, seed.length);
|
|
693
|
+
}
|
|
694
|
+
for (i = 0, j = -32; j < limit; ++j) {
|
|
695
|
+
if (seed) v ^= seed.charCodeAt((j + 32) % seed.length);
|
|
696
|
+
if (j === 0) w = v;
|
|
697
|
+
v ^= v << 10;
|
|
698
|
+
v ^= v >>> 15;
|
|
699
|
+
v ^= v << 4;
|
|
700
|
+
v ^= v >>> 13;
|
|
701
|
+
if (j >= 0) {
|
|
702
|
+
w = w + 1640531527 | 0;
|
|
703
|
+
t = X[j & 127] ^= v + w;
|
|
704
|
+
i = 0 == t ? i + 1 : 0;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
if (i >= 128) X[(seed && seed.length || 0) & 127] = -1;
|
|
708
|
+
i = 127;
|
|
709
|
+
for (j = 512; j > 0; --j) {
|
|
710
|
+
v = X[i + 34 & 127];
|
|
711
|
+
t = X[i = i + 1 & 127];
|
|
712
|
+
v ^= v << 13;
|
|
713
|
+
t ^= t << 17;
|
|
714
|
+
v ^= v >>> 15;
|
|
715
|
+
t ^= t >>> 12;
|
|
716
|
+
X[i] = v ^ t;
|
|
717
|
+
}
|
|
718
|
+
me.w = w;
|
|
719
|
+
me.X = X;
|
|
720
|
+
me.i = i;
|
|
721
|
+
}
|
|
722
|
+
init(me, seed);
|
|
723
|
+
}
|
|
724
|
+
function copy(f, t) {
|
|
725
|
+
t.i = f.i;
|
|
726
|
+
t.w = f.w;
|
|
727
|
+
t.X = f.X.slice();
|
|
728
|
+
return t;
|
|
729
|
+
}
|
|
730
|
+
function impl(seed, opts) {
|
|
731
|
+
if (seed == null) seed = +/* @__PURE__ */ new Date();
|
|
732
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
733
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
734
|
+
};
|
|
735
|
+
prng.double = function() {
|
|
736
|
+
do
|
|
737
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
738
|
+
while (result === 0);
|
|
739
|
+
return result;
|
|
740
|
+
};
|
|
741
|
+
prng.int32 = xg.next;
|
|
742
|
+
prng.quick = prng;
|
|
743
|
+
if (state) {
|
|
744
|
+
if (state.X) copy(state, xg);
|
|
745
|
+
prng.state = function() {
|
|
746
|
+
return copy(xg, {});
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
return prng;
|
|
750
|
+
}
|
|
751
|
+
if (module$2 && module$2.exports) module$2.exports = impl;
|
|
752
|
+
else if (define && define.amd) define(function() {
|
|
753
|
+
return impl;
|
|
754
|
+
});
|
|
755
|
+
else this.xor4096 = impl;
|
|
756
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
757
|
+
}));
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region node_modules/seedrandom/lib/tychei.js
|
|
760
|
+
var require_tychei = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
761
|
+
(function(global, module$1, define) {
|
|
762
|
+
function XorGen(seed) {
|
|
763
|
+
var me = this, strseed = "";
|
|
764
|
+
me.next = function() {
|
|
765
|
+
var b = me.b, c = me.c, d = me.d, a = me.a;
|
|
766
|
+
b = b << 25 ^ b >>> 7 ^ c;
|
|
767
|
+
c = c - d | 0;
|
|
768
|
+
d = d << 24 ^ d >>> 8 ^ a;
|
|
769
|
+
a = a - b | 0;
|
|
770
|
+
me.b = b = b << 20 ^ b >>> 12 ^ c;
|
|
771
|
+
me.c = c = c - d | 0;
|
|
772
|
+
me.d = d << 16 ^ c >>> 16 ^ a;
|
|
773
|
+
return me.a = a - b | 0;
|
|
774
|
+
};
|
|
775
|
+
me.a = 0;
|
|
776
|
+
me.b = 0;
|
|
777
|
+
me.c = -1640531527;
|
|
778
|
+
me.d = 1367130551;
|
|
779
|
+
if (seed === Math.floor(seed)) {
|
|
780
|
+
me.a = seed / 4294967296 | 0;
|
|
781
|
+
me.b = seed | 0;
|
|
782
|
+
} else strseed += seed;
|
|
783
|
+
for (var k = 0; k < strseed.length + 20; k++) {
|
|
784
|
+
me.b ^= strseed.charCodeAt(k) | 0;
|
|
785
|
+
me.next();
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function copy(f, t) {
|
|
789
|
+
t.a = f.a;
|
|
790
|
+
t.b = f.b;
|
|
791
|
+
t.c = f.c;
|
|
792
|
+
t.d = f.d;
|
|
793
|
+
return t;
|
|
794
|
+
}
|
|
795
|
+
function impl(seed, opts) {
|
|
796
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
797
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
798
|
+
};
|
|
799
|
+
prng.double = function() {
|
|
800
|
+
do
|
|
801
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
802
|
+
while (result === 0);
|
|
803
|
+
return result;
|
|
804
|
+
};
|
|
805
|
+
prng.int32 = xg.next;
|
|
806
|
+
prng.quick = prng;
|
|
807
|
+
if (state) {
|
|
808
|
+
if (typeof state == "object") copy(state, xg);
|
|
809
|
+
prng.state = function() {
|
|
810
|
+
return copy(xg, {});
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
return prng;
|
|
814
|
+
}
|
|
815
|
+
if (module$1 && module$1.exports) module$1.exports = impl;
|
|
816
|
+
else if (define && define.amd) define(function() {
|
|
817
|
+
return impl;
|
|
818
|
+
});
|
|
819
|
+
else this.tychei = impl;
|
|
820
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
821
|
+
}));
|
|
822
|
+
//#endregion
|
|
823
|
+
//#region __vite-browser-external
|
|
824
|
+
var require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
825
|
+
module.exports = {};
|
|
826
|
+
}));
|
|
827
|
+
//#endregion
|
|
828
|
+
//#region node_modules/seedrandom/seedrandom.js
|
|
829
|
+
var require_seedrandom$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
830
|
+
(function(global, pool, math) {
|
|
831
|
+
var width = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask = width - 1, nodecrypto;
|
|
832
|
+
function seedrandom(seed, options, callback) {
|
|
833
|
+
var key = [];
|
|
834
|
+
options = options == true ? { entropy: true } : options || {};
|
|
835
|
+
var shortseed = mixkey(flatten(options.entropy ? [seed, tostring(pool)] : seed == null ? autoseed() : seed, 3), key);
|
|
836
|
+
var arc4 = new ARC4(key);
|
|
837
|
+
var prng = function() {
|
|
838
|
+
var n = arc4.g(chunks), d = startdenom, x = 0;
|
|
839
|
+
while (n < significance) {
|
|
840
|
+
n = (n + x) * width;
|
|
841
|
+
d *= width;
|
|
842
|
+
x = arc4.g(1);
|
|
843
|
+
}
|
|
844
|
+
while (n >= overflow) {
|
|
845
|
+
n /= 2;
|
|
846
|
+
d /= 2;
|
|
847
|
+
x >>>= 1;
|
|
848
|
+
}
|
|
849
|
+
return (n + x) / d;
|
|
850
|
+
};
|
|
851
|
+
prng.int32 = function() {
|
|
852
|
+
return arc4.g(4) | 0;
|
|
853
|
+
};
|
|
854
|
+
prng.quick = function() {
|
|
855
|
+
return arc4.g(4) / 4294967296;
|
|
856
|
+
};
|
|
857
|
+
prng.double = prng;
|
|
858
|
+
mixkey(tostring(arc4.S), pool);
|
|
859
|
+
return (options.pass || callback || function(prng, seed, is_math_call, state) {
|
|
860
|
+
if (state) {
|
|
861
|
+
if (state.S) copy(state, arc4);
|
|
862
|
+
prng.state = function() {
|
|
863
|
+
return copy(arc4, {});
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
if (is_math_call) {
|
|
867
|
+
math[rngname] = prng;
|
|
868
|
+
return seed;
|
|
869
|
+
} else return prng;
|
|
870
|
+
})(prng, shortseed, "global" in options ? options.global : this == math, options.state);
|
|
871
|
+
}
|
|
872
|
+
function ARC4(key) {
|
|
873
|
+
var t, keylen = key.length, me = this, i = 0, j = me.i = me.j = 0, s = me.S = [];
|
|
874
|
+
if (!keylen) key = [keylen++];
|
|
875
|
+
while (i < width) s[i] = i++;
|
|
876
|
+
for (i = 0; i < width; i++) {
|
|
877
|
+
s[i] = s[j = mask & j + key[i % keylen] + (t = s[i])];
|
|
878
|
+
s[j] = t;
|
|
879
|
+
}
|
|
880
|
+
(me.g = function(count) {
|
|
881
|
+
var t, r = 0, i = me.i, j = me.j, s = me.S;
|
|
882
|
+
while (count--) {
|
|
883
|
+
t = s[i = mask & i + 1];
|
|
884
|
+
r = r * width + s[mask & (s[i] = s[j = mask & j + t]) + (s[j] = t)];
|
|
885
|
+
}
|
|
886
|
+
me.i = i;
|
|
887
|
+
me.j = j;
|
|
888
|
+
return r;
|
|
889
|
+
})(width);
|
|
890
|
+
}
|
|
891
|
+
function copy(f, t) {
|
|
892
|
+
t.i = f.i;
|
|
893
|
+
t.j = f.j;
|
|
894
|
+
t.S = f.S.slice();
|
|
895
|
+
return t;
|
|
896
|
+
}
|
|
897
|
+
function flatten(obj, depth) {
|
|
898
|
+
var result = [], typ = typeof obj, prop;
|
|
899
|
+
if (depth && typ == "object") for (prop in obj) try {
|
|
900
|
+
result.push(flatten(obj[prop], depth - 1));
|
|
901
|
+
} catch (e) {}
|
|
902
|
+
return result.length ? result : typ == "string" ? obj : obj + "\0";
|
|
903
|
+
}
|
|
904
|
+
function mixkey(seed, key) {
|
|
905
|
+
var stringseed = seed + "", smear, j = 0;
|
|
906
|
+
while (j < stringseed.length) key[mask & j] = mask & (smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++);
|
|
907
|
+
return tostring(key);
|
|
908
|
+
}
|
|
909
|
+
function autoseed() {
|
|
910
|
+
try {
|
|
911
|
+
var out;
|
|
912
|
+
if (nodecrypto && (out = nodecrypto.randomBytes)) out = out(width);
|
|
913
|
+
else {
|
|
914
|
+
out = new Uint8Array(width);
|
|
915
|
+
(global.crypto || global.msCrypto).getRandomValues(out);
|
|
916
|
+
}
|
|
917
|
+
return tostring(out);
|
|
918
|
+
} catch (e) {
|
|
919
|
+
var browser = global.navigator, plugins = browser && browser.plugins;
|
|
920
|
+
return [
|
|
921
|
+
+/* @__PURE__ */ new Date(),
|
|
922
|
+
global,
|
|
923
|
+
plugins,
|
|
924
|
+
global.screen,
|
|
925
|
+
tostring(pool)
|
|
926
|
+
];
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
function tostring(a) {
|
|
930
|
+
return String.fromCharCode.apply(0, a);
|
|
931
|
+
}
|
|
932
|
+
mixkey(math.random(), pool);
|
|
933
|
+
if (typeof module == "object" && module.exports) {
|
|
934
|
+
module.exports = seedrandom;
|
|
935
|
+
try {
|
|
936
|
+
nodecrypto = require___vite_browser_external();
|
|
937
|
+
} catch (ex) {}
|
|
938
|
+
} else if (typeof define == "function" && define.amd) define(function() {
|
|
939
|
+
return seedrandom;
|
|
940
|
+
});
|
|
941
|
+
else math["seed" + rngname] = seedrandom;
|
|
942
|
+
})(typeof self !== "undefined" ? self : exports, [], Math);
|
|
943
|
+
}));
|
|
944
|
+
//#endregion
|
|
945
|
+
//#region src/libmodule/randomSequence.ts
|
|
946
|
+
var import_seedrandom = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
947
|
+
var alea = require_alea();
|
|
948
|
+
var xor128 = require_xor128();
|
|
949
|
+
var xorwow = require_xorwow();
|
|
950
|
+
var xorshift7 = require_xorshift7();
|
|
951
|
+
var xor4096 = require_xor4096();
|
|
952
|
+
var tychei = require_tychei();
|
|
953
|
+
var sr = require_seedrandom$1();
|
|
954
|
+
sr.alea = alea;
|
|
955
|
+
sr.xor128 = xor128;
|
|
956
|
+
sr.xorwow = xorwow;
|
|
957
|
+
sr.xorshift7 = xorshift7;
|
|
958
|
+
sr.xor4096 = xor4096;
|
|
959
|
+
sr.tychei = tychei;
|
|
960
|
+
module.exports = sr;
|
|
961
|
+
})))(), 1);
|
|
962
|
+
function getRandomIterationOrder(iterations, seed) {
|
|
963
|
+
const rng = (0, import_seedrandom.default)(seed);
|
|
964
|
+
const values = Array.from({ length: iterations }, (_, i) => i);
|
|
965
|
+
for (let i = values.length - 1; i > 0; i--) {
|
|
966
|
+
const j = Math.floor(rng() * (i + 1));
|
|
967
|
+
[values[i], values[j]] = [values[j], values[i]];
|
|
968
|
+
}
|
|
969
|
+
return values;
|
|
970
|
+
}
|
|
971
|
+
//#endregion
|
|
380
972
|
//#region src/libmodule/testCaseFhirBase.ts
|
|
381
973
|
var TestCaseFhirBase = class {
|
|
382
974
|
#options;
|
|
@@ -386,6 +978,7 @@ var TestCaseFhirBase = class {
|
|
|
386
978
|
#maxBufferSize = 50;
|
|
387
979
|
#publishTelemetryTimeout = null;
|
|
388
980
|
#publishTelemetryTimeoutVal = 1e3;
|
|
981
|
+
randomSequence = [];
|
|
389
982
|
_RetryMap = [
|
|
390
983
|
100,
|
|
391
984
|
250,
|
|
@@ -407,6 +1000,10 @@ var TestCaseFhirBase = class {
|
|
|
407
1000
|
return this.#runnerExecutionWorker;
|
|
408
1001
|
}
|
|
409
1002
|
ResetClient = () => {};
|
|
1003
|
+
GetRandomSequenceFromIteration = () => {
|
|
1004
|
+
if (this.runner.iteration === 1) this.randomSequence = getRandomIterationOrder(this.runner.options.executionProfile.iterations, this.runner.options.description);
|
|
1005
|
+
return this.randomSequence[this.runner.iteration];
|
|
1006
|
+
};
|
|
410
1007
|
Error = (message) => {
|
|
411
1008
|
this.#runnerExecutionWorker.logger.error(message);
|
|
412
1009
|
this.#runner.instrumentData.message.push(chalk.red(`${message}`));
|
|
@@ -583,7 +1180,9 @@ var TestCaseFhirBase = class {
|
|
|
583
1180
|
return true;
|
|
584
1181
|
};
|
|
585
1182
|
_GetDetail = () => {
|
|
586
|
-
|
|
1183
|
+
const { runPrefix, testType, description } = this.runner.options;
|
|
1184
|
+
const { workerManagerId, iteration } = this.runner;
|
|
1185
|
+
return `runPrefix: [${runPrefix}], testType: [${testType}], description: [${description}], workerManagerId: [${workerManagerId}], Iteration: [${iteration}]`;
|
|
587
1186
|
};
|
|
588
1187
|
_CheckOutputLongDurationError = (snapshotStart, message) => {
|
|
589
1188
|
const snapShotEnd = performance.now();
|
|
@@ -748,7 +1347,7 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
|
|
|
748
1347
|
const __snapshot1 = performance.now();
|
|
749
1348
|
const client = await this.GetClient();
|
|
750
1349
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
751
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1350
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
752
1351
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
753
1352
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
754
1353
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -778,7 +1377,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
|
|
|
778
1377
|
const __snapshot1 = performance.now();
|
|
779
1378
|
const client = await this.GetClient();
|
|
780
1379
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
781
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1380
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
782
1381
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
783
1382
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
784
1383
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -838,7 +1437,7 @@ var TestCaseFhir05 = class extends TestCaseFhirQueryBase {
|
|
|
838
1437
|
const __snapshot1 = performance.now();
|
|
839
1438
|
const client = await this.GetClient();
|
|
840
1439
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
841
|
-
const originalPersonRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1440
|
+
const originalPersonRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "2");
|
|
842
1441
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
843
1442
|
if (originalPersonRecord && originalPersonRecord.text) {
|
|
844
1443
|
originalPersonRecord.text.div = `Put record TestCaseFhir05 ${this.runner.iteration}`;
|
|
@@ -877,7 +1476,7 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
|
|
|
877
1476
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
878
1477
|
const baseUrl = this.runner.options.fhirOptions.stsfhirbaseurl;
|
|
879
1478
|
const prefix = this.runner.options.personPrefix;
|
|
880
|
-
const personRecord = await this.GetPersonRecord(prefix, this.
|
|
1479
|
+
const personRecord = await this.GetPersonRecord(prefix, this.GetRandomSequenceFromIteration(), "3");
|
|
881
1480
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
882
1481
|
const url = new URL(`${baseUrl}/Person?family=${personRecord.name[0].family}`);
|
|
883
1482
|
let retVal;
|
|
@@ -1551,7 +2150,7 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
1551
2150
|
const __snapshot1 = performance.now();
|
|
1552
2151
|
const client = await this.GetClient();
|
|
1553
2152
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1554
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2153
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "3");
|
|
1555
2154
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1556
2155
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1557
2156
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -1573,7 +2172,7 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
|
|
|
1573
2172
|
const __snapshot1 = performance.now();
|
|
1574
2173
|
const client = await this.GetClient();
|
|
1575
2174
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1576
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2175
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "4");
|
|
1577
2176
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1578
2177
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1579
2178
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -1593,7 +2192,7 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
|
|
|
1593
2192
|
const __snapshot1 = performance.now();
|
|
1594
2193
|
const client = await this.GetClient();
|
|
1595
2194
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1596
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2195
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "5");
|
|
1597
2196
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1598
2197
|
if (personRecord.text) try {
|
|
1599
2198
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
|
|
@@ -1622,7 +2221,7 @@ var TestCaseFhir10 = class extends TestCaseFhirQueryBase {
|
|
|
1622
2221
|
const __snapshot1 = performance.now();
|
|
1623
2222
|
const client = await this.GetClient();
|
|
1624
2223
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1625
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2224
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
1626
2225
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1627
2226
|
const retVal = await client.GetHistoryInstanceFhirResource("Person", personRecord.id, "2");
|
|
1628
2227
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetHistoryInstanceFhirResource()");
|