@feigi/fleet-ctl 3.31.0 → 3.31.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/package.json +1 -1
- package/scripts/recipe-prove.mjs +8 -3
package/package.json
CHANGED
package/scripts/recipe-prove.mjs
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
// 3. Real tests must be shown to have executed, by at least one of:
|
|
24
24
|
// - the count proof: `--count-line` is a literal the run's own output
|
|
25
25
|
// must contain (text off the runner's summary line, read off a
|
|
26
|
-
// previous run), carrying `--test-count`, a positive integer
|
|
27
|
-
// one number. `tests 0` is a
|
|
28
|
-
// reports it.
|
|
26
|
+
// previous run), carrying `--test-count`, a positive integer no larger
|
|
27
|
+
// than Number.MAX_SAFE_INTEGER, as its one number. `tests 0` is a
|
|
28
|
+
// failed proof however honestly the runner reports it.
|
|
29
29
|
// - the mutation proof: the unmutated run must be green; `--mutate` is a
|
|
30
30
|
// shell command that must change a tracked file (the deliberate
|
|
31
31
|
// failing mutation of one test, or of the code one test covers) — run
|
|
@@ -145,6 +145,11 @@ function parseArgs(argv) {
|
|
|
145
145
|
if ("--test-count" in a && !isDigits(a["--test-count"])) {
|
|
146
146
|
throw cannot(`--test-count must be a whole number, got '${a["--test-count"]}'`);
|
|
147
147
|
}
|
|
148
|
+
// Past Number.MAX_SAFE_INTEGER the cache can store a count other than the
|
|
149
|
+
// one claimed, or none at all, while the line's exact match still holds.
|
|
150
|
+
if ("--test-count" in a && !Number.isSafeInteger(Number(a["--test-count"]))) {
|
|
151
|
+
throw cannot(`--test-count must be at most ${Number.MAX_SAFE_INTEGER}, got '${a["--test-count"]}'`);
|
|
152
|
+
}
|
|
148
153
|
if (("--mutate" in a) !== ("--mutation" in a)) throw cannot("--mutate and --mutation go together");
|
|
149
154
|
return {
|
|
150
155
|
repo,
|