@flock/wirespec 0.18.5 → 0.19.0-RC.2
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1574 -1574
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
- package/kotest-kotest-common.mjs +56 -0
- package/kotest-kotest-common.mjs.map +1 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
- package/kotest-kotest-property.mjs +3230 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotest-property-arbs.mjs +482 -0
- package/kotest-property-arbs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5618 -2436
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4931 -4931
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +453 -453
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1364 -1364
- package/package.json +9 -2
- package/wirespec-generator.d.ts +52 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1542 -1541
- package/wirespec-src-compiler-emitters-java.mjs +476 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +359 -296
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +560 -362
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +754 -443
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +243 -164
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +709 -420
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +6676 -4858
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1537 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +185 -185
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +11 -0
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +53 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/xmlutil-core.mjs +4 -0
- package/xmlutil-core.mjs.map +1 -0
- package/xmlutil-serialization.mjs +4 -0
- package/xmlutil-serialization.mjs.map +1 -0
|
@@ -0,0 +1,1537 @@
|
|
|
1
|
+
import {
|
|
2
|
+
arbitrary1ik44attdm5sy as arbitrary,
|
|
3
|
+
Companion_instance21ufaak2k5re2 as Companion_instance,
|
|
4
|
+
email3ic8oj0n0oyrf as email,
|
|
5
|
+
ipAddressV4jthf5xa96f07 as ipAddressV4,
|
|
6
|
+
maptmwiddfug6qu as map,
|
|
7
|
+
ArbitraryBuilderContext36lhfoq8yjoa7 as ArbitraryBuilderContext,
|
|
8
|
+
RandomSource31setsds6o53y as RandomSource,
|
|
9
|
+
Companion_instance3s3n1oxamd1r4 as Companion_instance_0,
|
|
10
|
+
int2h4godnt2s0rr as int,
|
|
11
|
+
next3ubxtqgi6adv7 as next,
|
|
12
|
+
long1rc5doehwhlin as long,
|
|
13
|
+
element2c9vnyy5405af as element,
|
|
14
|
+
byte3rz7pgzhi6m64 as byte,
|
|
15
|
+
byteArray2qqx36w76cyb0 as byteArray,
|
|
16
|
+
boolean22whamdaxmlpn as boolean,
|
|
17
|
+
float3e4skrs0ychqj as float,
|
|
18
|
+
doubletnd0mywl30ny as double,
|
|
19
|
+
} from './kotest-kotest-property.mjs';
|
|
20
|
+
import {
|
|
21
|
+
firstName10domhrpcz62y as firstName,
|
|
22
|
+
lastName17i5kkh04v6of as lastName,
|
|
23
|
+
nameuaz1e9clrjz1 as name,
|
|
24
|
+
usernames31yblbqvo7oif as usernames,
|
|
25
|
+
domain1vt3g0b27hby6 as domain,
|
|
26
|
+
color63ahufy180jy as color,
|
|
27
|
+
} from './kotest-property-arbs.mjs';
|
|
28
|
+
import {
|
|
29
|
+
StringBuilder_init_$Create$39ouzl6b47q8d as StringBuilder_init_$Create$,
|
|
30
|
+
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
31
|
+
Char__plus_impl_qi7pgjyhbgymrgrgr1 as Char__plus_impl_qi7pgj,
|
|
32
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
33
|
+
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
34
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
35
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
36
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
37
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
38
|
+
toString3dhdjl9yf50de as toString,
|
|
39
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
40
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
41
|
+
to2cs3ny02qtbcb as to,
|
|
42
|
+
mapOf1xd03cq9cnmy8 as mapOf,
|
|
43
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
44
|
+
toString1pkumu07cwy4m as toString_0,
|
|
45
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
46
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
47
|
+
equals2au1ep9vhcato as equals,
|
|
48
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
49
|
+
toString30pk9tzaqopn as toString_1,
|
|
50
|
+
getNumberHashCode2l4nbdcihl25f as getNumberHashCode,
|
|
51
|
+
Long2qws0ah9gnpki as Long,
|
|
52
|
+
LinkedHashMap_init_$Create$3t495nfs82xn as LinkedHashMap_init_$Create$,
|
|
53
|
+
toMapcf6xfku344cz as toMap,
|
|
54
|
+
joinToString1cxrrlmo0chqs as joinToString,
|
|
55
|
+
fromInt1lka3ktyu79a4 as fromInt,
|
|
56
|
+
bitwiseXor10gmbxn4rolze as bitwiseXor,
|
|
57
|
+
plus20p0vtfmu0596 as plus,
|
|
58
|
+
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
59
|
+
longRangeToLong1wnzlyc7cu6kp as longRangeToLong,
|
|
60
|
+
lastOrNull1aq5oz189qoe1 as lastOrNull,
|
|
61
|
+
last1vo29oleiqj36 as last,
|
|
62
|
+
toInt2q8uldh7sc951 as toInt,
|
|
63
|
+
toLongkk4waq8msp1k as toLong,
|
|
64
|
+
toIntOrNull3w2d066r9pvwm as toIntOrNull,
|
|
65
|
+
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
66
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
67
|
+
listOfvhqybd2zx248 as listOf,
|
|
68
|
+
dropLast1vpiyky649o34 as dropLast,
|
|
69
|
+
Collection1k04j3hzsbod0 as Collection,
|
|
70
|
+
KtMap140uvy3s5zad8 as KtMap,
|
|
71
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
72
|
+
mapOf2zpbbmyqk8xpf as mapOf_0,
|
|
73
|
+
until1jbpn0z3f8lbg as until,
|
|
74
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
75
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
76
|
+
emptyList1g2z5xcrvp2zy as emptyList,
|
|
77
|
+
ArrayDeque_init_$Create$2zj52gw2joiw7 as ArrayDeque_init_$Create$,
|
|
78
|
+
toList383f556t1dixk as toList,
|
|
79
|
+
isNumberiramasdbon0i as isNumber,
|
|
80
|
+
numberToLong345n6tb1n1i71 as numberToLong,
|
|
81
|
+
numberToInt1ygmcfwhs2fkq as numberToInt,
|
|
82
|
+
numberToDouble210hrknaofnhf as numberToDouble,
|
|
83
|
+
PrimitiveClasses_getInstance6p7zmos9nw3c as PrimitiveClasses_getInstance,
|
|
84
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
85
|
+
createKType31ecntyyaay3k as createKType,
|
|
86
|
+
emptyMapr06gerzljqtm as emptyMap,
|
|
87
|
+
isArray1hxjqtqy632bc as isArray,
|
|
88
|
+
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
89
|
+
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
90
|
+
LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$_0,
|
|
91
|
+
KtList3hktaavzmj137 as KtList,
|
|
92
|
+
toNumberlmbpvqo27r53 as toNumber,
|
|
93
|
+
copyToArray2j022khrow2yi as copyToArray,
|
|
94
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
95
|
+
import { Companion_instance1r96eeuvb7uhy as Companion_instance_1 } from './kotlin-rgxgen.mjs';
|
|
96
|
+
//region block: imports
|
|
97
|
+
var imul = Math.imul;
|
|
98
|
+
//endregion
|
|
99
|
+
//region block: pre-declaration
|
|
100
|
+
initMetadataForLambda(uuidArb$slambda, CoroutineImpl, VOID, [2]);
|
|
101
|
+
initMetadataForInterface(KotestField, 'KotestField');
|
|
102
|
+
initMetadataForClass(KotestFieldString, 'KotestFieldString', VOID, VOID, [KotestField]);
|
|
103
|
+
initMetadataForClass(KotestFieldInteger64, 'KotestFieldInteger64', VOID, VOID, [KotestField]);
|
|
104
|
+
initMetadataForClass(KotestFieldInteger32, 'KotestFieldInteger32', VOID, VOID, [KotestField]);
|
|
105
|
+
initMetadataForClass(KotestFieldNumber64, 'KotestFieldNumber64', VOID, VOID, [KotestField]);
|
|
106
|
+
initMetadataForClass(KotestFieldNumber32, 'KotestFieldNumber32', VOID, VOID, [KotestField]);
|
|
107
|
+
initMetadataForClass(KotestFieldBoolean, 'KotestFieldBoolean', VOID, VOID, [KotestField]);
|
|
108
|
+
initMetadataForClass(KotestFieldBytes, 'KotestFieldBytes', VOID, VOID, [KotestField]);
|
|
109
|
+
initMetadataForClass(KotestFieldEnum, 'KotestFieldEnum', VOID, VOID, [KotestField]);
|
|
110
|
+
initMetadataForClass(KotestFieldUnion, 'KotestFieldUnion', VOID, VOID, [KotestField]);
|
|
111
|
+
initMetadataForClass(KotestFieldArray, 'KotestFieldArray', VOID, VOID, [KotestField]);
|
|
112
|
+
initMetadataForClass(KotestFieldNullable, 'KotestFieldNullable', VOID, VOID, [KotestField]);
|
|
113
|
+
initMetadataForClass(KotestFieldShape, 'KotestFieldShape', VOID, VOID, [KotestField]);
|
|
114
|
+
initMetadataForClass(KotestFieldDict, 'KotestFieldDict', VOID, VOID, [KotestField]);
|
|
115
|
+
initMetadataForClass(KotestWirespecGeneratorBuilder, 'KotestWirespecGeneratorBuilder');
|
|
116
|
+
initMetadataForClass(PendingSeed, 'PendingSeed');
|
|
117
|
+
initMetadataForClass(Capture, 'Capture');
|
|
118
|
+
initMetadataForClass(KotestWirespecGenerator, 'KotestWirespecGenerator');
|
|
119
|
+
initMetadataForClass(KotestWirespecGeneratorJs, 'KotestWirespecGeneratorJs');
|
|
120
|
+
//endregion
|
|
121
|
+
function get_DEFAULT_ARBS() {
|
|
122
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
123
|
+
return DEFAULT_ARBS;
|
|
124
|
+
}
|
|
125
|
+
var DEFAULT_ARBS;
|
|
126
|
+
function uuidArb() {
|
|
127
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
128
|
+
return arbitrary(uuidArb$slambda_0(null));
|
|
129
|
+
}
|
|
130
|
+
function DEFAULT_ARBS$lambda() {
|
|
131
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
132
|
+
return email(Companion_instance);
|
|
133
|
+
}
|
|
134
|
+
function DEFAULT_ARBS$lambda_0() {
|
|
135
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
136
|
+
return ipAddressV4(Companion_instance);
|
|
137
|
+
}
|
|
138
|
+
function DEFAULT_ARBS$lambda_1() {
|
|
139
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
140
|
+
return uuidArb();
|
|
141
|
+
}
|
|
142
|
+
function DEFAULT_ARBS$lambda_2() {
|
|
143
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
144
|
+
var tmp = firstName(Companion_instance);
|
|
145
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda);
|
|
146
|
+
}
|
|
147
|
+
function DEFAULT_ARBS$lambda$lambda(it) {
|
|
148
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
149
|
+
return it.e64_1;
|
|
150
|
+
}
|
|
151
|
+
function DEFAULT_ARBS$lambda_3() {
|
|
152
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
153
|
+
var tmp = lastName(Companion_instance);
|
|
154
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_0);
|
|
155
|
+
}
|
|
156
|
+
function DEFAULT_ARBS$lambda$lambda_0(it) {
|
|
157
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
158
|
+
return it.f64_1;
|
|
159
|
+
}
|
|
160
|
+
function DEFAULT_ARBS$lambda_4() {
|
|
161
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
162
|
+
var tmp = name(Companion_instance);
|
|
163
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_1);
|
|
164
|
+
}
|
|
165
|
+
function DEFAULT_ARBS$lambda$lambda_1(it) {
|
|
166
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
167
|
+
return it.g64_1.e64_1 + ' ' + it.h64_1.f64_1;
|
|
168
|
+
}
|
|
169
|
+
function DEFAULT_ARBS$lambda_5() {
|
|
170
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
171
|
+
var tmp = name(Companion_instance);
|
|
172
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_2);
|
|
173
|
+
}
|
|
174
|
+
function DEFAULT_ARBS$lambda$lambda_2(it) {
|
|
175
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
176
|
+
return it.g64_1.e64_1 + ' ' + it.h64_1.f64_1;
|
|
177
|
+
}
|
|
178
|
+
function DEFAULT_ARBS$lambda_6() {
|
|
179
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
180
|
+
var tmp = usernames(Companion_instance);
|
|
181
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_3);
|
|
182
|
+
}
|
|
183
|
+
function DEFAULT_ARBS$lambda$lambda_3(it) {
|
|
184
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
185
|
+
return it.e65_1;
|
|
186
|
+
}
|
|
187
|
+
function DEFAULT_ARBS$lambda_7() {
|
|
188
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
189
|
+
var tmp = domain(Companion_instance);
|
|
190
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_4);
|
|
191
|
+
}
|
|
192
|
+
function DEFAULT_ARBS$lambda$lambda_4(it) {
|
|
193
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
194
|
+
return it.r63_1;
|
|
195
|
+
}
|
|
196
|
+
function DEFAULT_ARBS$lambda_8() {
|
|
197
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
198
|
+
var tmp = color(Companion_instance);
|
|
199
|
+
return map(tmp, DEFAULT_ARBS$lambda$lambda_5);
|
|
200
|
+
}
|
|
201
|
+
function DEFAULT_ARBS$lambda$lambda_5(it) {
|
|
202
|
+
_init_properties_DefaultArbs_kt__g2g7w1();
|
|
203
|
+
return it.q63_1;
|
|
204
|
+
}
|
|
205
|
+
function invoke$hex(r, n) {
|
|
206
|
+
// Inline function 'kotlin.text.buildString' call
|
|
207
|
+
// Inline function 'kotlin.apply' call
|
|
208
|
+
var this_0 = StringBuilder_init_$Create$(n);
|
|
209
|
+
// Inline function 'kotlin.repeat' call
|
|
210
|
+
var inductionVariable = 0;
|
|
211
|
+
if (inductionVariable < n)
|
|
212
|
+
do {
|
|
213
|
+
var index = inductionVariable;
|
|
214
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
215
|
+
var v = r.j1(16);
|
|
216
|
+
this_0.s(v < 10 ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), v) : Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(97), v - 10 | 0));
|
|
217
|
+
}
|
|
218
|
+
while (inductionVariable < n);
|
|
219
|
+
return this_0.toString();
|
|
220
|
+
}
|
|
221
|
+
function uuidArb$slambda(resultContinuation) {
|
|
222
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
223
|
+
}
|
|
224
|
+
protoOf(uuidArb$slambda).a60 = function ($this$arbitrary, rs, $completion) {
|
|
225
|
+
var tmp = this.e5u($this$arbitrary, rs, $completion);
|
|
226
|
+
tmp.k9_1 = Unit_instance;
|
|
227
|
+
tmp.l9_1 = null;
|
|
228
|
+
return tmp.q9();
|
|
229
|
+
};
|
|
230
|
+
protoOf(uuidArb$slambda).w9 = function (p1, p2, $completion) {
|
|
231
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
232
|
+
return this.a60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
233
|
+
};
|
|
234
|
+
protoOf(uuidArb$slambda).q9 = function () {
|
|
235
|
+
var suspendResult = this.k9_1;
|
|
236
|
+
$sm: do
|
|
237
|
+
try {
|
|
238
|
+
var tmp = this.i9_1;
|
|
239
|
+
if (tmp === 0) {
|
|
240
|
+
this.j9_1 = 1;
|
|
241
|
+
var r = this.z65_1.r5r_1;
|
|
242
|
+
var timeLow = invoke$hex(r, 8);
|
|
243
|
+
var timeMid = invoke$hex(r, 4);
|
|
244
|
+
var timeHi = '4' + invoke$hex(r, 3);
|
|
245
|
+
var variant = charCodeAt('89ab', r.j1(4));
|
|
246
|
+
var other = invoke$hex(r, 3);
|
|
247
|
+
var clockSeq = toString(variant) + other;
|
|
248
|
+
var node = invoke$hex(r, 12);
|
|
249
|
+
return timeLow + '-' + timeMid + '-' + timeHi + '-' + clockSeq + '-' + node;
|
|
250
|
+
} else if (tmp === 1) {
|
|
251
|
+
throw this.l9_1;
|
|
252
|
+
}
|
|
253
|
+
} catch ($p) {
|
|
254
|
+
var e = $p;
|
|
255
|
+
throw e;
|
|
256
|
+
}
|
|
257
|
+
while (true);
|
|
258
|
+
};
|
|
259
|
+
protoOf(uuidArb$slambda).e5u = function ($this$arbitrary, rs, completion) {
|
|
260
|
+
var i = new uuidArb$slambda(completion);
|
|
261
|
+
i.y65_1 = $this$arbitrary;
|
|
262
|
+
i.z65_1 = rs;
|
|
263
|
+
return i;
|
|
264
|
+
};
|
|
265
|
+
function uuidArb$slambda_0(resultContinuation) {
|
|
266
|
+
var i = new uuidArb$slambda(resultContinuation);
|
|
267
|
+
var l = function ($this$arbitrary, rs, $completion) {
|
|
268
|
+
return i.a60($this$arbitrary, rs, $completion);
|
|
269
|
+
};
|
|
270
|
+
l.$arity = 2;
|
|
271
|
+
return l;
|
|
272
|
+
}
|
|
273
|
+
var properties_initialized_DefaultArbs_kt_a0b75f;
|
|
274
|
+
function _init_properties_DefaultArbs_kt__g2g7w1() {
|
|
275
|
+
if (!properties_initialized_DefaultArbs_kt_a0b75f) {
|
|
276
|
+
properties_initialized_DefaultArbs_kt_a0b75f = true;
|
|
277
|
+
var tmp = to('email', DEFAULT_ARBS$lambda);
|
|
278
|
+
var tmp_0 = to('ipAddress', DEFAULT_ARBS$lambda_0);
|
|
279
|
+
var tmp_1 = to('uuid', DEFAULT_ARBS$lambda_1);
|
|
280
|
+
var tmp_2 = to('firstName', DEFAULT_ARBS$lambda_2);
|
|
281
|
+
var tmp_3 = to('lastName', DEFAULT_ARBS$lambda_3);
|
|
282
|
+
var tmp_4 = to('fullName', DEFAULT_ARBS$lambda_4);
|
|
283
|
+
var tmp_5 = to('name', DEFAULT_ARBS$lambda_5);
|
|
284
|
+
var tmp_6 = to('username', DEFAULT_ARBS$lambda_6);
|
|
285
|
+
var tmp_7 = to('domain', DEFAULT_ARBS$lambda_7);
|
|
286
|
+
DEFAULT_ARBS = mapOf([tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, to('color', DEFAULT_ARBS$lambda_8)]);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function KotestField() {
|
|
290
|
+
}
|
|
291
|
+
function KotestFieldString(regex, annotations) {
|
|
292
|
+
this.a66_1 = regex;
|
|
293
|
+
this.b66_1 = annotations;
|
|
294
|
+
}
|
|
295
|
+
protoOf(KotestFieldString).toString = function () {
|
|
296
|
+
return 'KotestFieldString(regex=' + this.a66_1 + ', annotations=' + toString_0(this.b66_1) + ')';
|
|
297
|
+
};
|
|
298
|
+
protoOf(KotestFieldString).hashCode = function () {
|
|
299
|
+
var result = this.a66_1 == null ? 0 : getStringHashCode(this.a66_1);
|
|
300
|
+
result = imul(result, 31) + hashCode(this.b66_1) | 0;
|
|
301
|
+
return result;
|
|
302
|
+
};
|
|
303
|
+
protoOf(KotestFieldString).equals = function (other) {
|
|
304
|
+
if (this === other)
|
|
305
|
+
return true;
|
|
306
|
+
if (!(other instanceof KotestFieldString))
|
|
307
|
+
return false;
|
|
308
|
+
if (!(this.a66_1 == other.a66_1))
|
|
309
|
+
return false;
|
|
310
|
+
if (!equals(this.b66_1, other.b66_1))
|
|
311
|
+
return false;
|
|
312
|
+
return true;
|
|
313
|
+
};
|
|
314
|
+
function KotestFieldInteger64(min, max, annotations) {
|
|
315
|
+
this.c66_1 = min;
|
|
316
|
+
this.d66_1 = max;
|
|
317
|
+
this.e66_1 = annotations;
|
|
318
|
+
}
|
|
319
|
+
protoOf(KotestFieldInteger64).toString = function () {
|
|
320
|
+
return 'KotestFieldInteger64(min=' + toString_1(this.c66_1) + ', max=' + toString_1(this.d66_1) + ', annotations=' + toString_0(this.e66_1) + ')';
|
|
321
|
+
};
|
|
322
|
+
protoOf(KotestFieldInteger64).hashCode = function () {
|
|
323
|
+
var result = this.c66_1 == null ? 0 : this.c66_1.hashCode();
|
|
324
|
+
result = imul(result, 31) + (this.d66_1 == null ? 0 : this.d66_1.hashCode()) | 0;
|
|
325
|
+
result = imul(result, 31) + hashCode(this.e66_1) | 0;
|
|
326
|
+
return result;
|
|
327
|
+
};
|
|
328
|
+
protoOf(KotestFieldInteger64).equals = function (other) {
|
|
329
|
+
if (this === other)
|
|
330
|
+
return true;
|
|
331
|
+
if (!(other instanceof KotestFieldInteger64))
|
|
332
|
+
return false;
|
|
333
|
+
if (!equals(this.c66_1, other.c66_1))
|
|
334
|
+
return false;
|
|
335
|
+
if (!equals(this.d66_1, other.d66_1))
|
|
336
|
+
return false;
|
|
337
|
+
if (!equals(this.e66_1, other.e66_1))
|
|
338
|
+
return false;
|
|
339
|
+
return true;
|
|
340
|
+
};
|
|
341
|
+
function KotestFieldInteger32(min, max, annotations) {
|
|
342
|
+
this.f66_1 = min;
|
|
343
|
+
this.g66_1 = max;
|
|
344
|
+
this.h66_1 = annotations;
|
|
345
|
+
}
|
|
346
|
+
protoOf(KotestFieldInteger32).toString = function () {
|
|
347
|
+
return 'KotestFieldInteger32(min=' + this.f66_1 + ', max=' + this.g66_1 + ', annotations=' + toString_0(this.h66_1) + ')';
|
|
348
|
+
};
|
|
349
|
+
protoOf(KotestFieldInteger32).hashCode = function () {
|
|
350
|
+
var result = this.f66_1 == null ? 0 : this.f66_1;
|
|
351
|
+
result = imul(result, 31) + (this.g66_1 == null ? 0 : this.g66_1) | 0;
|
|
352
|
+
result = imul(result, 31) + hashCode(this.h66_1) | 0;
|
|
353
|
+
return result;
|
|
354
|
+
};
|
|
355
|
+
protoOf(KotestFieldInteger32).equals = function (other) {
|
|
356
|
+
if (this === other)
|
|
357
|
+
return true;
|
|
358
|
+
if (!(other instanceof KotestFieldInteger32))
|
|
359
|
+
return false;
|
|
360
|
+
if (!(this.f66_1 == other.f66_1))
|
|
361
|
+
return false;
|
|
362
|
+
if (!(this.g66_1 == other.g66_1))
|
|
363
|
+
return false;
|
|
364
|
+
if (!equals(this.h66_1, other.h66_1))
|
|
365
|
+
return false;
|
|
366
|
+
return true;
|
|
367
|
+
};
|
|
368
|
+
function KotestFieldNumber64(min, max, annotations) {
|
|
369
|
+
this.i66_1 = min;
|
|
370
|
+
this.j66_1 = max;
|
|
371
|
+
this.k66_1 = annotations;
|
|
372
|
+
}
|
|
373
|
+
protoOf(KotestFieldNumber64).toString = function () {
|
|
374
|
+
return 'KotestFieldNumber64(min=' + this.i66_1 + ', max=' + this.j66_1 + ', annotations=' + toString_0(this.k66_1) + ')';
|
|
375
|
+
};
|
|
376
|
+
protoOf(KotestFieldNumber64).hashCode = function () {
|
|
377
|
+
var result = this.i66_1 == null ? 0 : getNumberHashCode(this.i66_1);
|
|
378
|
+
result = imul(result, 31) + (this.j66_1 == null ? 0 : getNumberHashCode(this.j66_1)) | 0;
|
|
379
|
+
result = imul(result, 31) + hashCode(this.k66_1) | 0;
|
|
380
|
+
return result;
|
|
381
|
+
};
|
|
382
|
+
protoOf(KotestFieldNumber64).equals = function (other) {
|
|
383
|
+
if (this === other)
|
|
384
|
+
return true;
|
|
385
|
+
if (!(other instanceof KotestFieldNumber64))
|
|
386
|
+
return false;
|
|
387
|
+
if (!equals(this.i66_1, other.i66_1))
|
|
388
|
+
return false;
|
|
389
|
+
if (!equals(this.j66_1, other.j66_1))
|
|
390
|
+
return false;
|
|
391
|
+
if (!equals(this.k66_1, other.k66_1))
|
|
392
|
+
return false;
|
|
393
|
+
return true;
|
|
394
|
+
};
|
|
395
|
+
function KotestFieldNumber32(min, max, annotations) {
|
|
396
|
+
this.l66_1 = min;
|
|
397
|
+
this.m66_1 = max;
|
|
398
|
+
this.n66_1 = annotations;
|
|
399
|
+
}
|
|
400
|
+
protoOf(KotestFieldNumber32).toString = function () {
|
|
401
|
+
return 'KotestFieldNumber32(min=' + this.l66_1 + ', max=' + this.m66_1 + ', annotations=' + toString_0(this.n66_1) + ')';
|
|
402
|
+
};
|
|
403
|
+
protoOf(KotestFieldNumber32).hashCode = function () {
|
|
404
|
+
var result = this.l66_1 == null ? 0 : getNumberHashCode(this.l66_1);
|
|
405
|
+
result = imul(result, 31) + (this.m66_1 == null ? 0 : getNumberHashCode(this.m66_1)) | 0;
|
|
406
|
+
result = imul(result, 31) + hashCode(this.n66_1) | 0;
|
|
407
|
+
return result;
|
|
408
|
+
};
|
|
409
|
+
protoOf(KotestFieldNumber32).equals = function (other) {
|
|
410
|
+
if (this === other)
|
|
411
|
+
return true;
|
|
412
|
+
if (!(other instanceof KotestFieldNumber32))
|
|
413
|
+
return false;
|
|
414
|
+
if (!equals(this.l66_1, other.l66_1))
|
|
415
|
+
return false;
|
|
416
|
+
if (!equals(this.m66_1, other.m66_1))
|
|
417
|
+
return false;
|
|
418
|
+
if (!equals(this.n66_1, other.n66_1))
|
|
419
|
+
return false;
|
|
420
|
+
return true;
|
|
421
|
+
};
|
|
422
|
+
function KotestFieldBoolean(annotations) {
|
|
423
|
+
this.o66_1 = annotations;
|
|
424
|
+
}
|
|
425
|
+
protoOf(KotestFieldBoolean).toString = function () {
|
|
426
|
+
return 'KotestFieldBoolean(annotations=' + toString_0(this.o66_1) + ')';
|
|
427
|
+
};
|
|
428
|
+
protoOf(KotestFieldBoolean).hashCode = function () {
|
|
429
|
+
return hashCode(this.o66_1);
|
|
430
|
+
};
|
|
431
|
+
protoOf(KotestFieldBoolean).equals = function (other) {
|
|
432
|
+
if (this === other)
|
|
433
|
+
return true;
|
|
434
|
+
if (!(other instanceof KotestFieldBoolean))
|
|
435
|
+
return false;
|
|
436
|
+
if (!equals(this.o66_1, other.o66_1))
|
|
437
|
+
return false;
|
|
438
|
+
return true;
|
|
439
|
+
};
|
|
440
|
+
function KotestFieldBytes(annotations) {
|
|
441
|
+
this.p66_1 = annotations;
|
|
442
|
+
}
|
|
443
|
+
protoOf(KotestFieldBytes).toString = function () {
|
|
444
|
+
return 'KotestFieldBytes(annotations=' + toString_0(this.p66_1) + ')';
|
|
445
|
+
};
|
|
446
|
+
protoOf(KotestFieldBytes).hashCode = function () {
|
|
447
|
+
return hashCode(this.p66_1);
|
|
448
|
+
};
|
|
449
|
+
protoOf(KotestFieldBytes).equals = function (other) {
|
|
450
|
+
if (this === other)
|
|
451
|
+
return true;
|
|
452
|
+
if (!(other instanceof KotestFieldBytes))
|
|
453
|
+
return false;
|
|
454
|
+
if (!equals(this.p66_1, other.p66_1))
|
|
455
|
+
return false;
|
|
456
|
+
return true;
|
|
457
|
+
};
|
|
458
|
+
function KotestFieldEnum(values, annotations, type) {
|
|
459
|
+
this.q66_1 = values;
|
|
460
|
+
this.r66_1 = annotations;
|
|
461
|
+
this.s66_1 = type;
|
|
462
|
+
}
|
|
463
|
+
protoOf(KotestFieldEnum).toString = function () {
|
|
464
|
+
return 'KotestFieldEnum(values=' + toString_0(this.q66_1) + ', annotations=' + toString_0(this.r66_1) + ', type=' + toString_0(this.s66_1) + ')';
|
|
465
|
+
};
|
|
466
|
+
protoOf(KotestFieldEnum).hashCode = function () {
|
|
467
|
+
var result = hashCode(this.q66_1);
|
|
468
|
+
result = imul(result, 31) + hashCode(this.r66_1) | 0;
|
|
469
|
+
result = imul(result, 31) + hashCode(this.s66_1) | 0;
|
|
470
|
+
return result;
|
|
471
|
+
};
|
|
472
|
+
protoOf(KotestFieldEnum).equals = function (other) {
|
|
473
|
+
if (this === other)
|
|
474
|
+
return true;
|
|
475
|
+
if (!(other instanceof KotestFieldEnum))
|
|
476
|
+
return false;
|
|
477
|
+
if (!equals(this.q66_1, other.q66_1))
|
|
478
|
+
return false;
|
|
479
|
+
if (!equals(this.r66_1, other.r66_1))
|
|
480
|
+
return false;
|
|
481
|
+
if (!equals(this.s66_1, other.s66_1))
|
|
482
|
+
return false;
|
|
483
|
+
return true;
|
|
484
|
+
};
|
|
485
|
+
function KotestFieldUnion(variants, annotations, type) {
|
|
486
|
+
this.t66_1 = variants;
|
|
487
|
+
this.u66_1 = annotations;
|
|
488
|
+
this.v66_1 = type;
|
|
489
|
+
}
|
|
490
|
+
protoOf(KotestFieldUnion).toString = function () {
|
|
491
|
+
return 'KotestFieldUnion(variants=' + toString_0(this.t66_1) + ', annotations=' + toString_0(this.u66_1) + ', type=' + toString_0(this.v66_1) + ')';
|
|
492
|
+
};
|
|
493
|
+
protoOf(KotestFieldUnion).hashCode = function () {
|
|
494
|
+
var result = hashCode(this.t66_1);
|
|
495
|
+
result = imul(result, 31) + hashCode(this.u66_1) | 0;
|
|
496
|
+
result = imul(result, 31) + hashCode(this.v66_1) | 0;
|
|
497
|
+
return result;
|
|
498
|
+
};
|
|
499
|
+
protoOf(KotestFieldUnion).equals = function (other) {
|
|
500
|
+
if (this === other)
|
|
501
|
+
return true;
|
|
502
|
+
if (!(other instanceof KotestFieldUnion))
|
|
503
|
+
return false;
|
|
504
|
+
if (!equals(this.t66_1, other.t66_1))
|
|
505
|
+
return false;
|
|
506
|
+
if (!equals(this.u66_1, other.u66_1))
|
|
507
|
+
return false;
|
|
508
|
+
if (!equals(this.v66_1, other.v66_1))
|
|
509
|
+
return false;
|
|
510
|
+
return true;
|
|
511
|
+
};
|
|
512
|
+
function KotestFieldArray(generate) {
|
|
513
|
+
this.w66_1 = generate;
|
|
514
|
+
}
|
|
515
|
+
protoOf(KotestFieldArray).toString = function () {
|
|
516
|
+
return 'KotestFieldArray(generate=' + toString_0(this.w66_1) + ')';
|
|
517
|
+
};
|
|
518
|
+
protoOf(KotestFieldArray).hashCode = function () {
|
|
519
|
+
return hashCode(this.w66_1);
|
|
520
|
+
};
|
|
521
|
+
protoOf(KotestFieldArray).equals = function (other) {
|
|
522
|
+
if (this === other)
|
|
523
|
+
return true;
|
|
524
|
+
if (!(other instanceof KotestFieldArray))
|
|
525
|
+
return false;
|
|
526
|
+
if (!equals(this.w66_1, other.w66_1))
|
|
527
|
+
return false;
|
|
528
|
+
return true;
|
|
529
|
+
};
|
|
530
|
+
function KotestFieldNullable(generate) {
|
|
531
|
+
this.x66_1 = generate;
|
|
532
|
+
}
|
|
533
|
+
protoOf(KotestFieldNullable).toString = function () {
|
|
534
|
+
return 'KotestFieldNullable(generate=' + toString_0(this.x66_1) + ')';
|
|
535
|
+
};
|
|
536
|
+
protoOf(KotestFieldNullable).hashCode = function () {
|
|
537
|
+
return hashCode(this.x66_1);
|
|
538
|
+
};
|
|
539
|
+
protoOf(KotestFieldNullable).equals = function (other) {
|
|
540
|
+
if (this === other)
|
|
541
|
+
return true;
|
|
542
|
+
if (!(other instanceof KotestFieldNullable))
|
|
543
|
+
return false;
|
|
544
|
+
if (!equals(this.x66_1, other.x66_1))
|
|
545
|
+
return false;
|
|
546
|
+
return true;
|
|
547
|
+
};
|
|
548
|
+
function KotestFieldShape(annotations, generate, type) {
|
|
549
|
+
this.y66_1 = annotations;
|
|
550
|
+
this.z66_1 = generate;
|
|
551
|
+
this.a67_1 = type;
|
|
552
|
+
}
|
|
553
|
+
protoOf(KotestFieldShape).toString = function () {
|
|
554
|
+
return 'KotestFieldShape(annotations=' + toString_0(this.y66_1) + ', generate=' + toString_0(this.z66_1) + ', type=' + toString_0(this.a67_1) + ')';
|
|
555
|
+
};
|
|
556
|
+
protoOf(KotestFieldShape).hashCode = function () {
|
|
557
|
+
var result = hashCode(this.y66_1);
|
|
558
|
+
result = imul(result, 31) + hashCode(this.z66_1) | 0;
|
|
559
|
+
result = imul(result, 31) + hashCode(this.a67_1) | 0;
|
|
560
|
+
return result;
|
|
561
|
+
};
|
|
562
|
+
protoOf(KotestFieldShape).equals = function (other) {
|
|
563
|
+
if (this === other)
|
|
564
|
+
return true;
|
|
565
|
+
if (!(other instanceof KotestFieldShape))
|
|
566
|
+
return false;
|
|
567
|
+
if (!equals(this.y66_1, other.y66_1))
|
|
568
|
+
return false;
|
|
569
|
+
if (!equals(this.z66_1, other.z66_1))
|
|
570
|
+
return false;
|
|
571
|
+
if (!equals(this.a67_1, other.a67_1))
|
|
572
|
+
return false;
|
|
573
|
+
return true;
|
|
574
|
+
};
|
|
575
|
+
function KotestFieldDict(generate) {
|
|
576
|
+
this.b67_1 = generate;
|
|
577
|
+
}
|
|
578
|
+
protoOf(KotestFieldDict).toString = function () {
|
|
579
|
+
return 'KotestFieldDict(generate=' + toString_0(this.b67_1) + ')';
|
|
580
|
+
};
|
|
581
|
+
protoOf(KotestFieldDict).hashCode = function () {
|
|
582
|
+
return hashCode(this.b67_1);
|
|
583
|
+
};
|
|
584
|
+
protoOf(KotestFieldDict).equals = function (other) {
|
|
585
|
+
if (this === other)
|
|
586
|
+
return true;
|
|
587
|
+
if (!(other instanceof KotestFieldDict))
|
|
588
|
+
return false;
|
|
589
|
+
if (!equals(this.b67_1, other.b67_1))
|
|
590
|
+
return false;
|
|
591
|
+
return true;
|
|
592
|
+
};
|
|
593
|
+
function kotestGenerator(seed, block) {
|
|
594
|
+
seed = seed === VOID ? new Long(0, 0) : seed;
|
|
595
|
+
var tmp;
|
|
596
|
+
if (block === VOID) {
|
|
597
|
+
tmp = kotestGenerator$lambda;
|
|
598
|
+
} else {
|
|
599
|
+
tmp = block;
|
|
600
|
+
}
|
|
601
|
+
block = tmp;
|
|
602
|
+
// Inline function 'kotlin.apply' call
|
|
603
|
+
var this_0 = new KotestWirespecGeneratorBuilder();
|
|
604
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
605
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
606
|
+
var _iterator__ex2g4s = get_DEFAULT_ARBS().l1().t();
|
|
607
|
+
while (_iterator__ex2g4s.u()) {
|
|
608
|
+
var element = _iterator__ex2g4s.v();
|
|
609
|
+
// Inline function 'kotlin.collections.component1' call
|
|
610
|
+
var name = element.m1();
|
|
611
|
+
// Inline function 'kotlin.collections.component2' call
|
|
612
|
+
var factory = element.n1();
|
|
613
|
+
this_0.d67(name, factory);
|
|
614
|
+
}
|
|
615
|
+
block(this_0);
|
|
616
|
+
var builder = this_0;
|
|
617
|
+
return new KotestWirespecGenerator(seed, builder.e67());
|
|
618
|
+
}
|
|
619
|
+
function KotestWirespecGeneratorBuilder() {
|
|
620
|
+
var tmp = this;
|
|
621
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
622
|
+
tmp.c67_1 = LinkedHashMap_init_$Create$();
|
|
623
|
+
}
|
|
624
|
+
protoOf(KotestWirespecGeneratorBuilder).d67 = function (name, factory) {
|
|
625
|
+
var tmp0 = this.c67_1;
|
|
626
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
627
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
628
|
+
// Inline function 'kotlin.collections.set' call
|
|
629
|
+
var key = name.toLowerCase();
|
|
630
|
+
tmp0.d3(key, factory);
|
|
631
|
+
};
|
|
632
|
+
protoOf(KotestWirespecGeneratorBuilder).e67 = function () {
|
|
633
|
+
return toMap(this.c67_1);
|
|
634
|
+
};
|
|
635
|
+
function PendingSeed(value, target, pathPrefix) {
|
|
636
|
+
this.f67_1 = value;
|
|
637
|
+
this.g67_1 = target;
|
|
638
|
+
this.h67_1 = pathPrefix;
|
|
639
|
+
}
|
|
640
|
+
protoOf(PendingSeed).toString = function () {
|
|
641
|
+
return 'PendingSeed(value=' + this.f67_1 + ', target=' + this.g67_1 + ', pathPrefix=' + toString_0(this.h67_1) + ')';
|
|
642
|
+
};
|
|
643
|
+
protoOf(PendingSeed).hashCode = function () {
|
|
644
|
+
var result = getStringHashCode(this.f67_1);
|
|
645
|
+
result = imul(result, 31) + getStringHashCode(this.g67_1) | 0;
|
|
646
|
+
result = imul(result, 31) + hashCode(this.h67_1) | 0;
|
|
647
|
+
return result;
|
|
648
|
+
};
|
|
649
|
+
protoOf(PendingSeed).equals = function (other) {
|
|
650
|
+
if (this === other)
|
|
651
|
+
return true;
|
|
652
|
+
if (!(other instanceof PendingSeed))
|
|
653
|
+
return false;
|
|
654
|
+
if (!(this.f67_1 === other.f67_1))
|
|
655
|
+
return false;
|
|
656
|
+
if (!(this.g67_1 === other.g67_1))
|
|
657
|
+
return false;
|
|
658
|
+
if (!equals(this.h67_1, other.h67_1))
|
|
659
|
+
return false;
|
|
660
|
+
return true;
|
|
661
|
+
};
|
|
662
|
+
function Capture(shapePath, fieldName) {
|
|
663
|
+
this.i67_1 = shapePath;
|
|
664
|
+
this.j67_1 = fieldName;
|
|
665
|
+
this.k67_1 = null;
|
|
666
|
+
}
|
|
667
|
+
function rsFor($this, path) {
|
|
668
|
+
return Companion_instance_0.p63(bitwiseXor($this.l67_1, fromInt(getStringHashCode(joinToString(path, '/')))));
|
|
669
|
+
}
|
|
670
|
+
function captureSeedIfMatches($this, path, field) {
|
|
671
|
+
var tmp0_elvis_lhs = $this.o67_1.cf();
|
|
672
|
+
var tmp;
|
|
673
|
+
if (tmp0_elvis_lhs == null) {
|
|
674
|
+
return null;
|
|
675
|
+
} else {
|
|
676
|
+
tmp = tmp0_elvis_lhs;
|
|
677
|
+
}
|
|
678
|
+
var capture = tmp;
|
|
679
|
+
if (!(capture.k67_1 == null))
|
|
680
|
+
return null;
|
|
681
|
+
var expectedPrefix = plus(capture.i67_1, capture.j67_1);
|
|
682
|
+
if (path.b1() < expectedPrefix.b1() || !equals(path.r2(0, expectedPrefix.b1()), expectedPrefix))
|
|
683
|
+
return null;
|
|
684
|
+
var rs = rsFor($this, path);
|
|
685
|
+
var tmp_0;
|
|
686
|
+
if (field instanceof KotestFieldString) {
|
|
687
|
+
var tmp_1;
|
|
688
|
+
if (field.a66_1 == null) {
|
|
689
|
+
tmp_1 = null;
|
|
690
|
+
} else {
|
|
691
|
+
// Inline function 'kotlin.let' call
|
|
692
|
+
tmp_1 = '';
|
|
693
|
+
}
|
|
694
|
+
var tmp3_elvis_lhs = tmp_1;
|
|
695
|
+
var tmp_2;
|
|
696
|
+
if (tmp3_elvis_lhs == null) {
|
|
697
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
698
|
+
var tmp0_elvis_lhs_0 = lastOrNull(path);
|
|
699
|
+
tmp_2 = (tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0) + '-';
|
|
700
|
+
} else {
|
|
701
|
+
tmp_2 = tmp3_elvis_lhs;
|
|
702
|
+
}
|
|
703
|
+
var prefix = tmp_2;
|
|
704
|
+
var tmp4_elvis_lhs = field.a66_1;
|
|
705
|
+
var regex = tmp4_elvis_lhs == null ? '\\w{8}' : tmp4_elvis_lhs;
|
|
706
|
+
var value = prefix + Companion_instance_1.k4f(regex).t4f(rs.r5r_1);
|
|
707
|
+
capture.k67_1 = value;
|
|
708
|
+
tmp_0 = value;
|
|
709
|
+
} else {
|
|
710
|
+
if (field instanceof KotestFieldInteger64) {
|
|
711
|
+
var tmp5_elvis_lhs = field.c66_1;
|
|
712
|
+
var lo = tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs;
|
|
713
|
+
var tmp6_elvis_lhs = field.d66_1;
|
|
714
|
+
var hi = tmp6_elvis_lhs == null ? new Long(-1, 2147483647) : tmp6_elvis_lhs;
|
|
715
|
+
var value_0 = next(long(Companion_instance, longRangeToLong(lo, hi)), rs);
|
|
716
|
+
capture.k67_1 = value_0.toString();
|
|
717
|
+
tmp_0 = value_0;
|
|
718
|
+
} else {
|
|
719
|
+
if (field instanceof KotestFieldInteger32) {
|
|
720
|
+
var tmp7_elvis_lhs = field.f66_1;
|
|
721
|
+
var lo_0 = tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs;
|
|
722
|
+
var tmp8_elvis_lhs = field.g66_1;
|
|
723
|
+
var hi_0 = tmp8_elvis_lhs == null ? 2147483647 : tmp8_elvis_lhs;
|
|
724
|
+
var value_1 = next(int(Companion_instance, numberRangeToNumber(lo_0, hi_0)), rs);
|
|
725
|
+
capture.k67_1 = value_1.toString();
|
|
726
|
+
tmp_0 = value_1;
|
|
727
|
+
} else {
|
|
728
|
+
tmp_0 = null;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return tmp_0;
|
|
733
|
+
}
|
|
734
|
+
function consumePendingSeedIfMatches($this, path, field) {
|
|
735
|
+
var tmp0_elvis_lhs = $this.n67_1.cf();
|
|
736
|
+
var tmp;
|
|
737
|
+
if (tmp0_elvis_lhs == null) {
|
|
738
|
+
return null;
|
|
739
|
+
} else {
|
|
740
|
+
tmp = tmp0_elvis_lhs;
|
|
741
|
+
}
|
|
742
|
+
var pending = tmp;
|
|
743
|
+
if (!(path.b1() === (pending.h67_1.b1() + 1 | 0)))
|
|
744
|
+
return null;
|
|
745
|
+
if (!(last(path) === pending.g67_1))
|
|
746
|
+
return null;
|
|
747
|
+
if (!equals(path.r2(0, pending.h67_1.b1()), pending.h67_1))
|
|
748
|
+
return null;
|
|
749
|
+
var tmp_0;
|
|
750
|
+
if (field instanceof KotestFieldString) {
|
|
751
|
+
$this.n67_1.gf();
|
|
752
|
+
tmp_0 = pending.f67_1;
|
|
753
|
+
} else {
|
|
754
|
+
if (field instanceof KotestFieldInteger64) {
|
|
755
|
+
$this.n67_1.gf();
|
|
756
|
+
tmp_0 = toLong(pending.f67_1);
|
|
757
|
+
} else {
|
|
758
|
+
if (field instanceof KotestFieldInteger32) {
|
|
759
|
+
$this.n67_1.gf();
|
|
760
|
+
tmp_0 = toInt(pending.f67_1);
|
|
761
|
+
} else {
|
|
762
|
+
tmp_0 = null;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return tmp_0;
|
|
767
|
+
}
|
|
768
|
+
function seedAnnotationValueFor($this, field, candidate) {
|
|
769
|
+
var tmp;
|
|
770
|
+
if (field instanceof KotestFieldString) {
|
|
771
|
+
tmp = candidate;
|
|
772
|
+
} else {
|
|
773
|
+
if (field instanceof KotestFieldInteger64) {
|
|
774
|
+
tmp = toLongOrNull(candidate);
|
|
775
|
+
} else {
|
|
776
|
+
if (field instanceof KotestFieldInteger32) {
|
|
777
|
+
tmp = toIntOrNull(candidate);
|
|
778
|
+
} else {
|
|
779
|
+
tmp = null;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
return tmp;
|
|
784
|
+
}
|
|
785
|
+
function generateSeededShape($this, path, field, seedFieldName) {
|
|
786
|
+
var tmp0_safe_receiver = lastOrNull(path);
|
|
787
|
+
var isArrayContext = !((tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver)) == null);
|
|
788
|
+
if (isArrayContext && $this.o67_1.r()) {
|
|
789
|
+
var capture = new Capture(path, seedFieldName);
|
|
790
|
+
// Inline function 'community.flock.wirespec.integration.kotest.withFrame' call
|
|
791
|
+
var stack = $this.o67_1;
|
|
792
|
+
var mark = stack.ze_1;
|
|
793
|
+
stack.ef(capture);
|
|
794
|
+
var tmp;
|
|
795
|
+
try {
|
|
796
|
+
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withShapeDepth' call
|
|
797
|
+
$this.p67_1 = $this.p67_1 + 1 | 0;
|
|
798
|
+
var tmp_0;
|
|
799
|
+
try {
|
|
800
|
+
tmp_0 = field.z66_1(path);
|
|
801
|
+
}finally {
|
|
802
|
+
$this.p67_1 = $this.p67_1 - 1 | 0;
|
|
803
|
+
}
|
|
804
|
+
var tmp0_elvis_lhs = capture.k67_1;
|
|
805
|
+
var tmp_1;
|
|
806
|
+
if (tmp0_elvis_lhs == null) {
|
|
807
|
+
var message = 'Failed to capture @Seed value at ' + toString_0(path) + ' for field ' + seedFieldName;
|
|
808
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
809
|
+
} else {
|
|
810
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
811
|
+
}
|
|
812
|
+
tmp = tmp_1;
|
|
813
|
+
}finally {
|
|
814
|
+
while (stack.ze_1 > mark) {
|
|
815
|
+
stack.gf();
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
var seed = tmp;
|
|
819
|
+
return field.z66_1(listOf(seed));
|
|
820
|
+
}
|
|
821
|
+
var tmp1_elvis_lhs = lastOrNull(dropLast(path, 1));
|
|
822
|
+
var tmp_2;
|
|
823
|
+
if (tmp1_elvis_lhs == null) {
|
|
824
|
+
return null;
|
|
825
|
+
} else {
|
|
826
|
+
tmp_2 = tmp1_elvis_lhs;
|
|
827
|
+
}
|
|
828
|
+
var candidate = tmp_2;
|
|
829
|
+
var tmp0 = $this.n67_1;
|
|
830
|
+
// Inline function 'community.flock.wirespec.integration.kotest.withFrame' call
|
|
831
|
+
var frame = new PendingSeed(candidate, seedFieldName, path);
|
|
832
|
+
var mark_0 = tmp0.ze_1;
|
|
833
|
+
tmp0.ef(frame);
|
|
834
|
+
var tmp_3;
|
|
835
|
+
try {
|
|
836
|
+
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withShapeDepth' call
|
|
837
|
+
$this.p67_1 = $this.p67_1 + 1 | 0;
|
|
838
|
+
var tmp_4;
|
|
839
|
+
try {
|
|
840
|
+
tmp_4 = field.z66_1(path);
|
|
841
|
+
}finally {
|
|
842
|
+
$this.p67_1 = $this.p67_1 - 1 | 0;
|
|
843
|
+
}
|
|
844
|
+
tmp_3 = tmp_4;
|
|
845
|
+
}finally {
|
|
846
|
+
while (tmp0.ze_1 > mark_0) {
|
|
847
|
+
tmp0.gf();
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
return tmp_3;
|
|
851
|
+
}
|
|
852
|
+
function seedFieldNameOf($this, field) {
|
|
853
|
+
var tmp0 = field.y66_1.l1();
|
|
854
|
+
var tmp$ret$4;
|
|
855
|
+
$l$block_1: {
|
|
856
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
857
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
858
|
+
while (_iterator__ex2g4s.u()) {
|
|
859
|
+
var element = _iterator__ex2g4s.v();
|
|
860
|
+
// Inline function 'kotlin.collections.component2' call
|
|
861
|
+
var anns = element.n1();
|
|
862
|
+
var tmp$ret$1;
|
|
863
|
+
$l$block_0: {
|
|
864
|
+
// Inline function 'kotlin.collections.any' call
|
|
865
|
+
var tmp;
|
|
866
|
+
if (isInterface(anns, Collection)) {
|
|
867
|
+
tmp = anns.r();
|
|
868
|
+
} else {
|
|
869
|
+
tmp = false;
|
|
870
|
+
}
|
|
871
|
+
if (tmp) {
|
|
872
|
+
tmp$ret$1 = false;
|
|
873
|
+
break $l$block_0;
|
|
874
|
+
}
|
|
875
|
+
var _iterator__ex2g4s_0 = anns.t();
|
|
876
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
877
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
878
|
+
if (equals(element_0.v2('name'), 'Seed')) {
|
|
879
|
+
tmp$ret$1 = true;
|
|
880
|
+
break $l$block_0;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
tmp$ret$1 = false;
|
|
884
|
+
}
|
|
885
|
+
if (tmp$ret$1) {
|
|
886
|
+
tmp$ret$4 = element;
|
|
887
|
+
break $l$block_1;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
tmp$ret$4 = null;
|
|
891
|
+
}
|
|
892
|
+
var tmp0_safe_receiver = tmp$ret$4;
|
|
893
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m1();
|
|
894
|
+
}
|
|
895
|
+
function namedGeneratorOrNull($this, _this__u8e3s4) {
|
|
896
|
+
var tmp$ret$1;
|
|
897
|
+
$l$block: {
|
|
898
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
899
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
900
|
+
while (_iterator__ex2g4s.u()) {
|
|
901
|
+
var element = _iterator__ex2g4s.v();
|
|
902
|
+
if (equals(element.v2('name'), 'Generator')) {
|
|
903
|
+
tmp$ret$1 = element;
|
|
904
|
+
break $l$block;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
tmp$ret$1 = null;
|
|
908
|
+
}
|
|
909
|
+
var tmp0_safe_receiver = tmp$ret$1;
|
|
910
|
+
var tmp;
|
|
911
|
+
if (tmp0_safe_receiver == null) {
|
|
912
|
+
tmp = null;
|
|
913
|
+
} else {
|
|
914
|
+
// Inline function 'kotlin.let' call
|
|
915
|
+
var tmp_0 = tmp0_safe_receiver.v2('parameters');
|
|
916
|
+
var tmp0_safe_receiver_0 = (!(tmp_0 == null) ? isInterface(tmp_0, KtMap) : false) ? tmp_0 : null;
|
|
917
|
+
var tmp_1;
|
|
918
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
919
|
+
tmp_1 = null;
|
|
920
|
+
} else {
|
|
921
|
+
// Inline function 'kotlin.collections.get' call
|
|
922
|
+
tmp_1 = (isInterface(tmp0_safe_receiver_0, KtMap) ? tmp0_safe_receiver_0 : THROW_CCE()).v2('default');
|
|
923
|
+
}
|
|
924
|
+
var tmp_2 = tmp_1;
|
|
925
|
+
tmp = (!(tmp_2 == null) ? typeof tmp_2 === 'string' : false) ? tmp_2 : null;
|
|
926
|
+
}
|
|
927
|
+
return tmp;
|
|
928
|
+
}
|
|
929
|
+
function generateLeaf($this, field, path) {
|
|
930
|
+
var rs = rsFor($this, path);
|
|
931
|
+
var tmp;
|
|
932
|
+
if (field instanceof KotestFieldString) {
|
|
933
|
+
var tmp_0;
|
|
934
|
+
if (field.a66_1 == null) {
|
|
935
|
+
tmp_0 = null;
|
|
936
|
+
} else {
|
|
937
|
+
// Inline function 'kotlin.let' call
|
|
938
|
+
tmp_0 = '';
|
|
939
|
+
}
|
|
940
|
+
var tmp2_elvis_lhs = tmp_0;
|
|
941
|
+
var tmp_1;
|
|
942
|
+
if (tmp2_elvis_lhs == null) {
|
|
943
|
+
// Inline function 'kotlin.text.orEmpty' call
|
|
944
|
+
var tmp0_elvis_lhs = lastOrNull(path);
|
|
945
|
+
tmp_1 = (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + '-';
|
|
946
|
+
} else {
|
|
947
|
+
tmp_1 = tmp2_elvis_lhs;
|
|
948
|
+
}
|
|
949
|
+
var prefix = tmp_1;
|
|
950
|
+
var tmp3_elvis_lhs = field.a66_1;
|
|
951
|
+
var regex = tmp3_elvis_lhs == null ? '\\w{8}' : tmp3_elvis_lhs;
|
|
952
|
+
var tmp_2 = prefix + Companion_instance_1.k4f(regex).t4f(rs.r5r_1);
|
|
953
|
+
tmp = !(tmp_2 == null) ? tmp_2 : THROW_CCE();
|
|
954
|
+
} else {
|
|
955
|
+
if (field instanceof KotestFieldInteger64) {
|
|
956
|
+
var tmp4_elvis_lhs = field.c66_1;
|
|
957
|
+
var lo = tmp4_elvis_lhs == null ? new Long(0, -2147483648) : tmp4_elvis_lhs;
|
|
958
|
+
var tmp5_elvis_lhs = field.d66_1;
|
|
959
|
+
var hi = tmp5_elvis_lhs == null ? new Long(-1, 2147483647) : tmp5_elvis_lhs;
|
|
960
|
+
var tmp_3 = next(long(Companion_instance, longRangeToLong(lo, hi)), rs);
|
|
961
|
+
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
962
|
+
} else {
|
|
963
|
+
if (field instanceof KotestFieldInteger32) {
|
|
964
|
+
var tmp6_elvis_lhs = field.f66_1;
|
|
965
|
+
var lo_0 = tmp6_elvis_lhs == null ? -2147483648 : tmp6_elvis_lhs;
|
|
966
|
+
var tmp7_elvis_lhs = field.g66_1;
|
|
967
|
+
var hi_0 = tmp7_elvis_lhs == null ? 2147483647 : tmp7_elvis_lhs;
|
|
968
|
+
var tmp_4 = next(int(Companion_instance, numberRangeToNumber(lo_0, hi_0)), rs);
|
|
969
|
+
tmp = !(tmp_4 == null) ? tmp_4 : THROW_CCE();
|
|
970
|
+
} else {
|
|
971
|
+
if (field instanceof KotestFieldNumber64) {
|
|
972
|
+
var tmp8_elvis_lhs = field.i66_1;
|
|
973
|
+
var lo_1 = tmp8_elvis_lhs == null ? -1000000.0 : tmp8_elvis_lhs;
|
|
974
|
+
var tmp9_elvis_lhs = field.j66_1;
|
|
975
|
+
var hi_1 = tmp9_elvis_lhs == null ? 1000000.0 : tmp9_elvis_lhs;
|
|
976
|
+
var tmp_5 = next(double(Companion_instance, lo_1, hi_1), rs);
|
|
977
|
+
tmp = !(tmp_5 == null) ? tmp_5 : THROW_CCE();
|
|
978
|
+
} else {
|
|
979
|
+
if (field instanceof KotestFieldNumber32) {
|
|
980
|
+
var tmp10_elvis_lhs = field.l66_1;
|
|
981
|
+
var lo_2 = tmp10_elvis_lhs == null ? -1000000.0 : tmp10_elvis_lhs;
|
|
982
|
+
var tmp11_elvis_lhs = field.m66_1;
|
|
983
|
+
var hi_2 = tmp11_elvis_lhs == null ? 1000000.0 : tmp11_elvis_lhs;
|
|
984
|
+
var tmp_6 = next(float(Companion_instance, lo_2, hi_2), rs);
|
|
985
|
+
tmp = !(tmp_6 == null) ? tmp_6 : THROW_CCE();
|
|
986
|
+
} else {
|
|
987
|
+
if (field instanceof KotestFieldBoolean) {
|
|
988
|
+
var tmp_7 = next(boolean(Companion_instance), rs);
|
|
989
|
+
tmp = !(tmp_7 == null) ? tmp_7 : THROW_CCE();
|
|
990
|
+
} else {
|
|
991
|
+
if (field instanceof KotestFieldBytes) {
|
|
992
|
+
var tmp_8 = next(byteArray(Companion_instance, int(Companion_instance, numberRangeToNumber(0, 16)), byte(Companion_instance)), rs);
|
|
993
|
+
tmp = !(tmp_8 == null) ? tmp_8 : THROW_CCE();
|
|
994
|
+
} else {
|
|
995
|
+
if (field instanceof KotestFieldEnum) {
|
|
996
|
+
var tmp_9 = next(element(Companion_instance, field.q66_1), rs);
|
|
997
|
+
tmp = !(tmp_9 == null) ? tmp_9 : THROW_CCE();
|
|
998
|
+
} else {
|
|
999
|
+
if (field instanceof KotestFieldUnion) {
|
|
1000
|
+
var tmp_10 = next(element(Companion_instance, field.t66_1), rs);
|
|
1001
|
+
tmp = !(tmp_10 == null) ? tmp_10 : THROW_CCE();
|
|
1002
|
+
} else {
|
|
1003
|
+
if (field instanceof KotestFieldArray) {
|
|
1004
|
+
var size = next(int(Companion_instance, numberRangeToNumber(1, 10)), rs);
|
|
1005
|
+
// Inline function 'kotlin.collections.map' call
|
|
1006
|
+
var this_0 = until(0, size);
|
|
1007
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1008
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1009
|
+
var inductionVariable = this_0.u1_1;
|
|
1010
|
+
var last = this_0.v1_1;
|
|
1011
|
+
if (inductionVariable <= last)
|
|
1012
|
+
do {
|
|
1013
|
+
var item = inductionVariable;
|
|
1014
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1015
|
+
var i = item;
|
|
1016
|
+
var tmp$ret$3 = field.w66_1(plus(path, '' + i));
|
|
1017
|
+
destination.x(tmp$ret$3);
|
|
1018
|
+
}
|
|
1019
|
+
while (!(item === last));
|
|
1020
|
+
var tmp_11 = destination;
|
|
1021
|
+
tmp = !(tmp_11 == null) ? tmp_11 : THROW_CCE();
|
|
1022
|
+
} else {
|
|
1023
|
+
if (field instanceof KotestFieldNullable) {
|
|
1024
|
+
var tmp_12 = field.x66_1(path);
|
|
1025
|
+
tmp = !(tmp_12 == null) ? tmp_12 : THROW_CCE();
|
|
1026
|
+
} else {
|
|
1027
|
+
if (field instanceof KotestFieldShape) {
|
|
1028
|
+
var tmp_13 = field.z66_1(path);
|
|
1029
|
+
tmp = !(tmp_13 == null) ? tmp_13 : THROW_CCE();
|
|
1030
|
+
} else {
|
|
1031
|
+
if (field instanceof KotestFieldDict) {
|
|
1032
|
+
var tmp_14 = mapOf_0(to('a', field.b67_1(plus(path, 'a'))));
|
|
1033
|
+
tmp = !(tmp_14 == null) ? tmp_14 : THROW_CCE();
|
|
1034
|
+
} else {
|
|
1035
|
+
noWhenBranchMatchedException();
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
return tmp;
|
|
1050
|
+
}
|
|
1051
|
+
function fieldAnnotations($this, _this__u8e3s4) {
|
|
1052
|
+
var tmp;
|
|
1053
|
+
if (_this__u8e3s4 instanceof KotestFieldString) {
|
|
1054
|
+
tmp = _this__u8e3s4.b66_1;
|
|
1055
|
+
} else {
|
|
1056
|
+
if (_this__u8e3s4 instanceof KotestFieldInteger64) {
|
|
1057
|
+
tmp = _this__u8e3s4.e66_1;
|
|
1058
|
+
} else {
|
|
1059
|
+
if (_this__u8e3s4 instanceof KotestFieldInteger32) {
|
|
1060
|
+
tmp = _this__u8e3s4.h66_1;
|
|
1061
|
+
} else {
|
|
1062
|
+
if (_this__u8e3s4 instanceof KotestFieldNumber64) {
|
|
1063
|
+
tmp = _this__u8e3s4.k66_1;
|
|
1064
|
+
} else {
|
|
1065
|
+
if (_this__u8e3s4 instanceof KotestFieldNumber32) {
|
|
1066
|
+
tmp = _this__u8e3s4.n66_1;
|
|
1067
|
+
} else {
|
|
1068
|
+
if (_this__u8e3s4 instanceof KotestFieldBoolean) {
|
|
1069
|
+
tmp = _this__u8e3s4.o66_1;
|
|
1070
|
+
} else {
|
|
1071
|
+
if (_this__u8e3s4 instanceof KotestFieldBytes) {
|
|
1072
|
+
tmp = _this__u8e3s4.p66_1;
|
|
1073
|
+
} else {
|
|
1074
|
+
if (_this__u8e3s4 instanceof KotestFieldEnum) {
|
|
1075
|
+
tmp = _this__u8e3s4.r66_1;
|
|
1076
|
+
} else {
|
|
1077
|
+
if (_this__u8e3s4 instanceof KotestFieldUnion) {
|
|
1078
|
+
tmp = _this__u8e3s4.u66_1;
|
|
1079
|
+
} else {
|
|
1080
|
+
tmp = emptyList();
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
return tmp;
|
|
1091
|
+
}
|
|
1092
|
+
function KotestWirespecGenerator(baseSeed, namedArbs) {
|
|
1093
|
+
this.l67_1 = baseSeed;
|
|
1094
|
+
this.m67_1 = namedArbs;
|
|
1095
|
+
this.n67_1 = ArrayDeque_init_$Create$();
|
|
1096
|
+
this.o67_1 = ArrayDeque_init_$Create$();
|
|
1097
|
+
this.p67_1 = 0;
|
|
1098
|
+
}
|
|
1099
|
+
protoOf(KotestWirespecGenerator).q67 = function (path, field) {
|
|
1100
|
+
var tmp0_safe_receiver = captureSeedIfMatches(this, path, field);
|
|
1101
|
+
if (tmp0_safe_receiver == null)
|
|
1102
|
+
null;
|
|
1103
|
+
else {
|
|
1104
|
+
// Inline function 'kotlin.let' call
|
|
1105
|
+
return !(tmp0_safe_receiver == null) ? tmp0_safe_receiver : THROW_CCE();
|
|
1106
|
+
}
|
|
1107
|
+
var tmp1_safe_receiver = consumePendingSeedIfMatches(this, path, field);
|
|
1108
|
+
if (tmp1_safe_receiver == null)
|
|
1109
|
+
null;
|
|
1110
|
+
else {
|
|
1111
|
+
// Inline function 'kotlin.let' call
|
|
1112
|
+
return !(tmp1_safe_receiver == null) ? tmp1_safe_receiver : THROW_CCE();
|
|
1113
|
+
}
|
|
1114
|
+
var annotations = fieldAnnotations(this, field);
|
|
1115
|
+
var tmp;
|
|
1116
|
+
if (this.p67_1 === 0) {
|
|
1117
|
+
var tmp$ret$2;
|
|
1118
|
+
$l$block_0: {
|
|
1119
|
+
// Inline function 'kotlin.collections.any' call
|
|
1120
|
+
var tmp_0;
|
|
1121
|
+
if (isInterface(annotations, Collection)) {
|
|
1122
|
+
tmp_0 = annotations.r();
|
|
1123
|
+
} else {
|
|
1124
|
+
tmp_0 = false;
|
|
1125
|
+
}
|
|
1126
|
+
if (tmp_0) {
|
|
1127
|
+
tmp$ret$2 = false;
|
|
1128
|
+
break $l$block_0;
|
|
1129
|
+
}
|
|
1130
|
+
var _iterator__ex2g4s = annotations.t();
|
|
1131
|
+
while (_iterator__ex2g4s.u()) {
|
|
1132
|
+
var element = _iterator__ex2g4s.v();
|
|
1133
|
+
if (equals(element.v2('name'), 'Seed')) {
|
|
1134
|
+
tmp$ret$2 = true;
|
|
1135
|
+
break $l$block_0;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
tmp$ret$2 = false;
|
|
1139
|
+
}
|
|
1140
|
+
tmp = tmp$ret$2;
|
|
1141
|
+
} else {
|
|
1142
|
+
tmp = false;
|
|
1143
|
+
}
|
|
1144
|
+
if (tmp) {
|
|
1145
|
+
var tmp2_safe_receiver = lastOrNull(dropLast(path, 1));
|
|
1146
|
+
if (tmp2_safe_receiver == null)
|
|
1147
|
+
null;
|
|
1148
|
+
else {
|
|
1149
|
+
// Inline function 'kotlin.let' call
|
|
1150
|
+
var tmp0_safe_receiver_0 = seedAnnotationValueFor(this, field, tmp2_safe_receiver);
|
|
1151
|
+
var tmp_1;
|
|
1152
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
1153
|
+
tmp_1 = null;
|
|
1154
|
+
} else {
|
|
1155
|
+
// Inline function 'kotlin.let' call
|
|
1156
|
+
return !(tmp0_safe_receiver_0 == null) ? tmp0_safe_receiver_0 : THROW_CCE();
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
var tmp_2;
|
|
1161
|
+
if (this.p67_1 === 0) {
|
|
1162
|
+
tmp_2 = field instanceof KotestFieldShape;
|
|
1163
|
+
} else {
|
|
1164
|
+
tmp_2 = false;
|
|
1165
|
+
}
|
|
1166
|
+
if (tmp_2) {
|
|
1167
|
+
var tmp3_safe_receiver = seedFieldNameOf(this, field);
|
|
1168
|
+
if (tmp3_safe_receiver == null)
|
|
1169
|
+
null;
|
|
1170
|
+
else {
|
|
1171
|
+
// Inline function 'kotlin.let' call
|
|
1172
|
+
var tmp0_safe_receiver_1 = generateSeededShape(this, path, field, tmp3_safe_receiver);
|
|
1173
|
+
var tmp_3;
|
|
1174
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
1175
|
+
tmp_3 = null;
|
|
1176
|
+
} else {
|
|
1177
|
+
// Inline function 'kotlin.let' call
|
|
1178
|
+
return !(tmp0_safe_receiver_1 == null) ? tmp0_safe_receiver_1 : THROW_CCE();
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
var tmp4_safe_receiver = namedGeneratorOrNull(this, annotations);
|
|
1183
|
+
if (tmp4_safe_receiver == null)
|
|
1184
|
+
null;
|
|
1185
|
+
else {
|
|
1186
|
+
// Inline function 'kotlin.let' call
|
|
1187
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1188
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1189
|
+
var tmp$ret$11 = tmp4_safe_receiver.toLowerCase();
|
|
1190
|
+
var tmp0_elvis_lhs = this.m67_1.v2(tmp$ret$11);
|
|
1191
|
+
var tmp_4;
|
|
1192
|
+
if (tmp0_elvis_lhs == null) {
|
|
1193
|
+
var message = "Unknown @Generator name: '" + tmp4_safe_receiver + '\' \u2014 register it via kotestGenerator { register("' + tmp4_safe_receiver + '") { \u2026 } }';
|
|
1194
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1195
|
+
} else {
|
|
1196
|
+
tmp_4 = tmp0_elvis_lhs;
|
|
1197
|
+
}
|
|
1198
|
+
var factory = tmp_4;
|
|
1199
|
+
var tmp_5 = next(factory(), rsFor(this, path));
|
|
1200
|
+
return !(tmp_5 == null) ? tmp_5 : THROW_CCE();
|
|
1201
|
+
}
|
|
1202
|
+
return generateLeaf(this, field, path);
|
|
1203
|
+
};
|
|
1204
|
+
function kotestGenerator$lambda(_this__u8e3s4) {
|
|
1205
|
+
return Unit_instance;
|
|
1206
|
+
}
|
|
1207
|
+
function KotestWirespecGeneratorJs(inner) {
|
|
1208
|
+
this.r67_1 = inner;
|
|
1209
|
+
}
|
|
1210
|
+
protoOf(KotestWirespecGeneratorJs).generate = function (path, field) {
|
|
1211
|
+
var kotlinField = jsToKotestField(field);
|
|
1212
|
+
var tmp = toList(path);
|
|
1213
|
+
var result = this.r67_1.q67(tmp, isInterface(kotlinField, KotestField) ? kotlinField : THROW_CCE());
|
|
1214
|
+
return kotlinToJs(result);
|
|
1215
|
+
};
|
|
1216
|
+
function kotestWirespecGeneratorJs(seed, registrations) {
|
|
1217
|
+
registrations = registrations === VOID ? null : registrations;
|
|
1218
|
+
var tmp = fromInt(seed);
|
|
1219
|
+
var inner = kotestGenerator(tmp, kotestWirespecGeneratorJs$lambda(registrations));
|
|
1220
|
+
return new KotestWirespecGeneratorJs(inner);
|
|
1221
|
+
}
|
|
1222
|
+
function jsToKotestField(field) {
|
|
1223
|
+
var tmp = field.kind;
|
|
1224
|
+
var kind = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
1225
|
+
var tmp_0;
|
|
1226
|
+
switch (kind) {
|
|
1227
|
+
case 'string':
|
|
1228
|
+
var tmp_1 = field.regex;
|
|
1229
|
+
tmp_0 = new KotestFieldString((tmp_1 == null ? true : typeof tmp_1 === 'string') ? tmp_1 : THROW_CCE(), jsAnnotationsToKotlin(field.annotations));
|
|
1230
|
+
break;
|
|
1231
|
+
case 'integer64':
|
|
1232
|
+
var tmp_2 = field.min;
|
|
1233
|
+
var tmp1_safe_receiver = isNumber(tmp_2) ? tmp_2 : null;
|
|
1234
|
+
var tmp_3 = tmp1_safe_receiver == null ? null : numberToLong(tmp1_safe_receiver);
|
|
1235
|
+
var tmp_4 = field.max;
|
|
1236
|
+
var tmp2_safe_receiver = isNumber(tmp_4) ? tmp_4 : null;
|
|
1237
|
+
tmp_0 = new KotestFieldInteger64(tmp_3, tmp2_safe_receiver == null ? null : numberToLong(tmp2_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1238
|
+
break;
|
|
1239
|
+
case 'integer32':
|
|
1240
|
+
var tmp_5 = field.min;
|
|
1241
|
+
var tmp3_safe_receiver = isNumber(tmp_5) ? tmp_5 : null;
|
|
1242
|
+
var tmp_6 = tmp3_safe_receiver == null ? null : numberToInt(tmp3_safe_receiver);
|
|
1243
|
+
var tmp_7 = field.max;
|
|
1244
|
+
var tmp4_safe_receiver = isNumber(tmp_7) ? tmp_7 : null;
|
|
1245
|
+
tmp_0 = new KotestFieldInteger32(tmp_6, tmp4_safe_receiver == null ? null : numberToInt(tmp4_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1246
|
+
break;
|
|
1247
|
+
case 'number64':
|
|
1248
|
+
var tmp_8 = field.min;
|
|
1249
|
+
var tmp5_safe_receiver = isNumber(tmp_8) ? tmp_8 : null;
|
|
1250
|
+
var tmp_9 = tmp5_safe_receiver == null ? null : numberToDouble(tmp5_safe_receiver);
|
|
1251
|
+
var tmp_10 = field.max;
|
|
1252
|
+
var tmp6_safe_receiver = isNumber(tmp_10) ? tmp_10 : null;
|
|
1253
|
+
tmp_0 = new KotestFieldNumber64(tmp_9, tmp6_safe_receiver == null ? null : numberToDouble(tmp6_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1254
|
+
break;
|
|
1255
|
+
case 'number32':
|
|
1256
|
+
var tmp_11 = field.min;
|
|
1257
|
+
var tmp7_safe_receiver = isNumber(tmp_11) ? tmp_11 : null;
|
|
1258
|
+
var tmp_12 = tmp7_safe_receiver == null ? null : numberToDouble(tmp7_safe_receiver);
|
|
1259
|
+
var tmp_13 = field.max;
|
|
1260
|
+
var tmp8_safe_receiver = isNumber(tmp_13) ? tmp_13 : null;
|
|
1261
|
+
tmp_0 = new KotestFieldNumber32(tmp_12, tmp8_safe_receiver == null ? null : numberToDouble(tmp8_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1262
|
+
break;
|
|
1263
|
+
case 'boolean':
|
|
1264
|
+
tmp_0 = new KotestFieldBoolean(jsAnnotationsToKotlin(field.annotations));
|
|
1265
|
+
break;
|
|
1266
|
+
case 'bytes':
|
|
1267
|
+
tmp_0 = new KotestFieldBytes(jsAnnotationsToKotlin(field.annotations));
|
|
1268
|
+
break;
|
|
1269
|
+
case 'enum':
|
|
1270
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1271
|
+
|
|
1272
|
+
var tmp$ret$0 = field.values;
|
|
1273
|
+
tmp_0 = new KotestFieldEnum(toList(tmp$ret$0), jsAnnotationsToKotlin(field.annotations), createKType(PrimitiveClasses_getInstance().mb(), arrayOf([]), false));
|
|
1274
|
+
break;
|
|
1275
|
+
case 'union':
|
|
1276
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1277
|
+
|
|
1278
|
+
var tmp$ret$1 = field.variants;
|
|
1279
|
+
tmp_0 = new KotestFieldUnion(toList(tmp$ret$1), jsAnnotationsToKotlin(field.annotations), createKType(PrimitiveClasses_getInstance().mb(), arrayOf([]), false));
|
|
1280
|
+
break;
|
|
1281
|
+
case 'array':
|
|
1282
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1283
|
+
|
|
1284
|
+
var jsGen = field.generate;
|
|
1285
|
+
tmp_0 = new KotestFieldArray(jsToKotestField$lambda(jsGen));
|
|
1286
|
+
break;
|
|
1287
|
+
case 'nullable':
|
|
1288
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1289
|
+
|
|
1290
|
+
var jsGen_0 = field.generate;
|
|
1291
|
+
tmp_0 = new KotestFieldNullable(jsToKotestField$lambda_0(jsGen_0));
|
|
1292
|
+
break;
|
|
1293
|
+
case 'shape':
|
|
1294
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1295
|
+
|
|
1296
|
+
var jsGen_1 = field.generate;
|
|
1297
|
+
var tmp_14 = jsShapeAnnotationsToKotlin(field.annotations);
|
|
1298
|
+
tmp_0 = new KotestFieldShape(tmp_14, jsToKotestField$lambda_1(jsGen_1), createKType(PrimitiveClasses_getInstance().bb(), arrayOf([]), false));
|
|
1299
|
+
break;
|
|
1300
|
+
case 'dict':
|
|
1301
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1302
|
+
|
|
1303
|
+
var jsGen_2 = field.generate;
|
|
1304
|
+
tmp_0 = new KotestFieldDict(jsToKotestField$lambda_2(jsGen_2));
|
|
1305
|
+
break;
|
|
1306
|
+
default:
|
|
1307
|
+
var message = "Unknown KotestField kind: '" + kind + "'";
|
|
1308
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1309
|
+
}
|
|
1310
|
+
return tmp_0;
|
|
1311
|
+
}
|
|
1312
|
+
function jsAnnotationsToKotlin(jsAnns) {
|
|
1313
|
+
if (jsAnns == null)
|
|
1314
|
+
return emptyList();
|
|
1315
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1316
|
+
var arr = jsAnns;
|
|
1317
|
+
// Inline function 'kotlin.collections.map' call
|
|
1318
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1319
|
+
var destination = ArrayList_init_$Create$(arr.length);
|
|
1320
|
+
var inductionVariable = 0;
|
|
1321
|
+
var last = arr.length;
|
|
1322
|
+
while (inductionVariable < last) {
|
|
1323
|
+
var item = arr[inductionVariable];
|
|
1324
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1325
|
+
var tmp$ret$1 = jsObjToKotlinMap(item);
|
|
1326
|
+
destination.x(tmp$ret$1);
|
|
1327
|
+
}
|
|
1328
|
+
return destination;
|
|
1329
|
+
}
|
|
1330
|
+
function jsShapeAnnotationsToKotlin(jsAnns) {
|
|
1331
|
+
if (jsAnns == null)
|
|
1332
|
+
return emptyMap();
|
|
1333
|
+
var tmp = Object.keys(jsAnns);
|
|
1334
|
+
var keys = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
1335
|
+
// Inline function 'kotlin.collections.associateWith' call
|
|
1336
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(keys.length), 16));
|
|
1337
|
+
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1338
|
+
var inductionVariable = 0;
|
|
1339
|
+
var last = keys.length;
|
|
1340
|
+
while (inductionVariable < last) {
|
|
1341
|
+
var element = keys[inductionVariable];
|
|
1342
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1343
|
+
var tmp$ret$0 = jsAnnotationsToKotlin(jsAnns[element]);
|
|
1344
|
+
result.d3(element, tmp$ret$0);
|
|
1345
|
+
}
|
|
1346
|
+
return result;
|
|
1347
|
+
}
|
|
1348
|
+
function jsObjToKotlinMap(obj) {
|
|
1349
|
+
var tmp = Object.keys(obj);
|
|
1350
|
+
var keys = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
1351
|
+
// Inline function 'kotlin.collections.associateWith' call
|
|
1352
|
+
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(keys.length), 16));
|
|
1353
|
+
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1354
|
+
var inductionVariable = 0;
|
|
1355
|
+
var last = keys.length;
|
|
1356
|
+
while (inductionVariable < last) {
|
|
1357
|
+
var element = keys[inductionVariable];
|
|
1358
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1359
|
+
var tmp$ret$0 = jsValueToAny(obj[element]);
|
|
1360
|
+
result.d3(element, tmp$ret$0);
|
|
1361
|
+
}
|
|
1362
|
+
return result;
|
|
1363
|
+
}
|
|
1364
|
+
function jsValueToAny(v) {
|
|
1365
|
+
var tmp = typeof v;
|
|
1366
|
+
var type = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
1367
|
+
var tmp_0;
|
|
1368
|
+
if (type === 'object') {
|
|
1369
|
+
var tmp_1;
|
|
1370
|
+
if (v == null) {
|
|
1371
|
+
var message = 'Unexpected null in annotation value';
|
|
1372
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1373
|
+
} else {
|
|
1374
|
+
var tmp_2 = Array.isArray(v);
|
|
1375
|
+
if ((!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : THROW_CCE()) {
|
|
1376
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1377
|
+
// Inline function 'kotlin.collections.map' call
|
|
1378
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1379
|
+
var destination = ArrayList_init_$Create$(v.length);
|
|
1380
|
+
var inductionVariable = 0;
|
|
1381
|
+
var last = v.length;
|
|
1382
|
+
while (inductionVariable < last) {
|
|
1383
|
+
var item = v[inductionVariable];
|
|
1384
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1385
|
+
var tmp$ret$1 = jsValueToAny(item);
|
|
1386
|
+
destination.x(tmp$ret$1);
|
|
1387
|
+
}
|
|
1388
|
+
tmp_1 = destination;
|
|
1389
|
+
} else {
|
|
1390
|
+
tmp_1 = jsObjToKotlinMap(v);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
tmp_0 = tmp_1;
|
|
1394
|
+
} else {
|
|
1395
|
+
tmp_0 = !(v == null) ? v : THROW_CCE();
|
|
1396
|
+
}
|
|
1397
|
+
return tmp_0;
|
|
1398
|
+
}
|
|
1399
|
+
function kotlinToJs(value) {
|
|
1400
|
+
if (value == null)
|
|
1401
|
+
return null;
|
|
1402
|
+
var tmp;
|
|
1403
|
+
if (value instanceof Long) {
|
|
1404
|
+
tmp = toNumber(value);
|
|
1405
|
+
} else {
|
|
1406
|
+
if (isInterface(value, KtList)) {
|
|
1407
|
+
var arr = [];
|
|
1408
|
+
var _iterator__ex2g4s = value.t();
|
|
1409
|
+
while (_iterator__ex2g4s.u()) {
|
|
1410
|
+
var item = _iterator__ex2g4s.v();
|
|
1411
|
+
arr.push(kotlinToJs(item));
|
|
1412
|
+
}
|
|
1413
|
+
tmp = arr;
|
|
1414
|
+
} else {
|
|
1415
|
+
if (isInterface(value, KtMap)) {
|
|
1416
|
+
var obj = {};
|
|
1417
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1418
|
+
var _iterator__ex2g4s_0 = value.l1().t();
|
|
1419
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1420
|
+
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
1421
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1422
|
+
var k = _destruct__k2r9zo.m1();
|
|
1423
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1424
|
+
var v = _destruct__k2r9zo.n1();
|
|
1425
|
+
obj[(!(k == null) ? typeof k === 'string' : false) ? k : THROW_CCE()] = kotlinToJs(v);
|
|
1426
|
+
}
|
|
1427
|
+
tmp = obj;
|
|
1428
|
+
} else {
|
|
1429
|
+
tmp = value;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
return tmp;
|
|
1434
|
+
}
|
|
1435
|
+
function kotestWirespecGeneratorJs$lambda$lambda$lambda($factory) {
|
|
1436
|
+
return function (it) {
|
|
1437
|
+
return $factory(it);
|
|
1438
|
+
};
|
|
1439
|
+
}
|
|
1440
|
+
function kotestWirespecGeneratorJs$lambda$lambda($factory) {
|
|
1441
|
+
return function () {
|
|
1442
|
+
var tmp = int(Companion_instance, numberRangeToNumber(0, 2147483647));
|
|
1443
|
+
return map(tmp, kotestWirespecGeneratorJs$lambda$lambda$lambda($factory));
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
function kotestWirespecGeneratorJs$lambda($registrations) {
|
|
1447
|
+
return function ($this$kotestGenerator) {
|
|
1448
|
+
var tmp;
|
|
1449
|
+
if ($registrations != null) {
|
|
1450
|
+
var tmp_0 = Object.keys($registrations);
|
|
1451
|
+
var keys = (!(tmp_0 == null) ? isArray(tmp_0) : false) ? tmp_0 : THROW_CCE();
|
|
1452
|
+
var inductionVariable = 0;
|
|
1453
|
+
var last = keys.length;
|
|
1454
|
+
while (inductionVariable < last) {
|
|
1455
|
+
var key = keys[inductionVariable];
|
|
1456
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1457
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1458
|
+
var factory = $registrations[key];
|
|
1459
|
+
$this$kotestGenerator.d67(key, kotestWirespecGeneratorJs$lambda$lambda(factory));
|
|
1460
|
+
}
|
|
1461
|
+
tmp = Unit_instance;
|
|
1462
|
+
}
|
|
1463
|
+
return Unit_instance;
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1466
|
+
function jsToKotestField$lambda($jsGen) {
|
|
1467
|
+
return function (p) {
|
|
1468
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1469
|
+
var tmp$ret$0 = copyToArray(p);
|
|
1470
|
+
var tmp = $jsGen(tmp$ret$0);
|
|
1471
|
+
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1472
|
+
var tmp_0;
|
|
1473
|
+
if (tmp0_elvis_lhs == null) {
|
|
1474
|
+
var message = 'array element callback returned null at path ' + toString_0(p);
|
|
1475
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1476
|
+
} else {
|
|
1477
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1478
|
+
}
|
|
1479
|
+
return tmp_0;
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
function jsToKotestField$lambda_0($jsGen) {
|
|
1483
|
+
return function (p) {
|
|
1484
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1485
|
+
var tmp$ret$0 = copyToArray(p);
|
|
1486
|
+
var tmp = $jsGen(tmp$ret$0);
|
|
1487
|
+
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1488
|
+
var tmp_0;
|
|
1489
|
+
if (tmp0_elvis_lhs == null) {
|
|
1490
|
+
var message = 'nullable inner callback returned null at path ' + toString_0(p);
|
|
1491
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1492
|
+
} else {
|
|
1493
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1494
|
+
}
|
|
1495
|
+
return tmp_0;
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
function jsToKotestField$lambda_1($jsGen) {
|
|
1499
|
+
return function (p) {
|
|
1500
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1501
|
+
var tmp$ret$0 = copyToArray(p);
|
|
1502
|
+
var tmp = $jsGen(tmp$ret$0);
|
|
1503
|
+
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1504
|
+
var tmp_0;
|
|
1505
|
+
if (tmp0_elvis_lhs == null) {
|
|
1506
|
+
var message = 'shape callback returned null at path ' + toString_0(p);
|
|
1507
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1508
|
+
} else {
|
|
1509
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1510
|
+
}
|
|
1511
|
+
return tmp_0;
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
function jsToKotestField$lambda_2($jsGen) {
|
|
1515
|
+
return function (p) {
|
|
1516
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1517
|
+
var tmp$ret$0 = copyToArray(p);
|
|
1518
|
+
var tmp = $jsGen(tmp$ret$0);
|
|
1519
|
+
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1520
|
+
var tmp_0;
|
|
1521
|
+
if (tmp0_elvis_lhs == null) {
|
|
1522
|
+
var message = 'dict value callback returned null at path ' + toString_0(p);
|
|
1523
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1524
|
+
} else {
|
|
1525
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1526
|
+
}
|
|
1527
|
+
return tmp_0;
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
//region block: exports
|
|
1531
|
+
export {
|
|
1532
|
+
KotestWirespecGeneratorJs as KotestWirespecGeneratorJs,
|
|
1533
|
+
kotestWirespecGeneratorJs as kotestWirespecGeneratorJs,
|
|
1534
|
+
};
|
|
1535
|
+
//endregion
|
|
1536
|
+
|
|
1537
|
+
//# sourceMappingURL=wirespec-src-integration-kotest.mjs.map
|