@t09tanaka/test-gates 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,564 @@
1
+ // src/core/manifest.ts
2
+ var MANIFEST_FILE = "test-gates.json";
3
+ var ManifestError = class extends Error {
4
+ };
5
+ function isRecord(value) {
6
+ return typeof value === "object" && value !== null && !Array.isArray(value);
7
+ }
8
+ function isFilled(value) {
9
+ return typeof value === "string" && value.trim() !== "";
10
+ }
11
+ function allowanceProblems(entry) {
12
+ if (!isRecord(entry)) {
13
+ return [" must be an object"];
14
+ }
15
+ const problems = [];
16
+ if (!isFilled(entry.mutator)) {
17
+ problems.push(': "mutator" is missing');
18
+ }
19
+ if (!isFilled(entry.original)) {
20
+ problems.push(': "original" is missing');
21
+ }
22
+ if (typeof entry.replacement !== "string") {
23
+ problems.push(': "replacement" is missing');
24
+ }
25
+ if (!isFilled(entry.reason)) {
26
+ problems.push(': "reason" is missing (say why the mutant cannot be observed)');
27
+ }
28
+ if (entry.occurrence !== void 0 && !(Number.isInteger(entry.occurrence) && entry.occurrence >= 1)) {
29
+ problems.push(': "occurrence" must be an integer >= 1');
30
+ }
31
+ return problems;
32
+ }
33
+ function validateEquivalentMutants(gatePath, value) {
34
+ if (value === void 0) {
35
+ return [];
36
+ }
37
+ if (!Array.isArray(value)) {
38
+ return [{ file: MANIFEST_FILE, message: `${gatePath}: equivalentMutants must be an array` }];
39
+ }
40
+ return value.flatMap(
41
+ (entry, index) => allowanceProblems(entry).map((problem) => ({
42
+ file: MANIFEST_FILE,
43
+ message: `${gatePath}: equivalentMutants[${index}]${problem}`
44
+ }))
45
+ );
46
+ }
47
+ function isUsableEquivalentMutant(entry) {
48
+ return allowanceProblems(entry).length === 0;
49
+ }
50
+ function parseEntries(kind, entries, fields, violations) {
51
+ const usable = [];
52
+ const seen = /* @__PURE__ */ new Set();
53
+ entries.forEach((entry, index) => {
54
+ const at = `${kind}[${index}]`;
55
+ if (!isRecord(entry)) {
56
+ violations.push({ file: MANIFEST_FILE, message: `${at} must be an object` });
57
+ return;
58
+ }
59
+ if (!isFilled(entry.path)) {
60
+ violations.push({ file: MANIFEST_FILE, message: `${at}: "path" is missing` });
61
+ return;
62
+ }
63
+ for (const field of fields) {
64
+ if (!isFilled(entry[field])) {
65
+ violations.push({
66
+ file: MANIFEST_FILE,
67
+ message: `${entry.path}: "${field}" is missing in ${kind}`
68
+ });
69
+ }
70
+ }
71
+ if (seen.has(entry.path)) {
72
+ violations.push({ file: MANIFEST_FILE, message: `${entry.path}: listed twice in ${kind}` });
73
+ return;
74
+ }
75
+ seen.add(entry.path);
76
+ usable.push(entry);
77
+ });
78
+ return usable;
79
+ }
80
+ function parseManifest(text) {
81
+ let raw;
82
+ try {
83
+ raw = JSON.parse(text);
84
+ } catch (error) {
85
+ throw new ManifestError(`${MANIFEST_FILE} is not valid JSON: ${error.message}`);
86
+ }
87
+ if (!isRecord(raw)) {
88
+ throw new ManifestError(`${MANIFEST_FILE} must be a JSON object`);
89
+ }
90
+ if (!Array.isArray(raw.gates)) {
91
+ throw new ManifestError(`${MANIFEST_FILE}: "gates" must be an array`);
92
+ }
93
+ if (raw.candidates !== void 0 && !Array.isArray(raw.candidates)) {
94
+ throw new ManifestError(`${MANIFEST_FILE}: "candidates" must be an array`);
95
+ }
96
+ for (const key of Object.keys(raw)) {
97
+ if (!["$schema", "gates", "candidates", "settings"].includes(key)) {
98
+ throw new ManifestError(`${MANIFEST_FILE}: unknown top-level key ${JSON.stringify(key)}`);
99
+ }
100
+ }
101
+ const violations = [];
102
+ if (raw.gates.length === 0) {
103
+ violations.push({
104
+ file: MANIFEST_FILE,
105
+ message: "gates is empty. A project with nothing to gate should not have this file"
106
+ });
107
+ }
108
+ const gates = parseEntries("gates", raw.gates, ["decides", "impact"], violations);
109
+ const candidates = parseEntries(
110
+ "candidates",
111
+ raw.candidates ?? [],
112
+ ["decides", "blocker"],
113
+ violations
114
+ );
115
+ const gatePaths = new Set(gates.map((gate) => gate.path));
116
+ for (const candidate of candidates) {
117
+ if (gatePaths.has(candidate.path)) {
118
+ violations.push({
119
+ file: MANIFEST_FILE,
120
+ message: `${candidate.path}: listed in both gates and candidates`
121
+ });
122
+ }
123
+ }
124
+ for (const gate of gates) {
125
+ violations.push(...validateEquivalentMutants(gate.path, gate.equivalentMutants));
126
+ }
127
+ return { gates, candidates, settings: raw.settings, violations };
128
+ }
129
+
130
+ // src/core/settings.ts
131
+ var DEFAULT_REPORT_FILE = "reports/mutation/mutation.json";
132
+ var DEFAULT_GATE_EXTENSIONS = [".ts", ".mts", ".cts", ".js", ".mjs", ".cjs"];
133
+ var DEFAULT_IMPURE_IMPORTS = [
134
+ { pattern: "^@nestjs/", reason: "NestJS runtime (DI, decorators)" },
135
+ { pattern: "^class-(validator|transformer)$", reason: "decorator-based DTO library" },
136
+ {
137
+ pattern: "^(typeorm|sequelize|mongoose|knex|pg|mysql|mysql2|ioredis|redis)(/|$)",
138
+ reason: "database client"
139
+ },
140
+ { pattern: "^@prisma/adapter-", reason: "database client" },
141
+ { pattern: "^(react|react-dom)(/|$)", reason: "React runtime" },
142
+ { pattern: "^next(/|$)", reason: "Next.js runtime" },
143
+ { pattern: "^(server-only|client-only)$", reason: "Next.js execution environment" },
144
+ { pattern: "^(vue|vue-router|vue-i18n|pinia)(/|$)", reason: "Vue runtime" },
145
+ { pattern: "^nuxt(/|$)", reason: "Nuxt runtime" },
146
+ { pattern: "^#(app|imports)(/|$)", reason: "Nuxt runtime" },
147
+ { pattern: "\\.vue$", reason: "component" },
148
+ {
149
+ pattern: "^(express|express-jwt|fastify|koa|rxjs|passport)(/|$)",
150
+ reason: "HTTP framework runtime"
151
+ },
152
+ { pattern: "^passport-", reason: "HTTP framework runtime" },
153
+ {
154
+ pattern: "^(axios|openapi-fetch|stripe|nodemailer|firebase-admin)(/|$)",
155
+ reason: "HTTP client / external service SDK"
156
+ },
157
+ { pattern: "^@(aws-sdk|sentry|slack|stripe)/", reason: "external service SDK" },
158
+ {
159
+ pattern: "^(node:)?(fs|http|https|http2|net|tls|dgram|dns|child_process|worker_threads)(/|$)",
160
+ reason: "file system / network / process access"
161
+ }
162
+ ];
163
+ var DEFAULT_IMPURE_NAMED_IMPORTS = [
164
+ { module: "@prisma/client", names: ["PrismaClient"], reason: "connects to the database" }
165
+ ];
166
+ var DEFAULT_IMPURE_PATHS = [
167
+ { pattern: "\\.(vue|jsx|tsx)$", reason: "component file" },
168
+ { pattern: "\\.d\\.[cm]?ts$", reason: "type declaration file" }
169
+ ];
170
+ var DEFAULT_FORBIDDEN_SOURCE = [
171
+ {
172
+ pattern: `^\\s*(['"])use (client|server)\\1`,
173
+ reason: "'use client' / 'use server' directive (not a pure module)"
174
+ }
175
+ ];
176
+ var SettingsError = class extends Error {
177
+ };
178
+ function isRecord2(value) {
179
+ return typeof value === "object" && value !== null && !Array.isArray(value);
180
+ }
181
+ function compile(pattern, flags, where) {
182
+ try {
183
+ return new RegExp(pattern, flags);
184
+ } catch (error) {
185
+ throw new SettingsError(
186
+ `${where}: invalid regular expression ${JSON.stringify(pattern)} (${error.message})`
187
+ );
188
+ }
189
+ }
190
+ function stringArray(value, where) {
191
+ if (!Array.isArray(value) || value.some((item) => typeof item !== "string" || item === "")) {
192
+ throw new SettingsError(`${where}: must be an array of non-empty strings`);
193
+ }
194
+ return value;
195
+ }
196
+ function optionalString(value, where) {
197
+ if (value === void 0) {
198
+ return null;
199
+ }
200
+ if (typeof value !== "string" || value === "") {
201
+ throw new SettingsError(`${where}: must be a non-empty string`);
202
+ }
203
+ return value;
204
+ }
205
+ function rejectUnknownKeys(value, known, where) {
206
+ for (const key of Object.keys(value)) {
207
+ if (!known.includes(key)) {
208
+ throw new SettingsError(`${where}: unknown key ${JSON.stringify(key)}`);
209
+ }
210
+ }
211
+ }
212
+ function section(value, known, where) {
213
+ if (value === void 0) {
214
+ return {};
215
+ }
216
+ if (!isRecord2(value)) {
217
+ throw new SettingsError(`${where}: must be an object`);
218
+ }
219
+ rejectUnknownKeys(value, known, where);
220
+ return value;
221
+ }
222
+ function compileRules(defaults, raw, where, extraKeys = []) {
223
+ const config = section(raw, ["defaults", "add", ...extraKeys], where);
224
+ if (config.defaults !== void 0 && typeof config.defaults !== "boolean") {
225
+ throw new SettingsError(`${where}.defaults: must be a boolean`);
226
+ }
227
+ const added = config.add ?? [];
228
+ if (!Array.isArray(added)) {
229
+ throw new SettingsError(`${where}.add: must be an array`);
230
+ }
231
+ const all = [];
232
+ if (config.defaults !== false) {
233
+ defaults.forEach((rule) => all.push({ rule, where: `${where} (default)` }));
234
+ }
235
+ added.forEach((item, index) => {
236
+ const at = `${where}.add[${index}]`;
237
+ if (typeof item === "string" && item !== "") {
238
+ all.push({ rule: { pattern: item }, where: at });
239
+ return;
240
+ }
241
+ if (!isRecord2(item) || typeof item.pattern !== "string" || item.pattern === "") {
242
+ throw new SettingsError(`${at}: must be a pattern string or { pattern, flags?, reason? }`);
243
+ }
244
+ rejectUnknownKeys(item, ["pattern", "flags", "reason"], at);
245
+ if (item.flags !== void 0 && typeof item.flags !== "string") {
246
+ throw new SettingsError(`${at}.flags: must be a string`);
247
+ }
248
+ if (item.reason !== void 0 && typeof item.reason !== "string") {
249
+ throw new SettingsError(`${at}.reason: must be a string`);
250
+ }
251
+ all.push({ rule: item, where: at });
252
+ });
253
+ return {
254
+ rules: all.map(({ rule, where: at }) => ({
255
+ regex: compile(rule.pattern, rule.flags, at),
256
+ reason: rule.reason ?? `matches ${rule.pattern}`
257
+ })),
258
+ section: config
259
+ };
260
+ }
261
+ function resolveSettings(raw) {
262
+ const settings = section(
263
+ raw,
264
+ [
265
+ "gateExtensions",
266
+ "spec",
267
+ "impureImports",
268
+ "impureNamedImports",
269
+ "impurePaths",
270
+ "forbiddenSource",
271
+ "importAliases",
272
+ "gateCommand",
273
+ "selfcheck",
274
+ "stryker",
275
+ "lcov"
276
+ ],
277
+ "settings"
278
+ );
279
+ const gateExtensions = settings.gateExtensions === void 0 ? DEFAULT_GATE_EXTENSIONS : stringArray(settings.gateExtensions, "settings.gateExtensions");
280
+ if (gateExtensions.length === 0 || gateExtensions.some((ext) => !ext.startsWith("."))) {
281
+ throw new SettingsError(
282
+ 'settings.gateExtensions: must list at least one extension starting with "."'
283
+ );
284
+ }
285
+ const spec = section(settings.spec, ["suffixes", "rewrite"], "settings.spec");
286
+ const specSuffixes = spec.suffixes === void 0 ? null : stringArray(spec.suffixes, "settings.spec.suffixes");
287
+ const rewriteRaw = spec.rewrite ?? [];
288
+ if (!Array.isArray(rewriteRaw)) {
289
+ throw new SettingsError("settings.spec.rewrite: must be an array");
290
+ }
291
+ const specRewrite = rewriteRaw.map((item, index) => {
292
+ const at = `settings.spec.rewrite[${index}]`;
293
+ if (!isRecord2(item) || typeof item.from !== "string" || typeof item.to !== "string") {
294
+ throw new SettingsError(`${at}: must be { from, to }`);
295
+ }
296
+ rejectUnknownKeys(item, ["from", "to"], at);
297
+ return { regex: compile(item.from, void 0, at), to: item.to };
298
+ });
299
+ const imports = compileRules(
300
+ DEFAULT_IMPURE_IMPORTS,
301
+ settings.impureImports,
302
+ "settings.impureImports",
303
+ ["allow"]
304
+ );
305
+ const allowedImports = imports.section.allow === void 0 ? [] : stringArray(imports.section.allow, "settings.impureImports.allow").map(
306
+ (pattern, index) => compile(pattern, void 0, `settings.impureImports.allow[${index}]`)
307
+ );
308
+ const named = section(
309
+ settings.impureNamedImports,
310
+ ["defaults", "add"],
311
+ "settings.impureNamedImports"
312
+ );
313
+ if (named.defaults !== void 0 && typeof named.defaults !== "boolean") {
314
+ throw new SettingsError("settings.impureNamedImports.defaults: must be a boolean");
315
+ }
316
+ const namedAdd = named.add ?? [];
317
+ if (!Array.isArray(namedAdd)) {
318
+ throw new SettingsError("settings.impureNamedImports.add: must be an array");
319
+ }
320
+ const impureNamedImports = [
321
+ ...named.defaults === false ? [] : DEFAULT_IMPURE_NAMED_IMPORTS,
322
+ ...namedAdd.map((item, index) => {
323
+ const at = `settings.impureNamedImports.add[${index}]`;
324
+ if (!isRecord2(item) || typeof item.module !== "string" || item.module === "") {
325
+ throw new SettingsError(`${at}: must be { module, names, reason? }`);
326
+ }
327
+ rejectUnknownKeys(item, ["module", "names", "reason"], at);
328
+ const names = stringArray(item.names, `${at}.names`);
329
+ if (names.length === 0) {
330
+ throw new SettingsError(`${at}.names: must list at least one name`);
331
+ }
332
+ if (item.reason !== void 0 && typeof item.reason !== "string") {
333
+ throw new SettingsError(`${at}.reason: must be a string`);
334
+ }
335
+ return {
336
+ module: item.module,
337
+ names,
338
+ reason: item.reason ?? "not allowed in a pure module"
339
+ };
340
+ })
341
+ ];
342
+ const aliasesRaw = settings.importAliases ?? [];
343
+ if (!Array.isArray(aliasesRaw)) {
344
+ throw new SettingsError("settings.importAliases: must be an array");
345
+ }
346
+ const importAliases = aliasesRaw.map((item, index) => {
347
+ const at = `settings.importAliases[${index}]`;
348
+ if (!isRecord2(item) || typeof item.prefix !== "string" || item.prefix === "" || typeof item.target !== "string") {
349
+ throw new SettingsError(`${at}: must be { prefix, target }`);
350
+ }
351
+ rejectUnknownKeys(item, ["prefix", "target"], at);
352
+ return { prefix: item.prefix, target: item.target };
353
+ });
354
+ let gateCommand = null;
355
+ if (settings.gateCommand !== void 0) {
356
+ gateCommand = stringArray(settings.gateCommand, "settings.gateCommand");
357
+ if (gateCommand.length === 0) {
358
+ throw new SettingsError("settings.gateCommand: must not be empty");
359
+ }
360
+ }
361
+ const selfcheck = section(settings.selfcheck, ["mode", "failurePattern"], "settings.selfcheck");
362
+ if (selfcheck.mode !== void 0 && selfcheck.mode !== "all" && selfcheck.mode !== "first") {
363
+ throw new SettingsError('settings.selfcheck.mode: must be "all" or "first"');
364
+ }
365
+ const selfcheckFailurePattern = optionalString(
366
+ selfcheck.failurePattern,
367
+ "settings.selfcheck.failurePattern"
368
+ );
369
+ if (selfcheckFailurePattern !== null) {
370
+ compile(
371
+ selfcheckFailurePattern.split("{gate}").join("x"),
372
+ void 0,
373
+ "settings.selfcheck.failurePattern"
374
+ );
375
+ }
376
+ const stryker = section(settings.stryker, ["configFile", "reportFile"], "settings.stryker");
377
+ const lcov = section(settings.lcov, ["file", "summaryExclude"], "settings.lcov");
378
+ return {
379
+ gateExtensions,
380
+ specSuffixes,
381
+ specRewrite,
382
+ impureImports: imports.rules,
383
+ allowedImports,
384
+ impureNamedImports,
385
+ impurePaths: compileRules(DEFAULT_IMPURE_PATHS, settings.impurePaths, "settings.impurePaths").rules,
386
+ forbiddenSource: compileRules(
387
+ DEFAULT_FORBIDDEN_SOURCE,
388
+ settings.forbiddenSource,
389
+ "settings.forbiddenSource"
390
+ ).rules,
391
+ importAliases,
392
+ gateCommand,
393
+ selfcheckMode: selfcheck.mode ?? "all",
394
+ selfcheckFailurePattern,
395
+ strykerConfigFile: optionalString(stryker.configFile, "settings.stryker.configFile"),
396
+ strykerReportFile: optionalString(stryker.reportFile, "settings.stryker.reportFile") ?? DEFAULT_REPORT_FILE,
397
+ lcovFile: optionalString(lcov.file, "settings.lcov.file"),
398
+ lcovSummaryExclude: lcov.summaryExclude === void 0 ? [] : stringArray(lcov.summaryExclude, "settings.lcov.summaryExclude").map(
399
+ (pattern, index) => compile(pattern, void 0, `settings.lcov.summaryExclude[${index}]`)
400
+ )
401
+ };
402
+ }
403
+
404
+ // src/core/selfcheck.ts
405
+ var EXCLUDE_ENV = "TEST_GATES_EXCLUDE_SPEC";
406
+ var THRESHOLD_MESSAGE = /threshold|coverage data for/i;
407
+ function escapeRegExp(text) {
408
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
409
+ }
410
+ function judgeSelfcheck(input) {
411
+ const { status, output, gatePath } = input;
412
+ if (status === null) {
413
+ return "the gate command did not run to completion";
414
+ }
415
+ if (status === 0) {
416
+ return `the gate passed although the spec of ${gatePath} was left out. The gate does not measure this file (does the gate config honor ${EXCLUDE_ENV}?)`;
417
+ }
418
+ if (input.failurePattern) {
419
+ const pattern = input.failurePattern.split("{gate}").join(escapeRegExp(gatePath));
420
+ return new RegExp(pattern).test(output) ? null : `the gate failed (exit ${status}) but the output does not match settings.selfcheck.failurePattern`;
421
+ }
422
+ const reported = output.split("\n").some((line) => line.includes(gatePath) && THRESHOLD_MESSAGE.test(line));
423
+ return reported ? null : `the gate failed (exit ${status}) but not on the coverage threshold of ${gatePath}. It may be failing for another reason`;
424
+ }
425
+
426
+ // src/load.ts
427
+ import fs2 from "fs";
428
+ import path2 from "path";
429
+
430
+ // src/core/spec-path.ts
431
+ function gateExtensionOf(gatePath, gateExtensions) {
432
+ const matching = gateExtensions.filter((extension) => gatePath.endsWith(extension)).sort((a, b) => b.length - a.length);
433
+ return matching[0] ?? null;
434
+ }
435
+ function suffixesFor(extension, settings) {
436
+ return settings.specSuffixes ?? [`.spec${extension}`, `.test${extension}`];
437
+ }
438
+ function specCandidatesFor(gatePath, settings) {
439
+ const extension = gateExtensionOf(gatePath, settings.gateExtensions);
440
+ if (extension === null) {
441
+ return [];
442
+ }
443
+ let base = gatePath.slice(0, -extension.length);
444
+ for (const { regex, to } of settings.specRewrite) {
445
+ base = base.replace(regex, to);
446
+ }
447
+ return suffixesFor(extension, settings).map((suffix) => base + suffix);
448
+ }
449
+ function looksLikeSpec(gatePath, settings) {
450
+ const extension = gateExtensionOf(gatePath, settings.gateExtensions);
451
+ return extension !== null && suffixesFor(extension, settings).some((suffix) => gatePath.endsWith(suffix));
452
+ }
453
+
454
+ // src/fs.ts
455
+ import fs from "fs";
456
+ import path from "path";
457
+ function existsExact(rootDir, relativePath, kind = "file") {
458
+ let current = rootDir;
459
+ for (const segment of relativePath.split("/")) {
460
+ if (segment === "" || segment === ".") {
461
+ continue;
462
+ }
463
+ let entries;
464
+ try {
465
+ entries = fs.readdirSync(current);
466
+ } catch {
467
+ return false;
468
+ }
469
+ if (!entries.includes(segment)) {
470
+ return false;
471
+ }
472
+ current = path.join(current, segment);
473
+ }
474
+ try {
475
+ return kind === "any" || fs.statSync(current).isFile();
476
+ } catch {
477
+ return false;
478
+ }
479
+ }
480
+ function readText(rootDir, relativePath) {
481
+ return fs.readFileSync(path.join(rootDir, relativePath), "utf8");
482
+ }
483
+
484
+ // src/load.ts
485
+ function readManifest(dir) {
486
+ const absoluteDir = path2.resolve(dir);
487
+ const manifestPath = path2.join(absoluteDir, MANIFEST_FILE);
488
+ let text;
489
+ try {
490
+ text = fs2.readFileSync(manifestPath, "utf8");
491
+ } catch (error) {
492
+ if (error.code === "ENOENT") {
493
+ throw new ManifestError(`${MANIFEST_FILE} not found in ${absoluteDir}`);
494
+ }
495
+ throw new ManifestError(`cannot read ${manifestPath}: ${error.message}`);
496
+ }
497
+ const parsed = parseManifest(text);
498
+ let settings;
499
+ try {
500
+ settings = resolveSettings(parsed.settings);
501
+ } catch (error) {
502
+ if (error instanceof SettingsError) {
503
+ throw new ManifestError(`${MANIFEST_FILE}: ${error.message}`);
504
+ }
505
+ throw error;
506
+ }
507
+ const gates = parsed.gates.map((gate) => {
508
+ const specCandidates = specCandidatesFor(gate.path, settings);
509
+ const existingSpecs = specCandidates.filter((candidate) => existsExact(absoluteDir, candidate));
510
+ return {
511
+ ...gate,
512
+ specCandidates,
513
+ existingSpecs,
514
+ spec: existingSpecs[0] ?? specCandidates[0] ?? null
515
+ };
516
+ });
517
+ return {
518
+ dir: absoluteDir,
519
+ gates,
520
+ candidates: parsed.candidates,
521
+ settings,
522
+ violations: parsed.violations
523
+ };
524
+ }
525
+ function loadGates(dir = process.cwd()) {
526
+ const manifest = readManifest(dir);
527
+ if (manifest.violations.length > 0) {
528
+ throw new ManifestError(
529
+ `${MANIFEST_FILE} has problems (run "test-gates check"):
530
+ ` + manifest.violations.map((violation) => ` - ${violation.message}`).join("\n")
531
+ );
532
+ }
533
+ return manifest;
534
+ }
535
+ function gateSpecs(manifest, env = process.env) {
536
+ const excluded = env[EXCLUDE_ENV];
537
+ return manifest.gates.map((gate) => gate.spec).filter((spec) => spec !== null && spec !== excluded);
538
+ }
539
+ var NO_SPEC_PATTERN = "__test_gates_no_spec_left__";
540
+
541
+ export {
542
+ MANIFEST_FILE,
543
+ ManifestError,
544
+ validateEquivalentMutants,
545
+ isUsableEquivalentMutant,
546
+ parseManifest,
547
+ DEFAULT_REPORT_FILE,
548
+ DEFAULT_GATE_EXTENSIONS,
549
+ DEFAULT_IMPURE_IMPORTS,
550
+ DEFAULT_IMPURE_NAMED_IMPORTS,
551
+ DEFAULT_IMPURE_PATHS,
552
+ DEFAULT_FORBIDDEN_SOURCE,
553
+ resolveSettings,
554
+ EXCLUDE_ENV,
555
+ judgeSelfcheck,
556
+ gateExtensionOf,
557
+ looksLikeSpec,
558
+ existsExact,
559
+ readText,
560
+ readManifest,
561
+ loadGates,
562
+ gateSpecs,
563
+ NO_SPEC_PATTERN
564
+ };