squint-cljs 0.14.196 → 0.14.197
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/lib/cli.js +104 -104
- package/lib/cljs.pprint.js +183 -183
- package/lib/compiler.js +778 -790
- package/lib/compiler.node.js +40 -40
- package/lib/compiler.sci.js +1195 -1195
- package/lib/node.nrepl_server.js +28 -28
- package/lib/squint.core.umd.js +3 -3
- package/package.json +1 -1
- package/src/squint/core.js +59 -27
- package/src/squint/string.js +4 -0
- package/src/squint/test.js +139 -165
package/src/squint/test.js
CHANGED
|
@@ -4,9 +4,9 @@ import * as clojure_DOT_string from 'squint-cljs/src/squint/string.js';
|
|
|
4
4
|
var _STAR_current_env_STAR_ = ({val: null});
|
|
5
5
|
var _STAR_current_reporter_STAR_ = ({val: "cljs.test/default"});
|
|
6
6
|
var current_reporter = function () {
|
|
7
|
-
const
|
|
8
|
-
if (squint_core.truth_(
|
|
9
|
-
return
|
|
7
|
+
const or__23674__auto__1 = _STAR_current_reporter_STAR_.val;
|
|
8
|
+
if (squint_core.truth_(or__23674__auto__1)) {
|
|
9
|
+
return or__23674__auto__1} else {
|
|
10
10
|
return "cljs.test/default"};
|
|
11
11
|
|
|
12
12
|
};
|
|
@@ -15,9 +15,9 @@ return ({"report-counters": ({"test": 0, "pass": 0, "fail": 0, "error": 0}), "te
|
|
|
15
15
|
|
|
16
16
|
};
|
|
17
17
|
var get_current_env = function () {
|
|
18
|
-
const
|
|
19
|
-
if (squint_core.truth_(
|
|
20
|
-
return
|
|
18
|
+
const or__23674__auto__1 = _STAR_current_env_STAR_.val;
|
|
19
|
+
if (squint_core.truth_(or__23674__auto__1)) {
|
|
20
|
+
return or__23674__auto__1} else {
|
|
21
21
|
return empty_env()};
|
|
22
22
|
|
|
23
23
|
};
|
|
@@ -31,46 +31,33 @@ _STAR_current_env_STAR_.val = null;
|
|
|
31
31
|
return null;
|
|
32
32
|
|
|
33
33
|
};
|
|
34
|
-
var update_current_env_BANG_ = (() => {
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
while(true){
|
|
40
|
-
if ((i33 < len__29152__auto__2)) {
|
|
41
|
-
args21.push((arguments[i33]));
|
|
42
|
-
let G__4 = (i33 + 1);
|
|
43
|
-
i33 = G__4;
|
|
44
|
-
continue;
|
|
45
|
-
};break;
|
|
46
|
-
}
|
|
47
|
-
;
|
|
48
|
-
const argseq__29378__auto__5 = (((2 < args21.length)) ? (args21.slice(2)) : (null));
|
|
49
|
-
return f1.cljs$core$IFn$_invoke$arity$variadic((arguments[0]), (arguments[1]), argseq__29378__auto__5);
|
|
34
|
+
var update_current_env_BANG_ = /* @__PURE__ */ (() => {
|
|
35
|
+
const impl31 = (function (ks, f, args) {
|
|
36
|
+
const env2 = get_current_env();
|
|
37
|
+
const new_env3 = squint_core.apply(squint_core.update_in, env2, ks, f, args);
|
|
38
|
+
return set_env_BANG_(new_env3);
|
|
50
39
|
|
|
51
40
|
});
|
|
52
|
-
f1
|
|
53
|
-
|
|
54
|
-
const new_env7 = squint_core.apply(squint_core.update_in, env6, ks, f, args);
|
|
55
|
-
return set_env_BANG_(new_env7);
|
|
41
|
+
const f1 = (function (ks, f, ...rest2) {
|
|
42
|
+
return impl31(ks, f, (((rest2.length === 0)) ? (null) : (rest2)));
|
|
56
43
|
|
|
57
44
|
});
|
|
58
|
-
f1
|
|
45
|
+
(f1["squint$lang$variadic"] = impl31);
|
|
59
46
|
return f1;
|
|
60
47
|
|
|
61
48
|
})();
|
|
62
49
|
var testing_contexts_str = function () {
|
|
63
|
-
const
|
|
64
|
-
if (squint_core.truth_(
|
|
65
|
-
const contexts2 =
|
|
50
|
+
const temp__23300__auto__1 = squint_core.seq(squint_core.get(get_current_env(), "testing-contexts"));
|
|
51
|
+
if (squint_core.truth_(temp__23300__auto__1)) {
|
|
52
|
+
const contexts2 = temp__23300__auto__1;
|
|
66
53
|
return clojure_DOT_string.join(" ", squint_core.reverse(contexts2));
|
|
67
54
|
};
|
|
68
55
|
|
|
69
56
|
};
|
|
70
57
|
var testing_vars_str = function () {
|
|
71
|
-
const
|
|
72
|
-
if (squint_core.truth_(
|
|
73
|
-
const vars2 =
|
|
58
|
+
const temp__23300__auto__1 = squint_core.seq(squint_core.get(get_current_env(), "testing-vars"));
|
|
59
|
+
if (squint_core.truth_(temp__23300__auto__1)) {
|
|
60
|
+
const vars2 = temp__23300__auto__1;
|
|
74
61
|
return clojure_DOT_string.join(" ", squint_core.map(squint_core.str, vars2));
|
|
75
62
|
};
|
|
76
63
|
|
|
@@ -85,10 +72,10 @@ var current_test_str = function () {
|
|
|
85
72
|
const vars1 = testing_vars_str();
|
|
86
73
|
const ctx2 = testing_contexts_str();
|
|
87
74
|
if (squint_core.truth_((() => {
|
|
88
|
-
const
|
|
89
|
-
if (squint_core.truth_(
|
|
75
|
+
const and__23699__auto__3 = vars1;
|
|
76
|
+
if (squint_core.truth_(and__23699__auto__3)) {
|
|
90
77
|
return ctx2} else {
|
|
91
|
-
return
|
|
78
|
+
return and__23699__auto__3};
|
|
92
79
|
|
|
93
80
|
})())) {
|
|
94
81
|
return `${vars1??''}${" "}${ctx2??''}`} else {
|
|
@@ -101,18 +88,18 @@ return "test"} else {
|
|
|
101
88
|
return null}}}};
|
|
102
89
|
|
|
103
90
|
};
|
|
104
|
-
var report_loc = function (
|
|
105
|
-
const map__12 =
|
|
91
|
+
var report_loc = function (p__4) {
|
|
92
|
+
const map__12 = p__4;
|
|
106
93
|
const line3 = squint_core.get(map__12, "line");
|
|
107
94
|
const column4 = squint_core.get(map__12, "column");
|
|
108
95
|
const file5 = squint_core.get(map__12, "file");
|
|
109
96
|
if (squint_core.truth_((() => {
|
|
110
|
-
const
|
|
111
|
-
if (squint_core.truth_(
|
|
112
|
-
return
|
|
113
|
-
const
|
|
114
|
-
if (squint_core.truth_(
|
|
115
|
-
return
|
|
97
|
+
const or__23674__auto__6 = line3;
|
|
98
|
+
if (squint_core.truth_(or__23674__auto__6)) {
|
|
99
|
+
return or__23674__auto__6} else {
|
|
100
|
+
const or__23674__auto__7 = column4;
|
|
101
|
+
if (squint_core.truth_(or__23674__auto__7)) {
|
|
102
|
+
return or__23674__auto__7} else {
|
|
116
103
|
return file5};
|
|
117
104
|
};
|
|
118
105
|
|
|
@@ -136,9 +123,9 @@ return inc_report_counter_BANG_("pass");
|
|
|
136
123
|
squint_multi.defmethod(report, ["cljs.test/default", "fail"], (function (m) {
|
|
137
124
|
inc_report_counter_BANG_("fail");
|
|
138
125
|
console.error(`${"FAIL in "}${current_test_str()??''}${(() => {
|
|
139
|
-
const
|
|
140
|
-
if (squint_core.truth_(
|
|
141
|
-
const l2 =
|
|
126
|
+
const temp__23300__auto__1 = report_loc(m);
|
|
127
|
+
if (squint_core.truth_(temp__23300__auto__1)) {
|
|
128
|
+
const l2 = temp__23300__auto__1;
|
|
142
129
|
return `${" ("}${l2??''}${")"}`;
|
|
143
130
|
};
|
|
144
131
|
|
|
@@ -152,9 +139,9 @@ return console.error(" actual:", squint_core.pr_str(squint_core.get(m, "actua
|
|
|
152
139
|
squint_multi.defmethod(report, ["cljs.test/default", "error"], (function (m) {
|
|
153
140
|
inc_report_counter_BANG_("error");
|
|
154
141
|
console.error(`${"ERROR in "}${current_test_str()??''}${(() => {
|
|
155
|
-
const
|
|
156
|
-
if (squint_core.truth_(
|
|
157
|
-
const l2 =
|
|
142
|
+
const temp__23300__auto__1 = report_loc(m);
|
|
143
|
+
if (squint_core.truth_(temp__23300__auto__1)) {
|
|
144
|
+
const l2 = temp__23300__auto__1;
|
|
158
145
|
return `${" ("}${l2??''}${")"}`;
|
|
159
146
|
};
|
|
160
147
|
|
|
@@ -183,13 +170,13 @@ return null;
|
|
|
183
170
|
|
|
184
171
|
}));
|
|
185
172
|
squint_multi.defmethod(report, ["cljs.test/default", "summary"], (function (_) {
|
|
186
|
-
let
|
|
187
|
-
let
|
|
188
|
-
let
|
|
189
|
-
let
|
|
190
|
-
let
|
|
191
|
-
console.log("\nRan",
|
|
192
|
-
return console.log(`${
|
|
173
|
+
let map__15 = squint_core.get(get_current_env(), "report-counters");
|
|
174
|
+
let test6 = squint_core.get(map__15, "test");
|
|
175
|
+
let pass7 = squint_core.get(map__15, "pass");
|
|
176
|
+
let fail8 = squint_core.get(map__15, "fail");
|
|
177
|
+
let error9 = squint_core.get(map__15, "error");
|
|
178
|
+
console.log("\nRan", test6, "tests containing", (pass7 + fail8 + error9), "assertions.");
|
|
179
|
+
return console.log(`${fail8??''}`, "failures,", `${error9??''}`, "errors.");
|
|
193
180
|
|
|
194
181
|
}));
|
|
195
182
|
var successful_QMARK_ = function (results) {
|
|
@@ -197,10 +184,10 @@ return ((squint_core.get(results, "fail", 0) === 0) && (squint_core.get(results,
|
|
|
197
184
|
|
|
198
185
|
};
|
|
199
186
|
var async_QMARK_ = function (x) {
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
return
|
|
187
|
+
const c__23603__auto__1 = Promise;
|
|
188
|
+
const x__23604__auto__2 = x;
|
|
189
|
+
const ret__23605__auto__3 = (x__23604__auto__2 instanceof c__23603__auto__1);
|
|
190
|
+
return ret__23605__auto__3;
|
|
204
191
|
|
|
205
192
|
};
|
|
206
193
|
var wrap_async = function (setup, teardown) {
|
|
@@ -233,120 +220,120 @@ return f();
|
|
|
233
220
|
}), fixtures);
|
|
234
221
|
|
|
235
222
|
};
|
|
236
|
-
var get_each_fixtures = (() => {
|
|
237
|
-
const
|
|
238
|
-
const
|
|
239
|
-
switch (
|
|
240
|
-
return
|
|
223
|
+
var get_each_fixtures = /* @__PURE__ */ (() => {
|
|
224
|
+
const f10 = (function (...args11) {
|
|
225
|
+
const G__121 = args11.length;
|
|
226
|
+
switch (G__121) {case 0:
|
|
227
|
+
return f10.cljs$core$IFn$_invoke$arity$0();
|
|
241
228
|
|
|
242
229
|
break;
|
|
243
230
|
case 1:
|
|
244
|
-
return
|
|
231
|
+
return f10.cljs$core$IFn$_invoke$arity$1(args11[0]);
|
|
245
232
|
|
|
246
233
|
break;
|
|
247
234
|
default:
|
|
248
|
-
throw (new Error(`${"Invalid arity: "}${
|
|
235
|
+
throw (new Error(`${"Invalid arity: "}${args11.length??''}`))};
|
|
249
236
|
|
|
250
237
|
});
|
|
251
|
-
|
|
238
|
+
f10.cljs$core$IFn$_invoke$arity$0 = (function () {
|
|
252
239
|
return get_each_fixtures(null);
|
|
253
240
|
|
|
254
241
|
});
|
|
255
|
-
|
|
242
|
+
f10.cljs$core$IFn$_invoke$arity$1 = (function (ns_str) {
|
|
256
243
|
return squint_core.get_in(get_current_env(), ["each-fixtures", ns_str], []);
|
|
257
244
|
|
|
258
245
|
});
|
|
259
|
-
|
|
260
|
-
return
|
|
246
|
+
f10.cljs$lang$maxFixedArity = 1;
|
|
247
|
+
return f10;
|
|
261
248
|
|
|
262
249
|
})();
|
|
263
|
-
var set_each_fixtures_BANG_ = (() => {
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
switch (
|
|
267
|
-
return
|
|
250
|
+
var set_each_fixtures_BANG_ = /* @__PURE__ */ (() => {
|
|
251
|
+
const f13 = (function (...args14) {
|
|
252
|
+
const G__151 = args14.length;
|
|
253
|
+
switch (G__151) {case 1:
|
|
254
|
+
return f13.cljs$core$IFn$_invoke$arity$1(args14[0]);
|
|
268
255
|
|
|
269
256
|
break;
|
|
270
257
|
case 2:
|
|
271
|
-
return
|
|
258
|
+
return f13.cljs$core$IFn$_invoke$arity$2(args14[0], args14[1]);
|
|
272
259
|
|
|
273
260
|
break;
|
|
274
261
|
default:
|
|
275
|
-
throw (new Error(`${"Invalid arity: "}${
|
|
262
|
+
throw (new Error(`${"Invalid arity: "}${args14.length??''}`))};
|
|
276
263
|
|
|
277
264
|
});
|
|
278
|
-
|
|
265
|
+
f13.cljs$core$IFn$_invoke$arity$1 = (function (fixtures) {
|
|
279
266
|
return set_each_fixtures_BANG_(null, fixtures);
|
|
280
267
|
|
|
281
268
|
});
|
|
282
|
-
|
|
269
|
+
f13.cljs$core$IFn$_invoke$arity$2 = (function (ns_str, fixtures) {
|
|
283
270
|
return update_current_env_BANG_(["each-fixtures", ns_str], squint_core.constantly(fixtures));
|
|
284
271
|
|
|
285
272
|
});
|
|
286
|
-
|
|
287
|
-
return
|
|
273
|
+
f13.cljs$lang$maxFixedArity = 2;
|
|
274
|
+
return f13;
|
|
288
275
|
|
|
289
276
|
})();
|
|
290
|
-
var get_once_fixtures = (() => {
|
|
291
|
-
const
|
|
292
|
-
const
|
|
293
|
-
switch (
|
|
294
|
-
return
|
|
277
|
+
var get_once_fixtures = /* @__PURE__ */ (() => {
|
|
278
|
+
const f16 = (function (...args17) {
|
|
279
|
+
const G__181 = args17.length;
|
|
280
|
+
switch (G__181) {case 0:
|
|
281
|
+
return f16.cljs$core$IFn$_invoke$arity$0();
|
|
295
282
|
|
|
296
283
|
break;
|
|
297
284
|
case 1:
|
|
298
|
-
return
|
|
285
|
+
return f16.cljs$core$IFn$_invoke$arity$1(args17[0]);
|
|
299
286
|
|
|
300
287
|
break;
|
|
301
288
|
default:
|
|
302
|
-
throw (new Error(`${"Invalid arity: "}${
|
|
289
|
+
throw (new Error(`${"Invalid arity: "}${args17.length??''}`))};
|
|
303
290
|
|
|
304
291
|
});
|
|
305
|
-
|
|
292
|
+
f16.cljs$core$IFn$_invoke$arity$0 = (function () {
|
|
306
293
|
return get_once_fixtures(null);
|
|
307
294
|
|
|
308
295
|
});
|
|
309
|
-
|
|
296
|
+
f16.cljs$core$IFn$_invoke$arity$1 = (function (ns_str) {
|
|
310
297
|
return squint_core.get_in(get_current_env(), ["once-fixtures", ns_str], []);
|
|
311
298
|
|
|
312
299
|
});
|
|
313
|
-
|
|
314
|
-
return
|
|
300
|
+
f16.cljs$lang$maxFixedArity = 1;
|
|
301
|
+
return f16;
|
|
315
302
|
|
|
316
303
|
})();
|
|
317
|
-
var set_once_fixtures_BANG_ = (() => {
|
|
318
|
-
const
|
|
319
|
-
const
|
|
320
|
-
switch (
|
|
321
|
-
return
|
|
304
|
+
var set_once_fixtures_BANG_ = /* @__PURE__ */ (() => {
|
|
305
|
+
const f19 = (function (...args20) {
|
|
306
|
+
const G__211 = args20.length;
|
|
307
|
+
switch (G__211) {case 1:
|
|
308
|
+
return f19.cljs$core$IFn$_invoke$arity$1(args20[0]);
|
|
322
309
|
|
|
323
310
|
break;
|
|
324
311
|
case 2:
|
|
325
|
-
return
|
|
312
|
+
return f19.cljs$core$IFn$_invoke$arity$2(args20[0], args20[1]);
|
|
326
313
|
|
|
327
314
|
break;
|
|
328
315
|
default:
|
|
329
|
-
throw (new Error(`${"Invalid arity: "}${
|
|
316
|
+
throw (new Error(`${"Invalid arity: "}${args20.length??''}`))};
|
|
330
317
|
|
|
331
318
|
});
|
|
332
|
-
|
|
319
|
+
f19.cljs$core$IFn$_invoke$arity$1 = (function (fixtures) {
|
|
333
320
|
return set_once_fixtures_BANG_(null, fixtures);
|
|
334
321
|
|
|
335
322
|
});
|
|
336
|
-
|
|
323
|
+
f19.cljs$core$IFn$_invoke$arity$2 = (function (ns_str, fixtures) {
|
|
337
324
|
return update_current_env_BANG_(["once-fixtures", ns_str], squint_core.constantly(fixtures));
|
|
338
325
|
|
|
339
326
|
});
|
|
340
|
-
|
|
341
|
-
return
|
|
327
|
+
f19.cljs$lang$maxFixedArity = 2;
|
|
328
|
+
return f19;
|
|
342
329
|
|
|
343
330
|
})();
|
|
344
331
|
var test_var = function (v) {
|
|
345
332
|
if (squint_core.truth_(squint_core.fn_QMARK_(v))) {
|
|
346
333
|
const test_name1 = (() => {
|
|
347
|
-
const
|
|
348
|
-
if (squint_core.truth_(
|
|
349
|
-
return
|
|
334
|
+
const or__23674__auto__2 = squint_core.get(squint_core.meta(v), "name");
|
|
335
|
+
if (squint_core.truth_(or__23674__auto__2)) {
|
|
336
|
+
return or__23674__auto__2} else {
|
|
350
337
|
return "anonymous"};
|
|
351
338
|
|
|
352
339
|
})();
|
|
@@ -403,31 +390,31 @@ squint_core.swap_BANG_(test_registry, squint_core.assoc_in, [ns_str, test_name1]
|
|
|
403
390
|
return test_fn;
|
|
404
391
|
|
|
405
392
|
};
|
|
406
|
-
var registered_tests = (() => {
|
|
407
|
-
const
|
|
408
|
-
const
|
|
409
|
-
switch (
|
|
410
|
-
return
|
|
393
|
+
var registered_tests = /* @__PURE__ */ (() => {
|
|
394
|
+
const f22 = (function (...args23) {
|
|
395
|
+
const G__241 = args23.length;
|
|
396
|
+
switch (G__241) {case 0:
|
|
397
|
+
return f22.cljs$core$IFn$_invoke$arity$0();
|
|
411
398
|
|
|
412
399
|
break;
|
|
413
400
|
case 1:
|
|
414
|
-
return
|
|
401
|
+
return f22.cljs$core$IFn$_invoke$arity$1(args23[0]);
|
|
415
402
|
|
|
416
403
|
break;
|
|
417
404
|
default:
|
|
418
|
-
throw (new Error(`${"Invalid arity: "}${
|
|
405
|
+
throw (new Error(`${"Invalid arity: "}${args23.length??''}`))};
|
|
419
406
|
|
|
420
407
|
});
|
|
421
|
-
|
|
408
|
+
f22.cljs$core$IFn$_invoke$arity$0 = (function () {
|
|
422
409
|
return squint_core.vec(squint_core.mapcat(squint_core.vals, squint_core.vals(squint_core.deref(test_registry))));
|
|
423
410
|
|
|
424
411
|
});
|
|
425
|
-
|
|
412
|
+
f22.cljs$core$IFn$_invoke$arity$1 = (function (ns_str) {
|
|
426
413
|
return squint_core.vec(squint_core.vals(squint_core.get(squint_core.deref(test_registry), ns_str)));
|
|
427
414
|
|
|
428
415
|
});
|
|
429
|
-
|
|
430
|
-
return
|
|
416
|
+
f22.cljs$lang$maxFixedArity = 1;
|
|
417
|
+
return f22;
|
|
431
418
|
|
|
432
419
|
})();
|
|
433
420
|
var run_vars_with_once_fixtures = function (ns_str, vars) {
|
|
@@ -466,64 +453,51 @@ return finish6(chain5)};
|
|
|
466
453
|
|
|
467
454
|
};
|
|
468
455
|
var fresh_counters = ({"test": 0, "pass": 0, "fail": 0, "error": 0});
|
|
469
|
-
var run_tests = (() => {
|
|
470
|
-
const
|
|
471
|
-
const
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
;
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
});
|
|
487
|
-
f26.cljs$core$IFn$_invoke$arity$variadic = (function (args) {
|
|
488
|
-
const test_vars6 = ((squint_core.truth_(squint_core.empty_QMARK_(args))) ? (registered_tests()) : (((squint_core.truth_(squint_core.string_QMARK_(squint_core.first(args)))) ? (squint_core.vec(squint_core.mapcat(registered_tests, args))) : ((("else") ? (args) : (null))))));
|
|
489
|
-
const _7 = (((_STAR_current_env_STAR_.val == null)) ? (set_env_BANG_(empty_env())) : (null));
|
|
490
|
-
const saved_counters8 = squint_core.get(get_current_env(), "report-counters");
|
|
491
|
-
const _9 = update_current_env_BANG_(["report-counters"], squint_core.constantly(fresh_counters));
|
|
492
|
-
const groups10 = squint_core.reduce((function (acc, v) {
|
|
493
|
-
const k11 = squint_core.get(squint_core.meta(v), "ns");
|
|
494
|
-
return squint_core.update(acc, k11, squint_core.fnil(squint_core.conj, []), v);
|
|
495
|
-
|
|
496
|
-
}), ({}), test_vars6);
|
|
497
|
-
const run_groups12 = (function () {
|
|
498
|
-
return squint_core.reduce((function (chain, p__30) {
|
|
499
|
-
const vec__1316 = p__30;
|
|
500
|
-
const ns_str17 = squint_core.nth(vec__1316, 0, null);
|
|
501
|
-
const vars18 = squint_core.nth(vec__1316, 1, null);
|
|
456
|
+
var run_tests = /* @__PURE__ */ (() => {
|
|
457
|
+
const impl271 = (function (args) {
|
|
458
|
+
const test_vars2 = ((squint_core.truth_(squint_core.empty_QMARK_(args))) ? (registered_tests()) : (((squint_core.truth_(squint_core.string_QMARK_(squint_core.first(args)))) ? (squint_core.vec(squint_core.mapcat(registered_tests, args))) : ((("else") ? (args) : (null))))));
|
|
459
|
+
const _3 = (((_STAR_current_env_STAR_.val == null)) ? (set_env_BANG_(empty_env())) : (null));
|
|
460
|
+
const saved_counters4 = squint_core.get(get_current_env(), "report-counters");
|
|
461
|
+
const _5 = update_current_env_BANG_(["report-counters"], squint_core.constantly(fresh_counters));
|
|
462
|
+
const groups6 = squint_core.reduce((function (acc, v) {
|
|
463
|
+
const k7 = squint_core.get(squint_core.meta(v), "ns");
|
|
464
|
+
return squint_core.update(acc, k7, squint_core.fnil(squint_core.conj, []), v);
|
|
465
|
+
|
|
466
|
+
}), ({}), test_vars2);
|
|
467
|
+
const run_groups8 = (function () {
|
|
468
|
+
return squint_core.reduce((function (chain, p__28) {
|
|
469
|
+
const vec__912 = p__28;
|
|
470
|
+
const ns_str13 = squint_core.nth(vec__912, 0, null);
|
|
471
|
+
const vars14 = squint_core.nth(vec__912, 1, null);
|
|
502
472
|
if (squint_core.truth_(async_QMARK_(chain))) {
|
|
503
473
|
return chain.then((function (_) {
|
|
504
|
-
return run_vars_with_once_fixtures(
|
|
474
|
+
return run_vars_with_once_fixtures(ns_str13, vars14);
|
|
505
475
|
|
|
506
476
|
}))} else {
|
|
507
|
-
return run_vars_with_once_fixtures(
|
|
477
|
+
return run_vars_with_once_fixtures(ns_str13, vars14)};
|
|
508
478
|
|
|
509
|
-
}), null,
|
|
479
|
+
}), null, groups6);
|
|
510
480
|
|
|
511
481
|
});
|
|
512
|
-
const
|
|
482
|
+
const finish15 = (function (_) {
|
|
513
483
|
report(({"type": "summary"}));
|
|
514
|
-
const
|
|
515
|
-
update_current_env_BANG_(["report-counters"], squint_core.constantly(
|
|
516
|
-
return
|
|
484
|
+
const counters16 = squint_core.get(get_current_env(), "report-counters");
|
|
485
|
+
update_current_env_BANG_(["report-counters"], squint_core.constantly(saved_counters4));
|
|
486
|
+
return counters16;
|
|
487
|
+
|
|
488
|
+
});
|
|
489
|
+
const chain17 = run_groups8();
|
|
490
|
+
if (squint_core.truth_(async_QMARK_(chain17))) {
|
|
491
|
+
return chain17.then(finish15)} else {
|
|
492
|
+
return finish15(null)};
|
|
517
493
|
|
|
518
494
|
});
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
return chain21.then(finish19)} else {
|
|
522
|
-
return finish19(null)};
|
|
495
|
+
const f25 = (function (...rest26) {
|
|
496
|
+
return impl271((((rest26.length === 0)) ? (null) : (rest26)));
|
|
523
497
|
|
|
524
498
|
});
|
|
525
|
-
|
|
526
|
-
return
|
|
499
|
+
(f25["squint$lang$variadic"] = impl271);
|
|
500
|
+
return f25;
|
|
527
501
|
|
|
528
502
|
})();
|
|
529
503
|
|