@systemfsoftware/stryker-js 3.0.2 → 4.0.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.
- package/CHANGELOG.md +28 -0
- package/README.md +10 -16
- package/dist/index.d.mts +1603 -8
- package/dist/index.mjs +1034 -9
- package/package.json +11 -8
- package/dist/Checker-A8o5B3Ub.d.mts +0 -40
- package/dist/Checker-Bq8NXD8d.mjs +0 -25
- package/dist/Checker.d.mts +0 -2
- package/dist/Checker.mjs +0 -2
- package/dist/Evaluator-CnAN8-pZ.d.mts +0 -19
- package/dist/Evaluator.d.mts +0 -3
- package/dist/Evaluator.mjs +0 -9
- package/dist/ExitClass.d.mts +0 -9
- package/dist/ExitClass.mjs +0 -59
- package/dist/ExitClass.schema-BmOIK5zT.d.mts +0 -18
- package/dist/Ignorer-BUY68FZQ.d.mts +0 -21
- package/dist/Ignorer.d.mts +0 -2
- package/dist/Ignorer.mjs +0 -7
- package/dist/Metrics.d.mts +0 -7
- package/dist/Metrics.mjs +0 -79
- package/dist/Metrics.schema-BaVd6rXs.d.mts +0 -50
- package/dist/Metrics.schema-DZdoc46X.mjs +0 -27
- package/dist/Module-DHKEMAFI.d.mts +0 -31
- package/dist/Module.d.mts +0 -2
- package/dist/Module.mjs +0 -16
- package/dist/Mutant-Ci25PsWA.d.mts +0 -351
- package/dist/Mutant.d.mts +0 -3
- package/dist/Mutant.mjs +0 -90
- package/dist/Mutant.schema-H3r0ho_R.mjs +0 -34
- package/dist/Plugin-BtItMchw.d.mts +0 -153
- package/dist/Plugin-DXFdJP1l.mjs +0 -105
- package/dist/Plugin.d.mts +0 -2
- package/dist/Plugin.mjs +0 -2
- package/dist/Report.d.mts +0 -2
- package/dist/Report.mjs +0 -98
- package/dist/Report.schema-_buHXdnZ.d.mts +0 -251
- package/dist/Reporter-BWTwlSJf.mjs +0 -25
- package/dist/Reporter-C7ysGxqX.d.mts +0 -16
- package/dist/Reporter.d.mts +0 -4
- package/dist/Reporter.mjs +0 -3
- package/dist/ReporterEvent.d.mts +0 -2
- package/dist/ReporterEvent.mjs +0 -57
- package/dist/ReporterEvent.schema-BhtyYCZo.d.mts +0 -189
- package/dist/Run-BUpNSmcM.d.mts +0 -172
- package/dist/Run.d.mts +0 -2
- package/dist/Run.mjs +0 -56
- package/dist/Run.schema-DZve3k2m.mjs +0 -138
- package/dist/Schema-4oCWQ0P0.d.mts +0 -158
- package/dist/Schema-CMKdWMUN.mjs +0 -244
- package/dist/Schema.d.mts +0 -2
- package/dist/Schema.mjs +0 -2
- package/dist/TestRunner.d.mts +0 -2
- package/dist/TestRunner.mjs +0 -57
- package/dist/TestRunner.schema-Dy0Wdro2.mjs +0 -119
- package/dist/output-file.d.mts +0 -8
- package/dist/output-file.mjs +0 -8
- package/dist/provided-options.d.mts +0 -16
- package/dist/provided-options.mjs +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
package/dist/Plugin-DXFdJP1l.mjs
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import * as Context from "effect/Context";
|
|
3
|
-
import * as S from "effect/Schema";
|
|
4
|
-
import * as Match from "effect/Match";
|
|
5
|
-
import * as Option from "effect/Option";
|
|
6
|
-
import * as Layer from "effect/Layer";
|
|
7
|
-
import * as MutableHashMap from "effect/MutableHashMap";
|
|
8
|
-
//#region src/Plugin.schema.ts
|
|
9
|
-
const PluginKind = S.Literals([
|
|
10
|
-
"Checker",
|
|
11
|
-
"TestRunner",
|
|
12
|
-
"Reporter",
|
|
13
|
-
"Ignore",
|
|
14
|
-
"Evaluator"
|
|
15
|
-
]);
|
|
16
|
-
const PluginLayerKind = S.Literals([
|
|
17
|
-
"Checker",
|
|
18
|
-
"TestRunner",
|
|
19
|
-
"Ignore",
|
|
20
|
-
"Evaluator"
|
|
21
|
-
]);
|
|
22
|
-
var PluginLayerContribution = class extends S.TaggedClass()("PluginContribution", {
|
|
23
|
-
kind: PluginLayerKind,
|
|
24
|
-
name: S.String,
|
|
25
|
-
layer: S.Unknown
|
|
26
|
-
}) {};
|
|
27
|
-
var PluginReporterContribution = class extends S.TaggedClass()("PluginContribution", {
|
|
28
|
-
kind: PluginKind,
|
|
29
|
-
name: S.String,
|
|
30
|
-
make: S.Unknown
|
|
31
|
-
}) {};
|
|
32
|
-
var Shadowing = class extends S.TaggedClass()("Shadowing", {
|
|
33
|
-
kind: S.String,
|
|
34
|
-
name: S.String,
|
|
35
|
-
shadowedIndex: S.Finite,
|
|
36
|
-
winnerIndex: S.Finite
|
|
37
|
-
}) {};
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/Plugin.ts
|
|
40
|
-
var Plugin_exports = /* @__PURE__ */ __exportAll({
|
|
41
|
-
PluginKind: () => PluginKind,
|
|
42
|
-
PluginLayerContribution: () => PluginLayerContribution,
|
|
43
|
-
PluginReporterContribution: () => PluginReporterContribution,
|
|
44
|
-
RunConfiguration: () => RunConfiguration,
|
|
45
|
-
SandboxDirectory: () => SandboxDirectory,
|
|
46
|
-
Shadowing: () => Shadowing,
|
|
47
|
-
composePlugins: () => composePlugins,
|
|
48
|
-
declarePlugin: () => declarePlugin
|
|
49
|
-
});
|
|
50
|
-
var RunConfiguration = class extends Context.Service()("~@systemfsoftware/stryker-js/RunConfiguration") {};
|
|
51
|
-
var SandboxDirectory = class extends Context.Service()("~@systemfsoftware/stryker-js/SandboxDirectory") {};
|
|
52
|
-
function declarePlugin(kind, name, payload) {
|
|
53
|
-
if (kind === "Reporter") return new PluginReporterContribution({
|
|
54
|
-
kind,
|
|
55
|
-
name,
|
|
56
|
-
make: payload
|
|
57
|
-
});
|
|
58
|
-
return new PluginLayerContribution({
|
|
59
|
-
kind,
|
|
60
|
-
name,
|
|
61
|
-
layer: payload
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function foldContributions(contributions) {
|
|
65
|
-
const resolved = MutableHashMap.empty();
|
|
66
|
-
const shadowings = [];
|
|
67
|
-
const lastSeen = MutableHashMap.empty();
|
|
68
|
-
for (const [index, contribution] of contributions.entries()) {
|
|
69
|
-
const key = `${contribution.kind}:${contribution.name}`;
|
|
70
|
-
const previous = MutableHashMap.get(lastSeen, key);
|
|
71
|
-
shadowings.push(...Option.match(previous, {
|
|
72
|
-
onNone: () => [],
|
|
73
|
-
onSome: (shadowedIndex) => [new Shadowing({
|
|
74
|
-
kind: String(contribution.kind),
|
|
75
|
-
name: contribution.name,
|
|
76
|
-
shadowedIndex,
|
|
77
|
-
winnerIndex: index
|
|
78
|
-
})]
|
|
79
|
-
}));
|
|
80
|
-
MutableHashMap.set(resolved, key, contribution);
|
|
81
|
-
MutableHashMap.set(lastSeen, key, index);
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
resolved,
|
|
85
|
-
shadowings
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
const reporterFactoryOf = (contribution) => Match.value(contribution).pipe(Match.discriminator("kind")("Reporter", (reporter) => [{
|
|
89
|
-
name: reporter.name,
|
|
90
|
-
make: reporter.make
|
|
91
|
-
}]), Match.orElse(() => []));
|
|
92
|
-
const layerOf = (contribution) => Match.value(contribution).pipe(Match.discriminator("kind")("Reporter", () => []), Match.orElse((nonReporter) => [nonReporter.layer]));
|
|
93
|
-
const mergedLayer = (layers) => layers.reduce((accumulated, next) => Layer.merge(accumulated, next));
|
|
94
|
-
function composePlugins(contributions) {
|
|
95
|
-
const { resolved, shadowings } = foldContributions(contributions);
|
|
96
|
-
const allResolved = Array.from(MutableHashMap.values(resolved));
|
|
97
|
-
const layers = allResolved.flatMap(layerOf);
|
|
98
|
-
return {
|
|
99
|
-
layer: Option.map(Option.fromUndefinedOr(layers.at(0)), () => mergedLayer(layers)),
|
|
100
|
-
reporterFactories: allResolved.flatMap(reporterFactoryOf),
|
|
101
|
-
shadowings
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
export { declarePlugin as a, PluginReporterContribution as c, composePlugins as i, Shadowing as l, RunConfiguration as n, PluginKind as o, SandboxDirectory as r, PluginLayerContribution as s, Plugin_exports as t };
|
package/dist/Plugin.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { _ as PluginReporterContribution, a as PluginEnvironment, c as RunConfiguration, d as composePlugins, f as declarePlugin, g as PluginLayerKind, h as PluginLayerContribution, i as MergedPluginServices, l as SandboxDirectory, m as PluginKind, n as ComposedPlugins, o as PluginInterfaces, p as PluginContribution, r as ContributionOf, t as AnyPluginContribution, u as SelectedReporterFactory, v as Shadowing } from "./Plugin-BtItMchw.mjs";
|
|
2
|
-
export { AnyPluginContribution, ComposedPlugins, ContributionOf, MergedPluginServices, type PluginContribution, PluginEnvironment, PluginInterfaces, PluginKind, PluginLayerContribution, type PluginLayerKind, PluginReporterContribution, RunConfiguration, SandboxDirectory, SelectedReporterFactory, Shadowing, composePlugins, declarePlugin };
|
package/dist/Plugin.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as declarePlugin, c as PluginReporterContribution, i as composePlugins, l as Shadowing, n as RunConfiguration, o as PluginKind, r as SandboxDirectory, s as PluginLayerContribution } from "./Plugin-DXFdJP1l.mjs";
|
|
2
|
-
export { PluginKind, PluginLayerContribution, PluginReporterContribution, RunConfiguration, SandboxDirectory, Shadowing, composePlugins, declarePlugin };
|
package/dist/Report.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { A as Thresholds, D as TestFileDefinitionDictionary, E as TestFile, O as TestFileDefinitionDictionarySchema, S as PositionSchema, T as TestDefinitionSchema, _ as MutationTestResult, a as FileResult, b as OpenEndLocationSchema, c as FileResultSchema, d as Location, f as LocationSchema, g as MutantStatusSchema, h as MutantStatus, i as DependenciesSchema, j as ThresholdsSchema, k as TestFileSchema, l as FrameworkInformation, m as MutantResultSchema, n as BrandingInformationSchema, o as FileResultDictionary, p as MutantResult, r as Dependencies, s as FileResultDictionarySchema, t as BrandingInformation, u as FrameworkInformationSchema, v as MutationTestResultSchema, w as TestDefinition, x as Position, y as OpenEndLocation } from "./Report.schema-_buHXdnZ.mjs";
|
|
2
|
-
export { BrandingInformation, BrandingInformationSchema, Dependencies, DependenciesSchema, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, Location, LocationSchema, MutantResult, MutantResultSchema, MutantStatus, MutantStatusSchema, MutationTestResult, MutationTestResultSchema, OpenEndLocation, OpenEndLocationSchema, Position, PositionSchema, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, Thresholds, ThresholdsSchema };
|
package/dist/Report.mjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import * as S from "effect/Schema";
|
|
3
|
-
//#region src/Report.schema.ts
|
|
4
|
-
var Report_schema_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
-
BrandingInformationSchema: () => BrandingInformationSchema,
|
|
6
|
-
DependenciesSchema: () => DependenciesSchema,
|
|
7
|
-
FileResultDictionarySchema: () => FileResultDictionarySchema,
|
|
8
|
-
FileResultSchema: () => FileResultSchema,
|
|
9
|
-
FrameworkInformationSchema: () => FrameworkInformationSchema,
|
|
10
|
-
LocationSchema: () => LocationSchema,
|
|
11
|
-
MutantResultSchema: () => MutantResultSchema,
|
|
12
|
-
MutantStatusSchema: () => MutantStatusSchema,
|
|
13
|
-
MutationTestResultSchema: () => MutationTestResultSchema,
|
|
14
|
-
OpenEndLocationSchema: () => OpenEndLocationSchema,
|
|
15
|
-
PositionSchema: () => PositionSchema,
|
|
16
|
-
TestDefinitionSchema: () => TestDefinitionSchema,
|
|
17
|
-
TestFileDefinitionDictionarySchema: () => TestFileDefinitionDictionarySchema,
|
|
18
|
-
TestFileSchema: () => TestFileSchema,
|
|
19
|
-
ThresholdsSchema: () => ThresholdsSchema
|
|
20
|
-
});
|
|
21
|
-
const PositionSchema = S.Struct({
|
|
22
|
-
line: S.Finite,
|
|
23
|
-
column: S.Finite
|
|
24
|
-
});
|
|
25
|
-
const LocationSchema = S.Struct({
|
|
26
|
-
start: PositionSchema,
|
|
27
|
-
end: PositionSchema
|
|
28
|
-
});
|
|
29
|
-
const OpenEndLocationSchema = S.Struct({
|
|
30
|
-
start: PositionSchema,
|
|
31
|
-
end: S.optional(PositionSchema)
|
|
32
|
-
});
|
|
33
|
-
const MutantStatusSchema = S.Literals([
|
|
34
|
-
"Killed",
|
|
35
|
-
"Survived",
|
|
36
|
-
"NoCoverage",
|
|
37
|
-
"CompileError",
|
|
38
|
-
"RuntimeError",
|
|
39
|
-
"Timeout",
|
|
40
|
-
"Ignored",
|
|
41
|
-
"Pending"
|
|
42
|
-
]);
|
|
43
|
-
const MutantResultSchema = S.Struct({
|
|
44
|
-
id: S.String,
|
|
45
|
-
mutatorName: S.String,
|
|
46
|
-
status: MutantStatusSchema,
|
|
47
|
-
location: LocationSchema,
|
|
48
|
-
replacement: S.optional(S.String),
|
|
49
|
-
description: S.optional(S.String),
|
|
50
|
-
statusReason: S.optional(S.String),
|
|
51
|
-
static: S.optional(S.Boolean),
|
|
52
|
-
coveredBy: S.optional(S.Array(S.String)),
|
|
53
|
-
killedBy: S.optional(S.Array(S.String)),
|
|
54
|
-
testsCompleted: S.optional(S.Finite),
|
|
55
|
-
duration: S.optional(S.Finite)
|
|
56
|
-
});
|
|
57
|
-
const FileResultSchema = S.Struct({
|
|
58
|
-
language: S.String,
|
|
59
|
-
source: S.String,
|
|
60
|
-
mutants: S.Array(MutantResultSchema)
|
|
61
|
-
});
|
|
62
|
-
const FileResultDictionarySchema = S.Record(S.String, FileResultSchema);
|
|
63
|
-
const TestDefinitionSchema = S.Struct({
|
|
64
|
-
id: S.String,
|
|
65
|
-
name: S.String,
|
|
66
|
-
location: S.optional(OpenEndLocationSchema)
|
|
67
|
-
});
|
|
68
|
-
const TestFileSchema = S.Struct({
|
|
69
|
-
source: S.optional(S.String),
|
|
70
|
-
tests: S.Array(TestDefinitionSchema)
|
|
71
|
-
});
|
|
72
|
-
const TestFileDefinitionDictionarySchema = S.Record(S.String, TestFileSchema);
|
|
73
|
-
const ThresholdsSchema = S.Struct({
|
|
74
|
-
high: S.Finite,
|
|
75
|
-
low: S.Finite
|
|
76
|
-
});
|
|
77
|
-
const BrandingInformationSchema = S.Struct({
|
|
78
|
-
homepageUrl: S.String,
|
|
79
|
-
imageUrl: S.optional(S.String)
|
|
80
|
-
});
|
|
81
|
-
const DependenciesSchema = S.Record(S.String, S.String);
|
|
82
|
-
const FrameworkInformationSchema = S.Struct({
|
|
83
|
-
name: S.String,
|
|
84
|
-
version: S.optional(S.String),
|
|
85
|
-
branding: S.optional(BrandingInformationSchema),
|
|
86
|
-
dependencies: S.optional(DependenciesSchema)
|
|
87
|
-
});
|
|
88
|
-
const MutationTestResultSchema = S.Struct({
|
|
89
|
-
schemaVersion: S.String,
|
|
90
|
-
files: FileResultDictionarySchema,
|
|
91
|
-
thresholds: ThresholdsSchema,
|
|
92
|
-
config: S.optional(S.Record(S.String, S.Unknown)),
|
|
93
|
-
testFiles: S.optional(TestFileDefinitionDictionarySchema),
|
|
94
|
-
projectRoot: S.optional(S.String),
|
|
95
|
-
framework: S.optional(FrameworkInformationSchema)
|
|
96
|
-
});
|
|
97
|
-
//#endregion
|
|
98
|
-
export { BrandingInformationSchema, DependenciesSchema, FileResultDictionarySchema, FileResultSchema, FrameworkInformationSchema, LocationSchema, MutantResultSchema, MutantStatusSchema, MutationTestResultSchema, OpenEndLocationSchema, PositionSchema, TestDefinitionSchema, TestFileDefinitionDictionarySchema, TestFileSchema, ThresholdsSchema, Report_schema_exports as t };
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import * as S from "effect/Schema";
|
|
2
|
-
declare namespace Report_schema_d_exports {
|
|
3
|
-
export { BrandingInformation, BrandingInformationSchema, Dependencies, DependenciesSchema, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, Location, LocationSchema, MutantResult, MutantResultSchema, MutantStatus, MutantStatusSchema, MutationTestResult, MutationTestResultSchema, OpenEndLocation, OpenEndLocationSchema, Position, PositionSchema, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, Thresholds, ThresholdsSchema };
|
|
4
|
-
}
|
|
5
|
-
declare const PositionSchema: S.Struct<{
|
|
6
|
-
readonly line: S.Finite;
|
|
7
|
-
readonly column: S.Finite;
|
|
8
|
-
}>;
|
|
9
|
-
type Position = typeof PositionSchema.Type;
|
|
10
|
-
declare const LocationSchema: S.Struct<{
|
|
11
|
-
readonly start: S.Struct<{
|
|
12
|
-
readonly line: S.Finite;
|
|
13
|
-
readonly column: S.Finite;
|
|
14
|
-
}>;
|
|
15
|
-
readonly end: S.Struct<{
|
|
16
|
-
readonly line: S.Finite;
|
|
17
|
-
readonly column: S.Finite;
|
|
18
|
-
}>;
|
|
19
|
-
}>;
|
|
20
|
-
type Location = typeof LocationSchema.Type;
|
|
21
|
-
declare const OpenEndLocationSchema: S.Struct<{
|
|
22
|
-
readonly start: S.Struct<{
|
|
23
|
-
readonly line: S.Finite;
|
|
24
|
-
readonly column: S.Finite;
|
|
25
|
-
}>;
|
|
26
|
-
readonly end: S.optional<S.Struct<{
|
|
27
|
-
readonly line: S.Finite;
|
|
28
|
-
readonly column: S.Finite;
|
|
29
|
-
}>>;
|
|
30
|
-
}>;
|
|
31
|
-
type OpenEndLocation = typeof OpenEndLocationSchema.Type;
|
|
32
|
-
declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
33
|
-
type MutantStatus = typeof MutantStatusSchema.Type;
|
|
34
|
-
declare const MutantResultSchema: S.Struct<{
|
|
35
|
-
readonly id: S.String;
|
|
36
|
-
readonly mutatorName: S.String;
|
|
37
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
38
|
-
readonly location: S.Struct<{
|
|
39
|
-
readonly start: S.Struct<{
|
|
40
|
-
readonly line: S.Finite;
|
|
41
|
-
readonly column: S.Finite;
|
|
42
|
-
}>;
|
|
43
|
-
readonly end: S.Struct<{
|
|
44
|
-
readonly line: S.Finite;
|
|
45
|
-
readonly column: S.Finite;
|
|
46
|
-
}>;
|
|
47
|
-
}>;
|
|
48
|
-
readonly replacement: S.optional<S.String>;
|
|
49
|
-
readonly description: S.optional<S.String>;
|
|
50
|
-
readonly statusReason: S.optional<S.String>;
|
|
51
|
-
readonly static: S.optional<S.Boolean>;
|
|
52
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
53
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
54
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
55
|
-
readonly duration: S.optional<S.Finite>;
|
|
56
|
-
}>;
|
|
57
|
-
type MutantResult = typeof MutantResultSchema.Type;
|
|
58
|
-
declare const FileResultSchema: S.Struct<{
|
|
59
|
-
readonly language: S.String;
|
|
60
|
-
readonly source: S.String;
|
|
61
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
62
|
-
readonly id: S.String;
|
|
63
|
-
readonly mutatorName: S.String;
|
|
64
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
65
|
-
readonly location: S.Struct<{
|
|
66
|
-
readonly start: S.Struct<{
|
|
67
|
-
readonly line: S.Finite;
|
|
68
|
-
readonly column: S.Finite;
|
|
69
|
-
}>;
|
|
70
|
-
readonly end: S.Struct<{
|
|
71
|
-
readonly line: S.Finite;
|
|
72
|
-
readonly column: S.Finite;
|
|
73
|
-
}>;
|
|
74
|
-
}>;
|
|
75
|
-
readonly replacement: S.optional<S.String>;
|
|
76
|
-
readonly description: S.optional<S.String>;
|
|
77
|
-
readonly statusReason: S.optional<S.String>;
|
|
78
|
-
readonly static: S.optional<S.Boolean>;
|
|
79
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
80
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
81
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
82
|
-
readonly duration: S.optional<S.Finite>;
|
|
83
|
-
}>>;
|
|
84
|
-
}>;
|
|
85
|
-
type FileResult = typeof FileResultSchema.Type;
|
|
86
|
-
declare const FileResultDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
87
|
-
readonly language: S.String;
|
|
88
|
-
readonly source: S.String;
|
|
89
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
90
|
-
readonly id: S.String;
|
|
91
|
-
readonly mutatorName: S.String;
|
|
92
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
93
|
-
readonly location: S.Struct<{
|
|
94
|
-
readonly start: S.Struct<{
|
|
95
|
-
readonly line: S.Finite;
|
|
96
|
-
readonly column: S.Finite;
|
|
97
|
-
}>;
|
|
98
|
-
readonly end: S.Struct<{
|
|
99
|
-
readonly line: S.Finite;
|
|
100
|
-
readonly column: S.Finite;
|
|
101
|
-
}>;
|
|
102
|
-
}>;
|
|
103
|
-
readonly replacement: S.optional<S.String>;
|
|
104
|
-
readonly description: S.optional<S.String>;
|
|
105
|
-
readonly statusReason: S.optional<S.String>;
|
|
106
|
-
readonly static: S.optional<S.Boolean>;
|
|
107
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
108
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
109
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
110
|
-
readonly duration: S.optional<S.Finite>;
|
|
111
|
-
}>>;
|
|
112
|
-
}>>;
|
|
113
|
-
type FileResultDictionary = typeof FileResultDictionarySchema.Type;
|
|
114
|
-
declare const TestDefinitionSchema: S.Struct<{
|
|
115
|
-
readonly id: S.String;
|
|
116
|
-
readonly name: S.String;
|
|
117
|
-
readonly location: S.optional<S.Struct<{
|
|
118
|
-
readonly start: S.Struct<{
|
|
119
|
-
readonly line: S.Finite;
|
|
120
|
-
readonly column: S.Finite;
|
|
121
|
-
}>;
|
|
122
|
-
readonly end: S.optional<S.Struct<{
|
|
123
|
-
readonly line: S.Finite;
|
|
124
|
-
readonly column: S.Finite;
|
|
125
|
-
}>>;
|
|
126
|
-
}>>;
|
|
127
|
-
}>;
|
|
128
|
-
type TestDefinition = typeof TestDefinitionSchema.Type;
|
|
129
|
-
declare const TestFileSchema: S.Struct<{
|
|
130
|
-
readonly source: S.optional<S.String>;
|
|
131
|
-
readonly tests: S.$Array<S.Struct<{
|
|
132
|
-
readonly id: S.String;
|
|
133
|
-
readonly name: S.String;
|
|
134
|
-
readonly location: S.optional<S.Struct<{
|
|
135
|
-
readonly start: S.Struct<{
|
|
136
|
-
readonly line: S.Finite;
|
|
137
|
-
readonly column: S.Finite;
|
|
138
|
-
}>;
|
|
139
|
-
readonly end: S.optional<S.Struct<{
|
|
140
|
-
readonly line: S.Finite;
|
|
141
|
-
readonly column: S.Finite;
|
|
142
|
-
}>>;
|
|
143
|
-
}>>;
|
|
144
|
-
}>>;
|
|
145
|
-
}>;
|
|
146
|
-
type TestFile = typeof TestFileSchema.Type;
|
|
147
|
-
declare const TestFileDefinitionDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
148
|
-
readonly source: S.optional<S.String>;
|
|
149
|
-
readonly tests: S.$Array<S.Struct<{
|
|
150
|
-
readonly id: S.String;
|
|
151
|
-
readonly name: S.String;
|
|
152
|
-
readonly location: S.optional<S.Struct<{
|
|
153
|
-
readonly start: S.Struct<{
|
|
154
|
-
readonly line: S.Finite;
|
|
155
|
-
readonly column: S.Finite;
|
|
156
|
-
}>;
|
|
157
|
-
readonly end: S.optional<S.Struct<{
|
|
158
|
-
readonly line: S.Finite;
|
|
159
|
-
readonly column: S.Finite;
|
|
160
|
-
}>>;
|
|
161
|
-
}>>;
|
|
162
|
-
}>>;
|
|
163
|
-
}>>;
|
|
164
|
-
type TestFileDefinitionDictionary = typeof TestFileDefinitionDictionarySchema.Type;
|
|
165
|
-
declare const ThresholdsSchema: S.Struct<{
|
|
166
|
-
readonly high: S.Finite;
|
|
167
|
-
readonly low: S.Finite;
|
|
168
|
-
}>;
|
|
169
|
-
type Thresholds = typeof ThresholdsSchema.Type;
|
|
170
|
-
declare const BrandingInformationSchema: S.Struct<{
|
|
171
|
-
readonly homepageUrl: S.String;
|
|
172
|
-
readonly imageUrl: S.optional<S.String>;
|
|
173
|
-
}>;
|
|
174
|
-
type BrandingInformation = typeof BrandingInformationSchema.Type;
|
|
175
|
-
declare const DependenciesSchema: S.$Record<S.String, S.String>;
|
|
176
|
-
type Dependencies = typeof DependenciesSchema.Type;
|
|
177
|
-
declare const FrameworkInformationSchema: S.Struct<{
|
|
178
|
-
readonly name: S.String;
|
|
179
|
-
readonly version: S.optional<S.String>;
|
|
180
|
-
readonly branding: S.optional<S.Struct<{
|
|
181
|
-
readonly homepageUrl: S.String;
|
|
182
|
-
readonly imageUrl: S.optional<S.String>;
|
|
183
|
-
}>>;
|
|
184
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
185
|
-
}>;
|
|
186
|
-
type FrameworkInformation = typeof FrameworkInformationSchema.Type;
|
|
187
|
-
declare const MutationTestResultSchema: S.Struct<{
|
|
188
|
-
readonly schemaVersion: S.String;
|
|
189
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
190
|
-
readonly language: S.String;
|
|
191
|
-
readonly source: S.String;
|
|
192
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
193
|
-
readonly id: S.String;
|
|
194
|
-
readonly mutatorName: S.String;
|
|
195
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
196
|
-
readonly location: S.Struct<{
|
|
197
|
-
readonly start: S.Struct<{
|
|
198
|
-
readonly line: S.Finite;
|
|
199
|
-
readonly column: S.Finite;
|
|
200
|
-
}>;
|
|
201
|
-
readonly end: S.Struct<{
|
|
202
|
-
readonly line: S.Finite;
|
|
203
|
-
readonly column: S.Finite;
|
|
204
|
-
}>;
|
|
205
|
-
}>;
|
|
206
|
-
readonly replacement: S.optional<S.String>;
|
|
207
|
-
readonly description: S.optional<S.String>;
|
|
208
|
-
readonly statusReason: S.optional<S.String>;
|
|
209
|
-
readonly static: S.optional<S.Boolean>;
|
|
210
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
211
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
212
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
213
|
-
readonly duration: S.optional<S.Finite>;
|
|
214
|
-
}>>;
|
|
215
|
-
}>>;
|
|
216
|
-
readonly thresholds: S.Struct<{
|
|
217
|
-
readonly high: S.Finite;
|
|
218
|
-
readonly low: S.Finite;
|
|
219
|
-
}>;
|
|
220
|
-
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
221
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
222
|
-
readonly source: S.optional<S.String>;
|
|
223
|
-
readonly tests: S.$Array<S.Struct<{
|
|
224
|
-
readonly id: S.String;
|
|
225
|
-
readonly name: S.String;
|
|
226
|
-
readonly location: S.optional<S.Struct<{
|
|
227
|
-
readonly start: S.Struct<{
|
|
228
|
-
readonly line: S.Finite;
|
|
229
|
-
readonly column: S.Finite;
|
|
230
|
-
}>;
|
|
231
|
-
readonly end: S.optional<S.Struct<{
|
|
232
|
-
readonly line: S.Finite;
|
|
233
|
-
readonly column: S.Finite;
|
|
234
|
-
}>>;
|
|
235
|
-
}>>;
|
|
236
|
-
}>>;
|
|
237
|
-
}>>>;
|
|
238
|
-
readonly projectRoot: S.optional<S.String>;
|
|
239
|
-
readonly framework: S.optional<S.Struct<{
|
|
240
|
-
readonly name: S.String;
|
|
241
|
-
readonly version: S.optional<S.String>;
|
|
242
|
-
readonly branding: S.optional<S.Struct<{
|
|
243
|
-
readonly homepageUrl: S.String;
|
|
244
|
-
readonly imageUrl: S.optional<S.String>;
|
|
245
|
-
}>>;
|
|
246
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
247
|
-
}>>;
|
|
248
|
-
}>;
|
|
249
|
-
type MutationTestResult = typeof MutationTestResultSchema.Type;
|
|
250
|
-
//#endregion
|
|
251
|
-
export { Thresholds as A, Report_schema_d_exports as C, TestFileDefinitionDictionary as D, TestFile as E, TestFileDefinitionDictionarySchema as O, PositionSchema as S, TestDefinitionSchema as T, MutationTestResult as _, FileResult as a, OpenEndLocationSchema as b, FileResultSchema as c, Location as d, LocationSchema as f, MutantStatusSchema as g, MutantStatus as h, DependenciesSchema as i, ThresholdsSchema as j, TestFileSchema as k, FrameworkInformation as l, MutantResultSchema as m, BrandingInformationSchema as n, FileResultDictionary as o, MutantResult as p, Dependencies as r, FileResultDictionarySchema as s, BrandingInformation as t, FrameworkInformationSchema as u, MutationTestResultSchema as v, TestDefinition as w, Position as x, OpenEndLocation as y };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEventKind, ReporterEventSchema, ReporterEventUnion } from "./ReporterEvent.mjs";
|
|
3
|
-
import * as S from "effect/Schema";
|
|
4
|
-
//#region src/Reporter.schema.ts
|
|
5
|
-
var ReporterFailed = class extends S.TaggedError()("ReporterFailed", {
|
|
6
|
-
cause: S.String,
|
|
7
|
-
event: ReporterEventKind,
|
|
8
|
-
reporterName: S.String
|
|
9
|
-
}) {};
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/Reporter.ts
|
|
12
|
-
var Reporter_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
-
DryRunCompleted: () => DryRunCompleted,
|
|
14
|
-
MutantTested: () => MutantTested,
|
|
15
|
-
MutationTestReportReady: () => MutationTestReportReady,
|
|
16
|
-
MutationTestingPlanReady: () => MutationTestingPlanReady,
|
|
17
|
-
REPORTER_SCHEMA_VERSION: () => "1.0",
|
|
18
|
-
ReporterEventKind: () => ReporterEventKind,
|
|
19
|
-
ReporterEventSchema: () => ReporterEventSchema,
|
|
20
|
-
ReporterEventUnion: () => ReporterEventUnion,
|
|
21
|
-
ReporterFailed: () => ReporterFailed
|
|
22
|
-
});
|
|
23
|
-
const REPORTER_SCHEMA_VERSION = "1.0";
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Reporter_exports as n, ReporterFailed as r, REPORTER_SCHEMA_VERSION as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { n as MetricsResult, t as Metrics } from "./Metrics.schema-BaVd6rXs.mjs";
|
|
2
|
-
import { a as ReporterEvent, c as ReporterEventUnion, d as ReporterPlanDescriptor, f as RunTiming, i as MutationTestingPlanReady, l as ReporterFactory, n as MutantTested, o as ReporterEventKind, r as MutationTestReportReady, s as ReporterEventSchema, t as DryRunCompleted, u as ReporterInit } from "./ReporterEvent.schema-BhtyYCZo.mjs";
|
|
3
|
-
import * as S from "effect/Schema";
|
|
4
|
-
//#region src/Reporter.schema.d.ts
|
|
5
|
-
declare const ReporterFailed_base: S.Class<ReporterFailed, S.TaggedStruct<"ReporterFailed", {
|
|
6
|
-
readonly cause: S.String;
|
|
7
|
-
readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
8
|
-
readonly reporterName: S.String;
|
|
9
|
-
}>, import("effect/Cause").YieldableError>;
|
|
10
|
-
declare class ReporterFailed extends ReporterFailed_base {}
|
|
11
|
-
declare namespace Reporter_d_exports {
|
|
12
|
-
export { DryRunCompleted, Metrics, MetricsResult, MutantTested, MutationTestReportReady, MutationTestingPlanReady, REPORTER_SCHEMA_VERSION, ReporterEvent, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterPlanDescriptor, RunTiming };
|
|
13
|
-
}
|
|
14
|
-
declare const REPORTER_SCHEMA_VERSION = "1.0";
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Reporter_d_exports as n, ReporterFailed as r, REPORTER_SCHEMA_VERSION as t };
|
package/dist/Reporter.d.mts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { n as MetricsResult, t as Metrics } from "./Metrics.schema-BaVd6rXs.mjs";
|
|
2
|
-
import { a as ReporterEvent, c as ReporterEventUnion, d as ReporterPlanDescriptor, f as RunTiming, i as MutationTestingPlanReady, l as ReporterFactory, n as MutantTested, o as ReporterEventKind, r as MutationTestReportReady, s as ReporterEventSchema, t as DryRunCompleted, u as ReporterInit } from "./ReporterEvent.schema-BhtyYCZo.mjs";
|
|
3
|
-
import { r as ReporterFailed, t as REPORTER_SCHEMA_VERSION } from "./Reporter-C7ysGxqX.mjs";
|
|
4
|
-
export { DryRunCompleted, type Metrics, type MetricsResult, MutantTested, MutationTestReportReady, MutationTestingPlanReady, REPORTER_SCHEMA_VERSION, type ReporterEvent, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, type ReporterFactory, ReporterFailed, type ReporterInit, type ReporterPlanDescriptor, type RunTiming };
|
package/dist/Reporter.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEventKind, ReporterEventSchema, ReporterEventUnion } from "./ReporterEvent.mjs";
|
|
2
|
-
import { r as ReporterFailed, t as REPORTER_SCHEMA_VERSION } from "./Reporter-BWTwlSJf.mjs";
|
|
3
|
-
export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, REPORTER_SCHEMA_VERSION, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFailed };
|
package/dist/ReporterEvent.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as ReporterEvent, c as ReporterEventUnion, d as ReporterPlanDescriptor, f as RunTiming, i as MutationTestingPlanReady, l as ReporterFactory, n as MutantTested, o as ReporterEventKind, r as MutationTestReportReady, s as ReporterEventSchema, t as DryRunCompleted, u as ReporterInit } from "./ReporterEvent.schema-BhtyYCZo.mjs";
|
|
2
|
-
export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEvent, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterInit, ReporterPlanDescriptor, RunTiming };
|
package/dist/ReporterEvent.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { t as LocationSchema } from "./Mutant.schema-H3r0ho_R.mjs";
|
|
2
|
-
import { MutationTestResultSchema } from "./Report.mjs";
|
|
3
|
-
import { t as MetricsResultSchema } from "./Metrics.schema-DZdoc46X.mjs";
|
|
4
|
-
import { i as MutantStatus } from "./Run.schema-DZve3k2m.mjs";
|
|
5
|
-
import { d as TestRunnerCapabilitiesSchema, u as TestResultSchema } from "./TestRunner.schema-Dy0Wdro2.mjs";
|
|
6
|
-
import * as S from "effect/Schema";
|
|
7
|
-
//#region src/ReporterEvent.schema.ts
|
|
8
|
-
const ReporterEventKind = S.Literals([
|
|
9
|
-
"dryRunCompleted",
|
|
10
|
-
"mutationTestingPlanReady",
|
|
11
|
-
"mutantTested",
|
|
12
|
-
"mutationTestReportReady"
|
|
13
|
-
]);
|
|
14
|
-
const RunTimingSchema = S.Struct({
|
|
15
|
-
net: S.Finite,
|
|
16
|
-
overhead: S.Finite
|
|
17
|
-
});
|
|
18
|
-
const ReporterPlanKind = S.Literals(["EarlyResult", "Run"]);
|
|
19
|
-
const ReporterPlanDescriptorSchema = S.Struct({
|
|
20
|
-
mutantId: S.String,
|
|
21
|
-
plan: ReporterPlanKind,
|
|
22
|
-
netTime: S.Finite,
|
|
23
|
-
reloadEnvironment: S.Boolean
|
|
24
|
-
});
|
|
25
|
-
var DryRunCompleted = class extends S.TaggedClass()("dryRunCompleted", {
|
|
26
|
-
timing: RunTimingSchema,
|
|
27
|
-
capabilities: TestRunnerCapabilitiesSchema,
|
|
28
|
-
testCount: S.Finite,
|
|
29
|
-
tests: S.Array(TestResultSchema)
|
|
30
|
-
}) {};
|
|
31
|
-
var MutationTestingPlanReady = class extends S.TaggedClass()("mutationTestingPlanReady", {
|
|
32
|
-
total: S.Finite,
|
|
33
|
-
plans: S.Array(ReporterPlanDescriptorSchema)
|
|
34
|
-
}) {};
|
|
35
|
-
var MutantTested = class extends S.TaggedClass()("mutantTested", {
|
|
36
|
-
id: S.String,
|
|
37
|
-
status: MutantStatus,
|
|
38
|
-
file: S.String,
|
|
39
|
-
location: LocationSchema,
|
|
40
|
-
mutator: S.String,
|
|
41
|
-
replacement: S.NullOr(S.String),
|
|
42
|
-
completed: S.Finite,
|
|
43
|
-
total: S.Finite
|
|
44
|
-
}) {};
|
|
45
|
-
var MutationTestReportReady = class extends S.TaggedClass()("mutationTestReportReady", {
|
|
46
|
-
report: MutationTestResultSchema,
|
|
47
|
-
metrics: MetricsResultSchema
|
|
48
|
-
}) {};
|
|
49
|
-
const ReporterEventUnion = S.Union([
|
|
50
|
-
DryRunCompleted,
|
|
51
|
-
MutationTestingPlanReady,
|
|
52
|
-
MutantTested,
|
|
53
|
-
MutationTestReportReady
|
|
54
|
-
]);
|
|
55
|
-
const ReporterEventSchema = S.toStandardSchemaV1(ReporterEventUnion);
|
|
56
|
-
//#endregion
|
|
57
|
-
export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEventKind, ReporterEventSchema, ReporterEventUnion };
|