@systemfsoftware/stryker-js 12.1.1 → 13.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.
- package/CHANGELOG.md +77 -0
- package/dist/{Run.schema-D7N2ILY3.d.mts → Run.schema-BwLLAYqu.d.mts} +139 -61
- package/dist/Run.schema-Cv2_Kup0.mjs +272 -0
- package/dist/{RunEnvironment.service-6aDpmGcD.d.mts → RunEnvironment.service-rkMZ8nm1.d.mts} +130 -64
- package/dist/config.d.mts +3 -9
- package/dist/config.mjs +1 -1
- package/dist/{Run.schema-BaK_pxuK.mjs → dist-CQ7r4AaH.mjs} +1589 -1721
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/{index-B8dqrKV1.d.mts → index-Ptvmn934.d.mts} +713 -376
- package/dist/index.d.mts +175 -192
- package/dist/index.mjs +6 -5
- package/dist/main.mjs +38131 -34435
- package/dist/{stryker-config.schema-DFWkz89S.d.mts → merge-config-BVdwN_LJ.d.mts} +9 -2
- package/dist/merge-config-DZHwEkGY.mjs +63 -0
- package/dist/promises.d.mts +3 -3
- package/dist/promises.mjs +4 -7
- package/dist/{run-stages.cell-CtFLJCm0.mjs → run-stages.cell-rdoY0cVH.mjs} +3479 -3343
- package/package.json +15 -16
- package/dist/merge-config-ByZJPeQZ.mjs +0 -32
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Handle, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
2
2
|
import * as Option$1 from "effect/Option";
|
|
3
|
-
import "effect/Result";
|
|
3
|
+
import * as Result from "effect/Result";
|
|
4
4
|
import * as S from "effect/Schema";
|
|
5
5
|
import * as Effect$1 from "effect/Effect";
|
|
6
|
+
import * as Arr from "effect/Array";
|
|
6
7
|
import * as Context from "effect/Context";
|
|
7
8
|
import { Schema } from "effect";
|
|
8
9
|
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
@@ -2670,54 +2671,73 @@ declare interface YieldExpression$1 extends Span$1 {
|
|
|
2670
2671
|
}
|
|
2671
2672
|
//#endregion
|
|
2672
2673
|
//#region src/Location.schema.d.ts
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2674
|
+
declare const Offset: S.Int;
|
|
2675
|
+
type Offset = typeof Offset.Type;
|
|
2676
|
+
/** A 1-based line: the first line of a file is line 1. */
|
|
2677
|
+
declare const Line: S.Int;
|
|
2678
|
+
type Line = typeof Line.Type;
|
|
2679
|
+
/** A 1-based column: the first character of a line is column 1. */
|
|
2680
|
+
declare const Column: S.Int;
|
|
2681
|
+
type Column = typeof Column.Type;
|
|
2682
|
+
declare const Position: S.Struct<{
|
|
2681
2683
|
readonly line: S.Int;
|
|
2682
2684
|
readonly column: S.Int;
|
|
2683
2685
|
}>;
|
|
2684
|
-
type Position = typeof
|
|
2685
|
-
declare const
|
|
2686
|
-
readonly start:
|
|
2687
|
-
readonly line:
|
|
2688
|
-
readonly column:
|
|
2689
|
-
}
|
|
2690
|
-
readonly end:
|
|
2691
|
-
readonly line:
|
|
2692
|
-
readonly column:
|
|
2693
|
-
}
|
|
2686
|
+
type Position = typeof Position.Type;
|
|
2687
|
+
declare const Location: S.declare<{
|
|
2688
|
+
readonly start: {
|
|
2689
|
+
readonly line: number;
|
|
2690
|
+
readonly column: number;
|
|
2691
|
+
};
|
|
2692
|
+
readonly end: {
|
|
2693
|
+
readonly line: number;
|
|
2694
|
+
readonly column: number;
|
|
2695
|
+
};
|
|
2696
|
+
}, {
|
|
2697
|
+
readonly start: {
|
|
2698
|
+
readonly line: number;
|
|
2699
|
+
readonly column: number;
|
|
2700
|
+
};
|
|
2701
|
+
readonly end: {
|
|
2702
|
+
readonly line: number;
|
|
2703
|
+
readonly column: number;
|
|
2704
|
+
};
|
|
2694
2705
|
}>;
|
|
2695
|
-
type Location = typeof
|
|
2696
|
-
declare const
|
|
2697
|
-
readonly start:
|
|
2698
|
-
readonly line:
|
|
2699
|
-
readonly column:
|
|
2700
|
-
}
|
|
2701
|
-
readonly end
|
|
2702
|
-
readonly line:
|
|
2703
|
-
readonly column:
|
|
2704
|
-
}
|
|
2706
|
+
type Location = typeof Location.Type;
|
|
2707
|
+
declare const OpenEndLocation: S.declare<{
|
|
2708
|
+
readonly start: {
|
|
2709
|
+
readonly line: number;
|
|
2710
|
+
readonly column: number;
|
|
2711
|
+
};
|
|
2712
|
+
readonly end?: {
|
|
2713
|
+
readonly line: number;
|
|
2714
|
+
readonly column: number;
|
|
2715
|
+
} | undefined;
|
|
2716
|
+
}, {
|
|
2717
|
+
readonly start: {
|
|
2718
|
+
readonly line: number;
|
|
2719
|
+
readonly column: number;
|
|
2720
|
+
};
|
|
2721
|
+
readonly end?: {
|
|
2722
|
+
readonly line: number;
|
|
2723
|
+
readonly column: number;
|
|
2724
|
+
} | undefined;
|
|
2705
2725
|
}>;
|
|
2706
|
-
type OpenEndLocation = typeof
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
readonly
|
|
2713
|
-
readonly line: S.Int;
|
|
2714
|
-
readonly column: S.Int;
|
|
2715
|
-
}>;
|
|
2716
|
-
readonly end: S.Struct<{
|
|
2717
|
-
readonly line: S.Int;
|
|
2718
|
-
readonly column: S.Int;
|
|
2719
|
-
}>;
|
|
2726
|
+
type OpenEndLocation = typeof OpenEndLocation.Type;
|
|
2727
|
+
declare const Span: S.declare<{
|
|
2728
|
+
readonly start: number;
|
|
2729
|
+
readonly end: number;
|
|
2730
|
+
}, {
|
|
2731
|
+
readonly start: number;
|
|
2732
|
+
readonly end: number;
|
|
2720
2733
|
}>;
|
|
2734
|
+
type Span = typeof Span.Type;
|
|
2735
|
+
declare const ScriptOrigin: S.Struct<{
|
|
2736
|
+
readonly line: S.Int;
|
|
2737
|
+
readonly columnShift: S.Int;
|
|
2738
|
+
}>;
|
|
2739
|
+
type ScriptOrigin = typeof ScriptOrigin.Type;
|
|
2740
|
+
type LineStarts = Arr.NonEmptyReadonlyArray<Offset>;
|
|
2721
2741
|
//#endregion
|
|
2722
2742
|
//#region src/Syntax.schema.d.ts
|
|
2723
2743
|
declare const AstFormat: S.Literals<readonly ["js", "ts", "tsx"]>;
|
|
@@ -2735,7 +2755,7 @@ interface BaseAst {
|
|
|
2735
2755
|
originFileName: string;
|
|
2736
2756
|
rawContent: string;
|
|
2737
2757
|
root: Program;
|
|
2738
|
-
offset?:
|
|
2758
|
+
offset?: ScriptOrigin;
|
|
2739
2759
|
}
|
|
2740
2760
|
interface EmbeddedAst {
|
|
2741
2761
|
format: 'embedded';
|
|
@@ -2768,29 +2788,189 @@ interface TsxAst extends BaseAst {
|
|
|
2768
2788
|
type ScriptAst = JSAst | TSAst | TsxAst;
|
|
2769
2789
|
type Ast = JSAst | TSAst | TsxAst | EmbeddedAst;
|
|
2770
2790
|
//#endregion
|
|
2791
|
+
//#region src/Instrument.schema.d.ts
|
|
2792
|
+
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
2793
|
+
readonly message: S.String;
|
|
2794
|
+
readonly cause: S.Defect;
|
|
2795
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2796
|
+
declare class InstrumentError extends InstrumentError_base {
|
|
2797
|
+
get message(): string;
|
|
2798
|
+
}
|
|
2799
|
+
declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.declare<{
|
|
2800
|
+
readonly start: {
|
|
2801
|
+
readonly line: number;
|
|
2802
|
+
readonly column: number;
|
|
2803
|
+
};
|
|
2804
|
+
readonly end: {
|
|
2805
|
+
readonly line: number;
|
|
2806
|
+
readonly column: number;
|
|
2807
|
+
};
|
|
2808
|
+
}, {
|
|
2809
|
+
readonly start: {
|
|
2810
|
+
readonly line: number;
|
|
2811
|
+
readonly column: number;
|
|
2812
|
+
};
|
|
2813
|
+
readonly end: {
|
|
2814
|
+
readonly line: number;
|
|
2815
|
+
readonly column: number;
|
|
2816
|
+
};
|
|
2817
|
+
}>>]>;
|
|
2818
|
+
type MutateDescription = typeof MutateDescriptionSchema.Type;
|
|
2819
|
+
interface FileDescription {
|
|
2820
|
+
readonly mutate: MutateDescription;
|
|
2821
|
+
}
|
|
2822
|
+
type FileDescriptions = Record<string, FileDescription>;
|
|
2823
|
+
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
2824
|
+
readonly excludedMutations: S.$Array<S.String>;
|
|
2825
|
+
readonly ignorers: S.$Array<S.Unknown>;
|
|
2826
|
+
readonly noHeader: S.optional<S.Boolean>;
|
|
2827
|
+
readonly optInMutations: S.optional<S.$Array<S.String>>;
|
|
2828
|
+
}>;
|
|
2829
|
+
type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
2830
|
+
declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
|
|
2831
|
+
readonly file: S.String;
|
|
2832
|
+
readonly extension: S.String;
|
|
2833
|
+
readonly reason: S.String;
|
|
2834
|
+
}>, {}>;
|
|
2835
|
+
declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
|
|
2836
|
+
declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
|
|
2837
|
+
readonly files: S.$Array<S.Struct<{
|
|
2838
|
+
readonly name: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2839
|
+
readonly content: S.String;
|
|
2840
|
+
readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.declare<{
|
|
2841
|
+
readonly start: {
|
|
2842
|
+
readonly line: number;
|
|
2843
|
+
readonly column: number;
|
|
2844
|
+
};
|
|
2845
|
+
readonly end: {
|
|
2846
|
+
readonly line: number;
|
|
2847
|
+
readonly column: number;
|
|
2848
|
+
};
|
|
2849
|
+
}, {
|
|
2850
|
+
readonly start: {
|
|
2851
|
+
readonly line: number;
|
|
2852
|
+
readonly column: number;
|
|
2853
|
+
};
|
|
2854
|
+
readonly end: {
|
|
2855
|
+
readonly line: number;
|
|
2856
|
+
readonly column: number;
|
|
2857
|
+
};
|
|
2858
|
+
}>>]>;
|
|
2859
|
+
}>>;
|
|
2860
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
2861
|
+
readonly _tag: S.tag<"Mutant">;
|
|
2862
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
2863
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2864
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2865
|
+
readonly replacement: S.String;
|
|
2866
|
+
readonly location: S.declare<{
|
|
2867
|
+
readonly start: {
|
|
2868
|
+
readonly line: number;
|
|
2869
|
+
readonly column: number;
|
|
2870
|
+
};
|
|
2871
|
+
readonly end: {
|
|
2872
|
+
readonly line: number;
|
|
2873
|
+
readonly column: number;
|
|
2874
|
+
};
|
|
2875
|
+
}, {
|
|
2876
|
+
readonly start: {
|
|
2877
|
+
readonly line: number;
|
|
2878
|
+
readonly column: number;
|
|
2879
|
+
};
|
|
2880
|
+
readonly end: {
|
|
2881
|
+
readonly line: number;
|
|
2882
|
+
readonly column: number;
|
|
2883
|
+
};
|
|
2884
|
+
}>;
|
|
2885
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
2886
|
+
readonly statusReason: S.optional<S.String>;
|
|
2887
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
2888
|
+
readonly static: S.optional<S.Boolean>;
|
|
2889
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
2890
|
+
readonly description: S.optional<S.String>;
|
|
2891
|
+
}>>;
|
|
2892
|
+
readonly skipped: S.$Array<typeof InstrumentFileSkip>;
|
|
2893
|
+
}>, {}>;
|
|
2894
|
+
declare class InstrumentResult$1 extends InstrumentResult_base {}
|
|
2895
|
+
//#endregion
|
|
2896
|
+
//#region src/Parser.schema.d.ts
|
|
2897
|
+
declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
|
|
2898
|
+
readonly fileName: S.String;
|
|
2899
|
+
readonly message: S.String;
|
|
2900
|
+
readonly location: S.Struct<{
|
|
2901
|
+
readonly line: S.Int;
|
|
2902
|
+
readonly column: S.Int;
|
|
2903
|
+
}>;
|
|
2904
|
+
readonly cause: S.Defect;
|
|
2905
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2906
|
+
declare class ParseFailed extends ParseFailed_base {
|
|
2907
|
+
get message(): string;
|
|
2908
|
+
}
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region src/Parser.service.d.ts
|
|
2911
|
+
interface ParserOptions {}
|
|
2912
|
+
interface ParserContext {
|
|
2913
|
+
parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect$1.Effect<ScriptAst, ParseFailed>;
|
|
2914
|
+
}
|
|
2915
|
+
//#endregion
|
|
2916
|
+
//#region src/print/PrintFailed.schema.d.ts
|
|
2917
|
+
declare const PrintFailed_base: S.Class<PrintFailed, S.TaggedStruct<"PrintFailed", {
|
|
2918
|
+
readonly message: S.String;
|
|
2919
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2920
|
+
declare class PrintFailed extends PrintFailed_base {}
|
|
2921
|
+
//#endregion
|
|
2922
|
+
//#region src/Printer.d.ts
|
|
2923
|
+
interface PrinterContext {
|
|
2924
|
+
print: (file: Ast, context: PrinterContext) => Result.Result<string, PrintFailed>;
|
|
2925
|
+
}
|
|
2926
|
+
//#endregion
|
|
2771
2927
|
//#region src/Mutant.schema.d.ts
|
|
2772
2928
|
declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
2773
2929
|
type MutantStatus = typeof MutantStatusSchema.Type;
|
|
2774
|
-
declare const
|
|
2930
|
+
declare const SurvivorStatusSchema: S.Literals<readonly ["Survived", "NoCoverage"]>;
|
|
2931
|
+
type SurvivorStatus = typeof SurvivorStatusSchema.Type;
|
|
2932
|
+
declare const RememberedStatusSchema: S.Literals<readonly ["Survived", "Killed", "Timeout", "NoCoverage", "Ignored"]>;
|
|
2933
|
+
type RememberedStatus = typeof RememberedStatusSchema.Type;
|
|
2934
|
+
declare const EphemeralStatusSchema: S.Literals<readonly ["CompileError", "RuntimeError", "Pending"]>;
|
|
2935
|
+
type EphemeralStatus = typeof EphemeralStatusSchema.Type;
|
|
2936
|
+
declare const ActionableStatusSchema: S.Literals<readonly ["Survived", "NoCoverage", "Timeout", "RuntimeError"]>;
|
|
2937
|
+
type ActionableStatus = typeof ActionableStatusSchema.Type;
|
|
2938
|
+
declare const MutantId: S.brand<S.String, "MutantId">;
|
|
2775
2939
|
type MutantId = typeof MutantId.Type;
|
|
2776
2940
|
declare const MutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2777
2941
|
type MutatorName = typeof MutatorName.Type;
|
|
2778
2942
|
declare const CanonicalFileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2779
2943
|
type CanonicalFileName = typeof CanonicalFileName.Type;
|
|
2780
|
-
|
|
2781
|
-
|
|
2944
|
+
/**
|
|
2945
|
+
* A mutant's file location in the mutation-testing-report-schema contract:
|
|
2946
|
+
* 1-based line and 1-based column, the same base the JSON report and the
|
|
2947
|
+
* machine stream emit. Every producer on the instrument path (node spans,
|
|
2948
|
+
* embedded-region shifts) targets this base; no downstream layer converts.
|
|
2949
|
+
*/
|
|
2950
|
+
declare const Mutant$1: S.Struct<{
|
|
2951
|
+
readonly _tag: S.tag<"Mutant">;
|
|
2952
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
2782
2953
|
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2783
2954
|
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2784
2955
|
readonly replacement: S.String;
|
|
2785
|
-
readonly location: S.
|
|
2786
|
-
readonly start:
|
|
2787
|
-
readonly line:
|
|
2788
|
-
readonly column:
|
|
2789
|
-
}
|
|
2790
|
-
readonly end:
|
|
2791
|
-
readonly line:
|
|
2792
|
-
readonly column:
|
|
2793
|
-
}
|
|
2956
|
+
readonly location: S.declare<{
|
|
2957
|
+
readonly start: {
|
|
2958
|
+
readonly line: number;
|
|
2959
|
+
readonly column: number;
|
|
2960
|
+
};
|
|
2961
|
+
readonly end: {
|
|
2962
|
+
readonly line: number;
|
|
2963
|
+
readonly column: number;
|
|
2964
|
+
};
|
|
2965
|
+
}, {
|
|
2966
|
+
readonly start: {
|
|
2967
|
+
readonly line: number;
|
|
2968
|
+
readonly column: number;
|
|
2969
|
+
};
|
|
2970
|
+
readonly end: {
|
|
2971
|
+
readonly line: number;
|
|
2972
|
+
readonly column: number;
|
|
2973
|
+
};
|
|
2794
2974
|
}>;
|
|
2795
2975
|
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
2796
2976
|
readonly statusReason: S.optional<S.String>;
|
|
@@ -2798,15 +2978,40 @@ declare const Mutant_base: S.Class<Mutant$1, S.TaggedStruct<"Mutant", {
|
|
|
2798
2978
|
readonly static: S.optional<S.Boolean>;
|
|
2799
2979
|
readonly testsCompleted: S.optional<S.Finite>;
|
|
2800
2980
|
readonly description: S.optional<S.String>;
|
|
2801
|
-
}
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2981
|
+
}>;
|
|
2982
|
+
type Mutant$1 = typeof Mutant$1.Type;
|
|
2983
|
+
declare const MutantFromUnknown: S.compose<S.Struct<{
|
|
2984
|
+
readonly _tag: S.tag<"Mutant">;
|
|
2985
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
2986
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2987
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2988
|
+
readonly replacement: S.String;
|
|
2989
|
+
readonly location: S.declare<{
|
|
2990
|
+
readonly start: {
|
|
2991
|
+
readonly line: number;
|
|
2992
|
+
readonly column: number;
|
|
2993
|
+
};
|
|
2994
|
+
readonly end: {
|
|
2995
|
+
readonly line: number;
|
|
2996
|
+
readonly column: number;
|
|
2997
|
+
};
|
|
2998
|
+
}, {
|
|
2999
|
+
readonly start: {
|
|
3000
|
+
readonly line: number;
|
|
3001
|
+
readonly column: number;
|
|
3002
|
+
};
|
|
3003
|
+
readonly end: {
|
|
3004
|
+
readonly line: number;
|
|
3005
|
+
readonly column: number;
|
|
3006
|
+
};
|
|
3007
|
+
}>;
|
|
3008
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
3009
|
+
readonly statusReason: S.optional<S.String>;
|
|
3010
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3011
|
+
readonly static: S.optional<S.Boolean>;
|
|
3012
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
3013
|
+
readonly description: S.optional<S.String>;
|
|
3014
|
+
}>, S.Unknown>;
|
|
2810
3015
|
type MutantFromUnknown = typeof MutantFromUnknown.Type;
|
|
2811
3016
|
declare const RunOptionsFields: {
|
|
2812
3017
|
timeout: S.Finite;
|
|
@@ -2814,10 +3019,42 @@ declare const RunOptionsFields: {
|
|
|
2814
3019
|
};
|
|
2815
3020
|
declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
|
|
2816
3021
|
type MutantActivation = typeof MutantActivationSchema.Type;
|
|
3022
|
+
declare const HitCount: S.Int;
|
|
2817
3023
|
declare const MutantRunOptionsSchema: S.Struct<{
|
|
2818
3024
|
readonly timeout: S.Finite;
|
|
2819
3025
|
readonly disableBail: S.Boolean;
|
|
2820
|
-
readonly activeMutant:
|
|
3026
|
+
readonly activeMutant: S.Struct<{
|
|
3027
|
+
readonly _tag: S.tag<"Mutant">;
|
|
3028
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3029
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3030
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3031
|
+
readonly replacement: S.String;
|
|
3032
|
+
readonly location: S.declare<{
|
|
3033
|
+
readonly start: {
|
|
3034
|
+
readonly line: number;
|
|
3035
|
+
readonly column: number;
|
|
3036
|
+
};
|
|
3037
|
+
readonly end: {
|
|
3038
|
+
readonly line: number;
|
|
3039
|
+
readonly column: number;
|
|
3040
|
+
};
|
|
3041
|
+
}, {
|
|
3042
|
+
readonly start: {
|
|
3043
|
+
readonly line: number;
|
|
3044
|
+
readonly column: number;
|
|
3045
|
+
};
|
|
3046
|
+
readonly end: {
|
|
3047
|
+
readonly line: number;
|
|
3048
|
+
readonly column: number;
|
|
3049
|
+
};
|
|
3050
|
+
}>;
|
|
3051
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
3052
|
+
readonly statusReason: S.optional<S.String>;
|
|
3053
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3054
|
+
readonly static: S.optional<S.Boolean>;
|
|
3055
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
3056
|
+
readonly description: S.optional<S.String>;
|
|
3057
|
+
}>;
|
|
2821
3058
|
readonly sandboxFileName: S.String;
|
|
2822
3059
|
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
2823
3060
|
readonly reloadEnvironment: S.Boolean;
|
|
@@ -2825,8 +3062,8 @@ declare const MutantRunOptionsSchema: S.Struct<{
|
|
|
2825
3062
|
readonly hitLimit: S.optionalKey<S.Int>;
|
|
2826
3063
|
}>;
|
|
2827
3064
|
declare const MutantCoverageSchema$1: S.Struct<{
|
|
2828
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
|
|
2829
|
-
readonly static: S.$Record<S.String, S.Int>;
|
|
3065
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Int>>;
|
|
3066
|
+
readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Int>;
|
|
2830
3067
|
}>;
|
|
2831
3068
|
type MutantCoverage = typeof MutantCoverageSchema$1.Type;
|
|
2832
3069
|
type CoverageData = Record<string, number>;
|
|
@@ -2874,11 +3111,11 @@ declare const InstrumenterContext_base: S.Class<InstrumenterContext, S.Struct<{
|
|
|
2874
3111
|
readonly activeMutant: S.optional<S.String>;
|
|
2875
3112
|
readonly currentTestId: S.optional<S.String>;
|
|
2876
3113
|
readonly mutantCoverage: S.optional<S.Struct<{
|
|
2877
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
|
|
2878
|
-
readonly static: S.$Record<S.String, S.Int>;
|
|
3114
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Int>>;
|
|
3115
|
+
readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Int>;
|
|
2879
3116
|
}>>;
|
|
2880
|
-
readonly hitCount: S.optional<S.
|
|
2881
|
-
readonly hitLimit: S.optional<S.
|
|
3117
|
+
readonly hitCount: S.optional<S.Int>;
|
|
3118
|
+
readonly hitLimit: S.optional<S.Int>;
|
|
2882
3119
|
}>, {}>;
|
|
2883
3120
|
declare class InstrumenterContext extends InstrumenterContext_base {
|
|
2884
3121
|
static readonly NAMESPACE = "__stryker__";
|
|
@@ -2893,92 +3130,6 @@ type MutantRunPlan = RunPlan;
|
|
|
2893
3130
|
type MutantEarlyResultPlan = EarlyResultPlan;
|
|
2894
3131
|
type MutantTestPlan = TestPlan;
|
|
2895
3132
|
//#endregion
|
|
2896
|
-
//#region src/Instrument.schema.d.ts
|
|
2897
|
-
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
2898
|
-
readonly message: S.String;
|
|
2899
|
-
readonly cause: S.Defect;
|
|
2900
|
-
}>, import("effect/Cause").YieldableError>;
|
|
2901
|
-
declare class InstrumentError extends InstrumentError_base {
|
|
2902
|
-
get message(): string;
|
|
2903
|
-
}
|
|
2904
|
-
declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
|
|
2905
|
-
readonly start: S.Struct<{
|
|
2906
|
-
readonly line: S.Int;
|
|
2907
|
-
readonly column: S.Int;
|
|
2908
|
-
}>;
|
|
2909
|
-
readonly end: S.Struct<{
|
|
2910
|
-
readonly line: S.Int;
|
|
2911
|
-
readonly column: S.Int;
|
|
2912
|
-
}>;
|
|
2913
|
-
}>>]>;
|
|
2914
|
-
type MutateDescription = typeof MutateDescriptionSchema.Type;
|
|
2915
|
-
interface MutationRange {
|
|
2916
|
-
readonly start: Position;
|
|
2917
|
-
readonly end: Position;
|
|
2918
|
-
}
|
|
2919
|
-
interface FileDescription {
|
|
2920
|
-
readonly mutate: MutateDescription;
|
|
2921
|
-
}
|
|
2922
|
-
type FileDescriptions = Record<string, FileDescription>;
|
|
2923
|
-
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
2924
|
-
readonly excludedMutations: S.$Array<S.String>;
|
|
2925
|
-
readonly ignorers: S.$Array<S.Unknown>;
|
|
2926
|
-
readonly noHeader: S.optional<S.Boolean>;
|
|
2927
|
-
readonly optInMutations: S.optional<S.$Array<S.String>>;
|
|
2928
|
-
}>;
|
|
2929
|
-
type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
2930
|
-
declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
|
|
2931
|
-
readonly file: S.String;
|
|
2932
|
-
readonly extension: S.String;
|
|
2933
|
-
readonly reason: S.String;
|
|
2934
|
-
}>, {}>;
|
|
2935
|
-
declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
|
|
2936
|
-
declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
|
|
2937
|
-
readonly files: S.$Array<S.Struct<{
|
|
2938
|
-
readonly name: S.String;
|
|
2939
|
-
readonly content: S.String;
|
|
2940
|
-
readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
|
|
2941
|
-
readonly start: S.Struct<{
|
|
2942
|
-
readonly line: S.Int;
|
|
2943
|
-
readonly column: S.Int;
|
|
2944
|
-
}>;
|
|
2945
|
-
readonly end: S.Struct<{
|
|
2946
|
-
readonly line: S.Int;
|
|
2947
|
-
readonly column: S.Int;
|
|
2948
|
-
}>;
|
|
2949
|
-
}>>]>;
|
|
2950
|
-
}>>;
|
|
2951
|
-
readonly mutants: S.$Array<typeof Mutant$1>;
|
|
2952
|
-
readonly skipped: S.$Array<typeof InstrumentFileSkip>;
|
|
2953
|
-
}>, {}>;
|
|
2954
|
-
declare class InstrumentResult$1 extends InstrumentResult_base {}
|
|
2955
|
-
//#endregion
|
|
2956
|
-
//#region src/Parser.schema.d.ts
|
|
2957
|
-
declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
|
|
2958
|
-
readonly fileName: S.String;
|
|
2959
|
-
readonly message: S.String;
|
|
2960
|
-
readonly location: S.Struct<{
|
|
2961
|
-
readonly line: S.Finite;
|
|
2962
|
-
readonly column: S.Finite;
|
|
2963
|
-
}>;
|
|
2964
|
-
readonly cause: S.Defect;
|
|
2965
|
-
}>, import("effect/Cause").YieldableError>;
|
|
2966
|
-
declare class ParseFailed extends ParseFailed_base {
|
|
2967
|
-
get message(): string;
|
|
2968
|
-
}
|
|
2969
|
-
//#endregion
|
|
2970
|
-
//#region src/Parser.service.d.ts
|
|
2971
|
-
interface ParserOptions {}
|
|
2972
|
-
interface ParserContext {
|
|
2973
|
-
parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect$1.Effect<ScriptAst, ParseFailed>;
|
|
2974
|
-
}
|
|
2975
|
-
//#endregion
|
|
2976
|
-
//#region src/Printer.d.ts
|
|
2977
|
-
type Printer<T extends Ast = Ast> = (file: T, context: PrinterContext) => string;
|
|
2978
|
-
interface PrinterContext {
|
|
2979
|
-
print: Printer<Ast>;
|
|
2980
|
-
}
|
|
2981
|
-
//#endregion
|
|
2982
3133
|
//#region src/Mutator.service.d.ts
|
|
2983
3134
|
interface Mutable {
|
|
2984
3135
|
mutatorName: string;
|
|
@@ -2986,7 +3137,7 @@ interface Mutable {
|
|
|
2986
3137
|
replacement: Node_2;
|
|
2987
3138
|
}
|
|
2988
3139
|
interface Mutant extends Mutable {
|
|
2989
|
-
readonly id:
|
|
3140
|
+
readonly id: MutantId;
|
|
2990
3141
|
readonly fileName: string;
|
|
2991
3142
|
readonly original: Node_2;
|
|
2992
3143
|
readonly location: Location;
|
|
@@ -3085,53 +3236,63 @@ declare const disableTypeChecks: {
|
|
|
3085
3236
|
(registry?: FormatRegistry): (file: File) => Effect$1.Effect<File, InstrumentError>;
|
|
3086
3237
|
};
|
|
3087
3238
|
declare namespace mod_d_exports$2$1 {
|
|
3088
|
-
export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterOptions, MutateDescription,
|
|
3239
|
+
export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterOptions, MutateDescription, ParserOptions, disableTypeChecks, instrument };
|
|
3089
3240
|
}
|
|
3090
3241
|
declare namespace mod_d_exports$3$1 {
|
|
3091
|
-
export { CanonicalFileName, CanonicalFileName as CanonicalFileNameValue, Coverage, CoverageData, CoveragePerTestId, EarlyResultPlan, InstrumenterContext,
|
|
3242
|
+
export { ActionableStatus, ActionableStatusSchema, CanonicalFileName, CanonicalFileName as CanonicalFileNameValue, Column, Coverage, CoverageData, CoveragePerTestId, EarlyResultPlan, EphemeralStatus, EphemeralStatusSchema, HitCount, InstrumenterContext, Line, LineStarts, Location, Mutant$1 as Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema$1 as MutantCoverageSchema, MutantEarlyResultPlan, MutantFromUnknown, MutantFromUnknown as MutantFromUnknownValue, MutantId, MutantId as MutantIdValue, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutatorName, MutatorName as MutatorNameValue, Offset, OpenEndLocation, Position, RememberedStatus, RememberedStatusSchema, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, ScriptOrigin, Span, SurvivorStatus, SurvivorStatusSchema, TestPlan };
|
|
3092
3243
|
}
|
|
3093
3244
|
//#endregion
|
|
3094
3245
|
//#region ../stryker-js-plugin-interface/dist/index.d.mts
|
|
3095
3246
|
//#region src/Checker.schema.d.ts
|
|
3096
3247
|
declare const CheckerMutantWire: S.Struct<{
|
|
3097
|
-
readonly id: S.brand<S.
|
|
3248
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3098
3249
|
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3099
3250
|
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3100
3251
|
readonly replacement: S.String;
|
|
3101
|
-
readonly location: S.
|
|
3102
|
-
readonly start:
|
|
3103
|
-
readonly line:
|
|
3104
|
-
readonly column:
|
|
3105
|
-
}
|
|
3106
|
-
readonly end:
|
|
3107
|
-
readonly line:
|
|
3108
|
-
readonly column:
|
|
3109
|
-
}
|
|
3252
|
+
readonly location: S.declare<{
|
|
3253
|
+
readonly start: {
|
|
3254
|
+
readonly line: number;
|
|
3255
|
+
readonly column: number;
|
|
3256
|
+
};
|
|
3257
|
+
readonly end: {
|
|
3258
|
+
readonly line: number;
|
|
3259
|
+
readonly column: number;
|
|
3260
|
+
};
|
|
3261
|
+
}, {
|
|
3262
|
+
readonly start: {
|
|
3263
|
+
readonly line: number;
|
|
3264
|
+
readonly column: number;
|
|
3265
|
+
};
|
|
3266
|
+
readonly end: {
|
|
3267
|
+
readonly line: number;
|
|
3268
|
+
readonly column: number;
|
|
3269
|
+
};
|
|
3110
3270
|
}>;
|
|
3111
3271
|
}>;
|
|
3112
3272
|
type CheckerMutantWire = typeof CheckerMutantWire.Type;
|
|
3113
|
-
declare const
|
|
3114
|
-
type CheckStatus = typeof CheckStatus.Type;
|
|
3115
|
-
declare const CheckResultSchema: S.Union<readonly [S.Struct<{
|
|
3273
|
+
declare const CheckResultSchema: S.toTaggedUnion<"status", readonly [S.Struct<{
|
|
3116
3274
|
readonly status: S.Literal<"passed">;
|
|
3117
3275
|
}>, S.Struct<{
|
|
3118
3276
|
readonly status: S.Literal<"compileError">;
|
|
3119
3277
|
readonly reason: S.String;
|
|
3120
3278
|
}>]>;
|
|
3279
|
+
declare const CheckStatus: S.Literals<readonly ["passed", "compileError"]>;
|
|
3280
|
+
type CheckStatus = typeof CheckStatus.Type;
|
|
3121
3281
|
declare const CheckerFailed_base: S.Class<CheckerFailed, S.TaggedStruct<"CheckerFailed", {
|
|
3122
3282
|
readonly cause: S.String;
|
|
3123
3283
|
readonly checkerName: S.String;
|
|
3124
|
-
readonly mutantIds: S.$Array<S.String
|
|
3284
|
+
readonly mutantIds: S.$Array<S.brand<S.String, "MutantId">>;
|
|
3125
3285
|
}>, import("effect/Cause").YieldableError>;
|
|
3126
|
-
declare class CheckerFailed extends CheckerFailed_base {
|
|
3127
|
-
|
|
3128
|
-
readonly reason: string;
|
|
3129
|
-
readonly status: 'compileError';
|
|
3286
|
+
declare class CheckerFailed extends CheckerFailed_base {
|
|
3287
|
+
get message(): string;
|
|
3130
3288
|
}
|
|
3131
|
-
|
|
3289
|
+
type CheckResult = typeof CheckResultSchema.Type;
|
|
3290
|
+
type FailedCheckResult = Extract<CheckResult, {
|
|
3291
|
+
readonly status: 'compileError';
|
|
3292
|
+
}>;
|
|
3293
|
+
type PassedCheckResult = Extract<CheckResult, {
|
|
3132
3294
|
readonly status: 'passed';
|
|
3133
|
-
}
|
|
3134
|
-
type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
3295
|
+
}>;
|
|
3135
3296
|
//#endregion
|
|
3136
3297
|
//#region src/Checker.service.d.ts
|
|
3137
3298
|
interface CheckerService {
|
|
@@ -3145,25 +3306,34 @@ declare namespace mod_d_exports {
|
|
|
3145
3306
|
export { CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerFailed, CheckerMutantWire, CheckerService, FailedCheckResult, PassedCheckResult };
|
|
3146
3307
|
}
|
|
3147
3308
|
declare const MutantResultSchema: S.Struct<{
|
|
3148
|
-
readonly id: S.String
|
|
3309
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3149
3310
|
readonly mutatorName: S.String;
|
|
3150
3311
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3151
|
-
readonly location: S.
|
|
3152
|
-
readonly start:
|
|
3153
|
-
readonly line:
|
|
3154
|
-
readonly column:
|
|
3155
|
-
}
|
|
3156
|
-
readonly end:
|
|
3157
|
-
readonly line:
|
|
3158
|
-
readonly column:
|
|
3159
|
-
}
|
|
3312
|
+
readonly location: S.declare<{
|
|
3313
|
+
readonly start: {
|
|
3314
|
+
readonly line: number;
|
|
3315
|
+
readonly column: number;
|
|
3316
|
+
};
|
|
3317
|
+
readonly end: {
|
|
3318
|
+
readonly line: number;
|
|
3319
|
+
readonly column: number;
|
|
3320
|
+
};
|
|
3321
|
+
}, {
|
|
3322
|
+
readonly start: {
|
|
3323
|
+
readonly line: number;
|
|
3324
|
+
readonly column: number;
|
|
3325
|
+
};
|
|
3326
|
+
readonly end: {
|
|
3327
|
+
readonly line: number;
|
|
3328
|
+
readonly column: number;
|
|
3329
|
+
};
|
|
3160
3330
|
}>;
|
|
3161
3331
|
readonly replacement: S.optional<S.String>;
|
|
3162
3332
|
readonly description: S.optional<S.String>;
|
|
3163
3333
|
readonly statusReason: S.optional<S.String>;
|
|
3164
3334
|
readonly static: S.optional<S.Boolean>;
|
|
3165
|
-
readonly coveredBy: S.optional<S.$Array<S.
|
|
3166
|
-
readonly killedBy: S.optional<S.$Array<S.
|
|
3335
|
+
readonly coveredBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3336
|
+
readonly killedBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3167
3337
|
readonly testsCompleted: S.optional<S.Int>;
|
|
3168
3338
|
readonly duration: S.optional<S.Finite>;
|
|
3169
3339
|
}>;
|
|
@@ -3172,25 +3342,34 @@ declare const FileResultSchema: S.Struct<{
|
|
|
3172
3342
|
readonly language: S.String;
|
|
3173
3343
|
readonly source: S.String;
|
|
3174
3344
|
readonly mutants: S.$Array<S.Struct<{
|
|
3175
|
-
readonly id: S.String
|
|
3345
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3176
3346
|
readonly mutatorName: S.String;
|
|
3177
3347
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3178
|
-
readonly location: S.
|
|
3179
|
-
readonly start:
|
|
3180
|
-
readonly line:
|
|
3181
|
-
readonly column:
|
|
3182
|
-
}
|
|
3183
|
-
readonly end:
|
|
3184
|
-
readonly line:
|
|
3185
|
-
readonly column:
|
|
3186
|
-
}
|
|
3348
|
+
readonly location: S.declare<{
|
|
3349
|
+
readonly start: {
|
|
3350
|
+
readonly line: number;
|
|
3351
|
+
readonly column: number;
|
|
3352
|
+
};
|
|
3353
|
+
readonly end: {
|
|
3354
|
+
readonly line: number;
|
|
3355
|
+
readonly column: number;
|
|
3356
|
+
};
|
|
3357
|
+
}, {
|
|
3358
|
+
readonly start: {
|
|
3359
|
+
readonly line: number;
|
|
3360
|
+
readonly column: number;
|
|
3361
|
+
};
|
|
3362
|
+
readonly end: {
|
|
3363
|
+
readonly line: number;
|
|
3364
|
+
readonly column: number;
|
|
3365
|
+
};
|
|
3187
3366
|
}>;
|
|
3188
3367
|
readonly replacement: S.optional<S.String>;
|
|
3189
3368
|
readonly description: S.optional<S.String>;
|
|
3190
3369
|
readonly statusReason: S.optional<S.String>;
|
|
3191
3370
|
readonly static: S.optional<S.Boolean>;
|
|
3192
|
-
readonly coveredBy: S.optional<S.$Array<S.
|
|
3193
|
-
readonly killedBy: S.optional<S.$Array<S.
|
|
3371
|
+
readonly coveredBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3372
|
+
readonly killedBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3194
3373
|
readonly testsCompleted: S.optional<S.Int>;
|
|
3195
3374
|
readonly duration: S.optional<S.Finite>;
|
|
3196
3375
|
}>>;
|
|
@@ -3200,59 +3379,86 @@ declare const FileResultDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
|
3200
3379
|
readonly language: S.String;
|
|
3201
3380
|
readonly source: S.String;
|
|
3202
3381
|
readonly mutants: S.$Array<S.Struct<{
|
|
3203
|
-
readonly id: S.String
|
|
3382
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3204
3383
|
readonly mutatorName: S.String;
|
|
3205
3384
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3206
|
-
readonly location: S.
|
|
3207
|
-
readonly start:
|
|
3208
|
-
readonly line:
|
|
3209
|
-
readonly column:
|
|
3210
|
-
}
|
|
3211
|
-
readonly end:
|
|
3212
|
-
readonly line:
|
|
3213
|
-
readonly column:
|
|
3214
|
-
}
|
|
3385
|
+
readonly location: S.declare<{
|
|
3386
|
+
readonly start: {
|
|
3387
|
+
readonly line: number;
|
|
3388
|
+
readonly column: number;
|
|
3389
|
+
};
|
|
3390
|
+
readonly end: {
|
|
3391
|
+
readonly line: number;
|
|
3392
|
+
readonly column: number;
|
|
3393
|
+
};
|
|
3394
|
+
}, {
|
|
3395
|
+
readonly start: {
|
|
3396
|
+
readonly line: number;
|
|
3397
|
+
readonly column: number;
|
|
3398
|
+
};
|
|
3399
|
+
readonly end: {
|
|
3400
|
+
readonly line: number;
|
|
3401
|
+
readonly column: number;
|
|
3402
|
+
};
|
|
3215
3403
|
}>;
|
|
3216
3404
|
readonly replacement: S.optional<S.String>;
|
|
3217
3405
|
readonly description: S.optional<S.String>;
|
|
3218
3406
|
readonly statusReason: S.optional<S.String>;
|
|
3219
3407
|
readonly static: S.optional<S.Boolean>;
|
|
3220
|
-
readonly coveredBy: S.optional<S.$Array<S.
|
|
3221
|
-
readonly killedBy: S.optional<S.$Array<S.
|
|
3408
|
+
readonly coveredBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3409
|
+
readonly killedBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3222
3410
|
readonly testsCompleted: S.optional<S.Int>;
|
|
3223
3411
|
readonly duration: S.optional<S.Finite>;
|
|
3224
3412
|
}>>;
|
|
3225
3413
|
}>>;
|
|
3226
3414
|
type FileResultDictionary = typeof FileResultDictionarySchema.Type;
|
|
3227
3415
|
declare const TestDefinitionSchema: S.Struct<{
|
|
3228
|
-
readonly id: S.
|
|
3416
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3229
3417
|
readonly name: S.String;
|
|
3230
|
-
readonly location: S.optional<S.
|
|
3231
|
-
readonly start:
|
|
3232
|
-
readonly line:
|
|
3233
|
-
readonly column:
|
|
3234
|
-
}
|
|
3235
|
-
readonly end
|
|
3236
|
-
readonly line:
|
|
3237
|
-
readonly column:
|
|
3238
|
-
}
|
|
3418
|
+
readonly location: S.optional<S.declare<{
|
|
3419
|
+
readonly start: {
|
|
3420
|
+
readonly line: number;
|
|
3421
|
+
readonly column: number;
|
|
3422
|
+
};
|
|
3423
|
+
readonly end?: {
|
|
3424
|
+
readonly line: number;
|
|
3425
|
+
readonly column: number;
|
|
3426
|
+
} | undefined;
|
|
3427
|
+
}, {
|
|
3428
|
+
readonly start: {
|
|
3429
|
+
readonly line: number;
|
|
3430
|
+
readonly column: number;
|
|
3431
|
+
};
|
|
3432
|
+
readonly end?: {
|
|
3433
|
+
readonly line: number;
|
|
3434
|
+
readonly column: number;
|
|
3435
|
+
} | undefined;
|
|
3239
3436
|
}>>;
|
|
3240
3437
|
}>;
|
|
3241
3438
|
type TestDefinition = typeof TestDefinitionSchema.Type;
|
|
3242
3439
|
declare const TestFileSchema: S.Struct<{
|
|
3243
3440
|
readonly source: S.optional<S.String>;
|
|
3244
3441
|
readonly tests: S.$Array<S.Struct<{
|
|
3245
|
-
readonly id: S.
|
|
3442
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3246
3443
|
readonly name: S.String;
|
|
3247
|
-
readonly location: S.optional<S.
|
|
3248
|
-
readonly start:
|
|
3249
|
-
readonly line:
|
|
3250
|
-
readonly column:
|
|
3251
|
-
}
|
|
3252
|
-
readonly end
|
|
3253
|
-
readonly line:
|
|
3254
|
-
readonly column:
|
|
3255
|
-
}
|
|
3444
|
+
readonly location: S.optional<S.declare<{
|
|
3445
|
+
readonly start: {
|
|
3446
|
+
readonly line: number;
|
|
3447
|
+
readonly column: number;
|
|
3448
|
+
};
|
|
3449
|
+
readonly end?: {
|
|
3450
|
+
readonly line: number;
|
|
3451
|
+
readonly column: number;
|
|
3452
|
+
} | undefined;
|
|
3453
|
+
}, {
|
|
3454
|
+
readonly start: {
|
|
3455
|
+
readonly line: number;
|
|
3456
|
+
readonly column: number;
|
|
3457
|
+
};
|
|
3458
|
+
readonly end?: {
|
|
3459
|
+
readonly line: number;
|
|
3460
|
+
readonly column: number;
|
|
3461
|
+
} | undefined;
|
|
3256
3462
|
}>>;
|
|
3257
3463
|
}>>;
|
|
3258
3464
|
}>;
|
|
@@ -3260,31 +3466,48 @@ type TestFile = typeof TestFileSchema.Type;
|
|
|
3260
3466
|
declare const TestFileDefinitionDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
3261
3467
|
readonly source: S.optional<S.String>;
|
|
3262
3468
|
readonly tests: S.$Array<S.Struct<{
|
|
3263
|
-
readonly id: S.
|
|
3469
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3264
3470
|
readonly name: S.String;
|
|
3265
|
-
readonly location: S.optional<S.
|
|
3266
|
-
readonly start:
|
|
3267
|
-
readonly line:
|
|
3268
|
-
readonly column:
|
|
3269
|
-
}
|
|
3270
|
-
readonly end
|
|
3271
|
-
readonly line:
|
|
3272
|
-
readonly column:
|
|
3273
|
-
}
|
|
3471
|
+
readonly location: S.optional<S.declare<{
|
|
3472
|
+
readonly start: {
|
|
3473
|
+
readonly line: number;
|
|
3474
|
+
readonly column: number;
|
|
3475
|
+
};
|
|
3476
|
+
readonly end?: {
|
|
3477
|
+
readonly line: number;
|
|
3478
|
+
readonly column: number;
|
|
3479
|
+
} | undefined;
|
|
3480
|
+
}, {
|
|
3481
|
+
readonly start: {
|
|
3482
|
+
readonly line: number;
|
|
3483
|
+
readonly column: number;
|
|
3484
|
+
};
|
|
3485
|
+
readonly end?: {
|
|
3486
|
+
readonly line: number;
|
|
3487
|
+
readonly column: number;
|
|
3488
|
+
} | undefined;
|
|
3274
3489
|
}>>;
|
|
3275
3490
|
}>>;
|
|
3276
3491
|
}>>;
|
|
3277
3492
|
type TestFileDefinitionDictionary = typeof TestFileDefinitionDictionarySchema.Type;
|
|
3278
|
-
declare const
|
|
3493
|
+
declare const OrderedThresholds: S.declare<{
|
|
3279
3494
|
readonly high: number;
|
|
3280
3495
|
readonly low: number;
|
|
3496
|
+
readonly break: number | null;
|
|
3281
3497
|
}, {
|
|
3282
3498
|
readonly high: number;
|
|
3283
3499
|
readonly low: number;
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3500
|
+
readonly break: number | null;
|
|
3501
|
+
}>;
|
|
3502
|
+
declare const ThresholdsSchema: S.declare<{
|
|
3503
|
+
readonly high: number;
|
|
3504
|
+
readonly low: number;
|
|
3505
|
+
readonly break: number | null;
|
|
3506
|
+
}, {
|
|
3507
|
+
readonly high: number;
|
|
3508
|
+
readonly low: number;
|
|
3509
|
+
readonly break: number | null;
|
|
3510
|
+
}>;
|
|
3288
3511
|
type Thresholds = typeof ThresholdsSchema.Type;
|
|
3289
3512
|
declare const BrandingInformationSchema: S.Struct<{
|
|
3290
3513
|
readonly homepageUrl: S.String;
|
|
@@ -3309,54 +3532,71 @@ declare const MutationTestResultSchema: S.Struct<{
|
|
|
3309
3532
|
readonly language: S.String;
|
|
3310
3533
|
readonly source: S.String;
|
|
3311
3534
|
readonly mutants: S.$Array<S.Struct<{
|
|
3312
|
-
readonly id: S.String
|
|
3535
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3313
3536
|
readonly mutatorName: S.String;
|
|
3314
3537
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3315
|
-
readonly location: S.
|
|
3316
|
-
readonly start:
|
|
3317
|
-
readonly line:
|
|
3318
|
-
readonly column:
|
|
3319
|
-
}
|
|
3320
|
-
readonly end:
|
|
3321
|
-
readonly line:
|
|
3322
|
-
readonly column:
|
|
3323
|
-
}
|
|
3538
|
+
readonly location: S.declare<{
|
|
3539
|
+
readonly start: {
|
|
3540
|
+
readonly line: number;
|
|
3541
|
+
readonly column: number;
|
|
3542
|
+
};
|
|
3543
|
+
readonly end: {
|
|
3544
|
+
readonly line: number;
|
|
3545
|
+
readonly column: number;
|
|
3546
|
+
};
|
|
3547
|
+
}, {
|
|
3548
|
+
readonly start: {
|
|
3549
|
+
readonly line: number;
|
|
3550
|
+
readonly column: number;
|
|
3551
|
+
};
|
|
3552
|
+
readonly end: {
|
|
3553
|
+
readonly line: number;
|
|
3554
|
+
readonly column: number;
|
|
3555
|
+
};
|
|
3324
3556
|
}>;
|
|
3325
3557
|
readonly replacement: S.optional<S.String>;
|
|
3326
3558
|
readonly description: S.optional<S.String>;
|
|
3327
3559
|
readonly statusReason: S.optional<S.String>;
|
|
3328
3560
|
readonly static: S.optional<S.Boolean>;
|
|
3329
|
-
readonly coveredBy: S.optional<S.$Array<S.
|
|
3330
|
-
readonly killedBy: S.optional<S.$Array<S.
|
|
3561
|
+
readonly coveredBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3562
|
+
readonly killedBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3331
3563
|
readonly testsCompleted: S.optional<S.Int>;
|
|
3332
3564
|
readonly duration: S.optional<S.Finite>;
|
|
3333
3565
|
}>>;
|
|
3334
3566
|
}>>;
|
|
3335
|
-
readonly thresholds: S.
|
|
3567
|
+
readonly thresholds: S.declare<{
|
|
3336
3568
|
readonly high: number;
|
|
3337
3569
|
readonly low: number;
|
|
3570
|
+
readonly break: number | null;
|
|
3338
3571
|
}, {
|
|
3339
3572
|
readonly high: number;
|
|
3340
3573
|
readonly low: number;
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
readonly low: S.Finite;
|
|
3344
|
-
}>, never, never>;
|
|
3574
|
+
readonly break: number | null;
|
|
3575
|
+
}>;
|
|
3345
3576
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
3346
3577
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
3347
3578
|
readonly source: S.optional<S.String>;
|
|
3348
3579
|
readonly tests: S.$Array<S.Struct<{
|
|
3349
|
-
readonly id: S.
|
|
3580
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3350
3581
|
readonly name: S.String;
|
|
3351
|
-
readonly location: S.optional<S.
|
|
3352
|
-
readonly start:
|
|
3353
|
-
readonly line:
|
|
3354
|
-
readonly column:
|
|
3355
|
-
}
|
|
3356
|
-
readonly end
|
|
3357
|
-
readonly line:
|
|
3358
|
-
readonly column:
|
|
3359
|
-
}
|
|
3582
|
+
readonly location: S.optional<S.declare<{
|
|
3583
|
+
readonly start: {
|
|
3584
|
+
readonly line: number;
|
|
3585
|
+
readonly column: number;
|
|
3586
|
+
};
|
|
3587
|
+
readonly end?: {
|
|
3588
|
+
readonly line: number;
|
|
3589
|
+
readonly column: number;
|
|
3590
|
+
} | undefined;
|
|
3591
|
+
}, {
|
|
3592
|
+
readonly start: {
|
|
3593
|
+
readonly line: number;
|
|
3594
|
+
readonly column: number;
|
|
3595
|
+
};
|
|
3596
|
+
readonly end?: {
|
|
3597
|
+
readonly line: number;
|
|
3598
|
+
readonly column: number;
|
|
3599
|
+
} | undefined;
|
|
3360
3600
|
}>>;
|
|
3361
3601
|
}>>;
|
|
3362
3602
|
}>>>;
|
|
@@ -3374,6 +3614,8 @@ declare const MutationTestResultSchema: S.Struct<{
|
|
|
3374
3614
|
type MutationTestResult = typeof MutationTestResultSchema.Type;
|
|
3375
3615
|
//#endregion
|
|
3376
3616
|
//#region src/ExitClass.schema.d.ts
|
|
3617
|
+
declare const ExitCode: S.Int;
|
|
3618
|
+
type ExitCode = typeof ExitCode.Type;
|
|
3377
3619
|
declare const ExitClass: S.Literals<readonly ["VerdictFail", "ConfigError", "RuntimeError", "InternalError"]>;
|
|
3378
3620
|
type ExitClass = typeof ExitClass.Type;
|
|
3379
3621
|
declare const ExitCodeFromClass: S.decodeTo<S.Literals<readonly [1, 2, 3, 4]>, S.Literals<readonly ["VerdictFail", "ConfigError", "RuntimeError", "InternalError"]>, never, never>;
|
|
@@ -3451,7 +3693,7 @@ declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
3451
3693
|
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3452
3694
|
}>>, never>;
|
|
3453
3695
|
readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3454
|
-
readonly concurrency: S.optionalKey<S.Union<readonly [S.
|
|
3696
|
+
readonly concurrency: S.optionalKey<S.Union<readonly [S.Int, S.String]>>;
|
|
3455
3697
|
readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
3456
3698
|
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
3457
3699
|
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
@@ -3460,7 +3702,7 @@ declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
3460
3702
|
readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3461
3703
|
readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3462
3704
|
readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3463
|
-
readonly maxTestsToLog: S.withDecodingDefaultKey<S.
|
|
3705
|
+
readonly maxTestsToLog: S.withDecodingDefaultKey<S.Int, never>;
|
|
3464
3706
|
readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3465
3707
|
readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3466
3708
|
readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
@@ -3476,8 +3718,8 @@ declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
3476
3718
|
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
3477
3719
|
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3478
3720
|
readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
3479
|
-
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.
|
|
3480
|
-
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.
|
|
3721
|
+
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Int, never>;
|
|
3722
|
+
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Int, never>;
|
|
3481
3723
|
readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3482
3724
|
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
3483
3725
|
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
@@ -3517,7 +3759,7 @@ declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
3517
3759
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
3518
3760
|
}>, never, never>, never>;
|
|
3519
3761
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3520
|
-
readonly timeoutMS: S.withDecodingDefaultKey<S.
|
|
3762
|
+
readonly timeoutMS: S.withDecodingDefaultKey<S.Int, never>;
|
|
3521
3763
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3522
3764
|
readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
|
|
3523
3765
|
readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
|
|
@@ -3582,9 +3824,6 @@ declare class Metrics extends Metrics_base {
|
|
|
3582
3824
|
get totalMutants(): number;
|
|
3583
3825
|
get mutationScore(): MutationScore;
|
|
3584
3826
|
get mutationScoreBasedOnCoveredCode(): MutationScore;
|
|
3585
|
-
static fromMutants(mutants: readonly {
|
|
3586
|
-
readonly status: string;
|
|
3587
|
-
}[]): Metrics;
|
|
3588
3827
|
}
|
|
3589
3828
|
declare const MetricsSchema: typeof Metrics;
|
|
3590
3829
|
interface MetricsResult {
|
|
@@ -3600,8 +3839,6 @@ interface MetricsResultEncoded {
|
|
|
3600
3839
|
declare const MetricsResultSchema: S.Codec<MetricsResult, MetricsResultEncoded>;
|
|
3601
3840
|
//#endregion
|
|
3602
3841
|
//#region src/ReporterEvent.schema.d.ts
|
|
3603
|
-
declare const ReporterEventKind: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
3604
|
-
type ReporterEventKind = typeof ReporterEventKind.Type;
|
|
3605
3842
|
declare const RunTimingSchema: S.Struct<{
|
|
3606
3843
|
readonly net: S.Finite;
|
|
3607
3844
|
readonly overhead: S.Finite;
|
|
@@ -3609,7 +3846,7 @@ declare const RunTimingSchema: S.Struct<{
|
|
|
3609
3846
|
type RunTiming = typeof RunTimingSchema.Type;
|
|
3610
3847
|
declare const ReporterPlanKind: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3611
3848
|
declare const ReporterPlanDescriptorSchema: S.Struct<{
|
|
3612
|
-
readonly mutantId: S.String
|
|
3849
|
+
readonly mutantId: S.brand<S.String, "MutantId">;
|
|
3613
3850
|
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3614
3851
|
readonly netTime: S.Finite;
|
|
3615
3852
|
readonly reloadEnvironment: S.Boolean;
|
|
@@ -3625,7 +3862,7 @@ declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dry
|
|
|
3625
3862
|
}>;
|
|
3626
3863
|
readonly testCount: S.Int;
|
|
3627
3864
|
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
3628
|
-
readonly id: S.
|
|
3865
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3629
3866
|
readonly name: S.String;
|
|
3630
3867
|
readonly timeSpentMs: S.Finite;
|
|
3631
3868
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3636,7 +3873,7 @@ declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dry
|
|
|
3636
3873
|
readonly status: S.Literal<"failed">;
|
|
3637
3874
|
readonly failureMessage: S.String;
|
|
3638
3875
|
}>, S.Struct<{
|
|
3639
|
-
readonly id: S.
|
|
3876
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3640
3877
|
readonly name: S.String;
|
|
3641
3878
|
readonly timeSpentMs: S.Finite;
|
|
3642
3879
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3646,7 +3883,7 @@ declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dry
|
|
|
3646
3883
|
}>>;
|
|
3647
3884
|
readonly status: S.Literal<"skipped">;
|
|
3648
3885
|
}>, S.Struct<{
|
|
3649
|
-
readonly id: S.
|
|
3886
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3650
3887
|
readonly name: S.String;
|
|
3651
3888
|
readonly timeSpentMs: S.Finite;
|
|
3652
3889
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3661,7 +3898,7 @@ declare class DryRunCompleted extends DryRunCompleted_base {}
|
|
|
3661
3898
|
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
3662
3899
|
readonly total: S.Int;
|
|
3663
3900
|
readonly plans: S.$Array<S.Struct<{
|
|
3664
|
-
readonly mutantId: S.String
|
|
3901
|
+
readonly mutantId: S.brand<S.String, "MutantId">;
|
|
3665
3902
|
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3666
3903
|
readonly netTime: S.Finite;
|
|
3667
3904
|
readonly reloadEnvironment: S.Boolean;
|
|
@@ -3669,20 +3906,29 @@ declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S
|
|
|
3669
3906
|
}>, {}>;
|
|
3670
3907
|
declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
|
|
3671
3908
|
declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTested", {
|
|
3672
|
-
readonly id: S.String
|
|
3909
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3673
3910
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3674
|
-
readonly
|
|
3675
|
-
readonly location: S.
|
|
3676
|
-
readonly start:
|
|
3677
|
-
readonly line:
|
|
3678
|
-
readonly column:
|
|
3679
|
-
}
|
|
3680
|
-
readonly end:
|
|
3681
|
-
readonly line:
|
|
3682
|
-
readonly column:
|
|
3683
|
-
}
|
|
3911
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3912
|
+
readonly location: S.declare<{
|
|
3913
|
+
readonly start: {
|
|
3914
|
+
readonly line: number;
|
|
3915
|
+
readonly column: number;
|
|
3916
|
+
};
|
|
3917
|
+
readonly end: {
|
|
3918
|
+
readonly line: number;
|
|
3919
|
+
readonly column: number;
|
|
3920
|
+
};
|
|
3921
|
+
}, {
|
|
3922
|
+
readonly start: {
|
|
3923
|
+
readonly line: number;
|
|
3924
|
+
readonly column: number;
|
|
3925
|
+
};
|
|
3926
|
+
readonly end: {
|
|
3927
|
+
readonly line: number;
|
|
3928
|
+
readonly column: number;
|
|
3929
|
+
};
|
|
3684
3930
|
}>;
|
|
3685
|
-
readonly
|
|
3931
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3686
3932
|
readonly replacement: S.NullOr<S.String>;
|
|
3687
3933
|
readonly completed: S.Int;
|
|
3688
3934
|
readonly total: S.Int;
|
|
@@ -3695,54 +3941,71 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
3695
3941
|
readonly language: S.String;
|
|
3696
3942
|
readonly source: S.String;
|
|
3697
3943
|
readonly mutants: S.$Array<S.Struct<{
|
|
3698
|
-
readonly id: S.String
|
|
3944
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3699
3945
|
readonly mutatorName: S.String;
|
|
3700
3946
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3701
|
-
readonly location: S.
|
|
3702
|
-
readonly start:
|
|
3703
|
-
readonly line:
|
|
3704
|
-
readonly column:
|
|
3705
|
-
}
|
|
3706
|
-
readonly end:
|
|
3707
|
-
readonly line:
|
|
3708
|
-
readonly column:
|
|
3709
|
-
}
|
|
3947
|
+
readonly location: S.declare<{
|
|
3948
|
+
readonly start: {
|
|
3949
|
+
readonly line: number;
|
|
3950
|
+
readonly column: number;
|
|
3951
|
+
};
|
|
3952
|
+
readonly end: {
|
|
3953
|
+
readonly line: number;
|
|
3954
|
+
readonly column: number;
|
|
3955
|
+
};
|
|
3956
|
+
}, {
|
|
3957
|
+
readonly start: {
|
|
3958
|
+
readonly line: number;
|
|
3959
|
+
readonly column: number;
|
|
3960
|
+
};
|
|
3961
|
+
readonly end: {
|
|
3962
|
+
readonly line: number;
|
|
3963
|
+
readonly column: number;
|
|
3964
|
+
};
|
|
3710
3965
|
}>;
|
|
3711
3966
|
readonly replacement: S.optional<S.String>;
|
|
3712
3967
|
readonly description: S.optional<S.String>;
|
|
3713
3968
|
readonly statusReason: S.optional<S.String>;
|
|
3714
3969
|
readonly static: S.optional<S.Boolean>;
|
|
3715
|
-
readonly coveredBy: S.optional<S.$Array<S.
|
|
3716
|
-
readonly killedBy: S.optional<S.$Array<S.
|
|
3970
|
+
readonly coveredBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3971
|
+
readonly killedBy: S.optional<S.$Array<S.brand<S.NonEmptyString, "TestId">>>;
|
|
3717
3972
|
readonly testsCompleted: S.optional<S.Int>;
|
|
3718
3973
|
readonly duration: S.optional<S.Finite>;
|
|
3719
3974
|
}>>;
|
|
3720
3975
|
}>>;
|
|
3721
|
-
readonly thresholds: S.
|
|
3976
|
+
readonly thresholds: S.declare<{
|
|
3722
3977
|
readonly high: number;
|
|
3723
3978
|
readonly low: number;
|
|
3979
|
+
readonly break: number | null;
|
|
3724
3980
|
}, {
|
|
3725
3981
|
readonly high: number;
|
|
3726
3982
|
readonly low: number;
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
readonly low: S.Finite;
|
|
3730
|
-
}>, never, never>;
|
|
3983
|
+
readonly break: number | null;
|
|
3984
|
+
}>;
|
|
3731
3985
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
3732
3986
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
3733
3987
|
readonly source: S.optional<S.String>;
|
|
3734
3988
|
readonly tests: S.$Array<S.Struct<{
|
|
3735
|
-
readonly id: S.
|
|
3989
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3736
3990
|
readonly name: S.String;
|
|
3737
|
-
readonly location: S.optional<S.
|
|
3738
|
-
readonly start:
|
|
3739
|
-
readonly line:
|
|
3740
|
-
readonly column:
|
|
3741
|
-
}
|
|
3742
|
-
readonly end
|
|
3743
|
-
readonly line:
|
|
3744
|
-
readonly column:
|
|
3745
|
-
}
|
|
3991
|
+
readonly location: S.optional<S.declare<{
|
|
3992
|
+
readonly start: {
|
|
3993
|
+
readonly line: number;
|
|
3994
|
+
readonly column: number;
|
|
3995
|
+
};
|
|
3996
|
+
readonly end?: {
|
|
3997
|
+
readonly line: number;
|
|
3998
|
+
readonly column: number;
|
|
3999
|
+
} | undefined;
|
|
4000
|
+
}, {
|
|
4001
|
+
readonly start: {
|
|
4002
|
+
readonly line: number;
|
|
4003
|
+
readonly column: number;
|
|
4004
|
+
};
|
|
4005
|
+
readonly end?: {
|
|
4006
|
+
readonly line: number;
|
|
4007
|
+
readonly column: number;
|
|
4008
|
+
} | undefined;
|
|
3746
4009
|
}>>;
|
|
3747
4010
|
}>>;
|
|
3748
4011
|
}>>>;
|
|
@@ -3760,8 +4023,10 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
3760
4023
|
readonly metrics: S.Codec<MetricsResult, MetricsResultEncoded, never, never>;
|
|
3761
4024
|
}>, {}>;
|
|
3762
4025
|
declare class MutationTestReportReady extends MutationTestReportReady_base {}
|
|
3763
|
-
declare const ReporterEventUnion: S.
|
|
3764
|
-
type ReporterEvent =
|
|
4026
|
+
declare const ReporterEventUnion: S.toTaggedUnion<"_tag", readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>;
|
|
4027
|
+
type ReporterEvent = typeof ReporterEventUnion.Type;
|
|
4028
|
+
declare const ReporterEventKind: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
4029
|
+
type ReporterEventKind = typeof ReporterEventKind.Type;
|
|
3765
4030
|
declare const ReporterEventSchema: StandardSchemaV1<typeof ReporterEventUnion['Encoded'], ReporterEvent>;
|
|
3766
4031
|
interface ReporterInit {
|
|
3767
4032
|
readonly traceparent?: string | undefined;
|
|
@@ -3773,9 +4038,13 @@ declare const ReporterFailed_base: S.Class<ReporterFailed, S.TaggedStruct<"Repor
|
|
|
3773
4038
|
readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
3774
4039
|
readonly reporterName: S.String;
|
|
3775
4040
|
}>, import("effect/Cause").YieldableError>;
|
|
3776
|
-
declare class ReporterFailed extends ReporterFailed_base {
|
|
4041
|
+
declare class ReporterFailed extends ReporterFailed_base {
|
|
4042
|
+
get message(): string;
|
|
4043
|
+
}
|
|
3777
4044
|
//#endregion
|
|
3778
4045
|
//#region src/TestRunner.schema.d.ts
|
|
4046
|
+
declare const TestId: S.brand<S.NonEmptyString, "TestId">;
|
|
4047
|
+
type TestId = typeof TestId.Type;
|
|
3779
4048
|
declare const DryRunStatus: S.Literals<readonly ["complete", "error", "timeout"]>;
|
|
3780
4049
|
type DryRunStatus = typeof DryRunStatus.Type;
|
|
3781
4050
|
declare const TestStatus: S.Literals<readonly ["success", "failed", "skipped"]>;
|
|
@@ -3783,7 +4052,7 @@ type TestStatus = typeof TestStatus.Type;
|
|
|
3783
4052
|
declare const MutantRunStatus: S.Literals<readonly ["killed", "survived", "timeout", "error"]>;
|
|
3784
4053
|
type MutantRunStatus = typeof MutantRunStatus.Type;
|
|
3785
4054
|
declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
3786
|
-
readonly id: S.
|
|
4055
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3787
4056
|
readonly name: S.String;
|
|
3788
4057
|
readonly timeSpentMs: S.Finite;
|
|
3789
4058
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3794,7 +4063,7 @@ declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3794
4063
|
readonly status: S.Literal<"failed">;
|
|
3795
4064
|
readonly failureMessage: S.String;
|
|
3796
4065
|
}>, S.Struct<{
|
|
3797
|
-
readonly id: S.
|
|
4066
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3798
4067
|
readonly name: S.String;
|
|
3799
4068
|
readonly timeSpentMs: S.Finite;
|
|
3800
4069
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3804,7 +4073,7 @@ declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3804
4073
|
}>>;
|
|
3805
4074
|
readonly status: S.Literal<"skipped">;
|
|
3806
4075
|
}>, S.Struct<{
|
|
3807
|
-
readonly id: S.
|
|
4076
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3808
4077
|
readonly name: S.String;
|
|
3809
4078
|
readonly timeSpentMs: S.Finite;
|
|
3810
4079
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3815,13 +4084,13 @@ declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3815
4084
|
readonly status: S.Literal<"success">;
|
|
3816
4085
|
}>]>;
|
|
3817
4086
|
declare const MutantCoverageSchema: S.Struct<{
|
|
3818
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
3819
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
4087
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Finite>>;
|
|
4088
|
+
readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Finite>;
|
|
3820
4089
|
}>;
|
|
3821
4090
|
declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
3822
4091
|
readonly status: S.Literal<"complete">;
|
|
3823
4092
|
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
3824
|
-
readonly id: S.
|
|
4093
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3825
4094
|
readonly name: S.String;
|
|
3826
4095
|
readonly timeSpentMs: S.Finite;
|
|
3827
4096
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3832,7 +4101,7 @@ declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3832
4101
|
readonly status: S.Literal<"failed">;
|
|
3833
4102
|
readonly failureMessage: S.String;
|
|
3834
4103
|
}>, S.Struct<{
|
|
3835
|
-
readonly id: S.
|
|
4104
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3836
4105
|
readonly name: S.String;
|
|
3837
4106
|
readonly timeSpentMs: S.Finite;
|
|
3838
4107
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3842,7 +4111,7 @@ declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3842
4111
|
}>>;
|
|
3843
4112
|
readonly status: S.Literal<"skipped">;
|
|
3844
4113
|
}>, S.Struct<{
|
|
3845
|
-
readonly id: S.
|
|
4114
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
3846
4115
|
readonly name: S.String;
|
|
3847
4116
|
readonly timeSpentMs: S.Finite;
|
|
3848
4117
|
readonly fileName: S.optionalKey<S.String>;
|
|
@@ -3853,8 +4122,8 @@ declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3853
4122
|
readonly status: S.Literal<"success">;
|
|
3854
4123
|
}>]>>;
|
|
3855
4124
|
readonly mutantCoverage: S.optionalKey<S.Struct<{
|
|
3856
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
3857
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
4125
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Finite>>;
|
|
4126
|
+
readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Finite>;
|
|
3858
4127
|
}>>;
|
|
3859
4128
|
}>, S.Struct<{
|
|
3860
4129
|
readonly status: S.Literal<"timeout">;
|
|
@@ -3865,12 +4134,12 @@ declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
|
3865
4134
|
}>]>;
|
|
3866
4135
|
declare const MutantRunResultSchema: S.Union<readonly [S.Struct<{
|
|
3867
4136
|
readonly status: S.Literal<"killed">;
|
|
3868
|
-
readonly killedBy: S.$Array<S.
|
|
4137
|
+
readonly killedBy: S.$Array<S.brand<S.NonEmptyString, "TestId">>;
|
|
3869
4138
|
readonly failureMessage: S.String;
|
|
3870
|
-
readonly nrOfTests: S.
|
|
4139
|
+
readonly nrOfTests: S.Int;
|
|
3871
4140
|
}>, S.Struct<{
|
|
3872
4141
|
readonly status: S.Literal<"survived">;
|
|
3873
|
-
readonly nrOfTests: S.
|
|
4142
|
+
readonly nrOfTests: S.Int;
|
|
3874
4143
|
}>, S.Struct<{
|
|
3875
4144
|
readonly status: S.Literal<"timeout">;
|
|
3876
4145
|
readonly reason: S.optionalKey<S.String>;
|
|
@@ -3894,9 +4163,11 @@ declare const TestRunnerFailed_base: S.Class<TestRunnerFailed, S.TaggedStruct<"T
|
|
|
3894
4163
|
readonly phase: S.Literals<readonly ["capabilities", "dispose", "dryRun", "init", "mutantRun"]>;
|
|
3895
4164
|
readonly runnerName: S.String;
|
|
3896
4165
|
}>, import("effect/Cause").YieldableError>;
|
|
3897
|
-
declare class TestRunnerFailed extends TestRunnerFailed_base {
|
|
4166
|
+
declare class TestRunnerFailed extends TestRunnerFailed_base {
|
|
4167
|
+
get message(): string;
|
|
4168
|
+
}
|
|
3898
4169
|
interface BaseTestResult {
|
|
3899
|
-
readonly id:
|
|
4170
|
+
readonly id: TestId;
|
|
3900
4171
|
readonly name: string;
|
|
3901
4172
|
readonly timeSpentMs: number;
|
|
3902
4173
|
readonly fileName?: string;
|
|
@@ -3933,7 +4204,7 @@ interface TimeoutMutantRunResult {
|
|
|
3933
4204
|
}
|
|
3934
4205
|
interface KilledMutantRunResult {
|
|
3935
4206
|
readonly status: 'killed';
|
|
3936
|
-
readonly killedBy: readonly
|
|
4207
|
+
readonly killedBy: readonly TestId[];
|
|
3937
4208
|
readonly failureMessage: string;
|
|
3938
4209
|
readonly nrOfTests: number;
|
|
3939
4210
|
}
|
|
@@ -3959,6 +4230,10 @@ interface TestRunnerCapabilities {
|
|
|
3959
4230
|
//#region src/Plugin.schema.d.ts
|
|
3960
4231
|
declare const WorkerPluginKind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
|
3961
4232
|
type WorkerPluginKind = typeof WorkerPluginKind.Type;
|
|
4233
|
+
declare const EvaluatorPluginKind: S.Literal<"Evaluator">;
|
|
4234
|
+
type EvaluatorPluginKind = typeof EvaluatorPluginKind.Type;
|
|
4235
|
+
declare const PluginKindSchema: S.Union<readonly [S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>, S.Literal<"Evaluator">]>;
|
|
4236
|
+
type PluginKind = typeof PluginKindSchema.Type;
|
|
3962
4237
|
declare const TestRunnerDryRunRequest: S.Struct<{
|
|
3963
4238
|
readonly options: S.Struct<{
|
|
3964
4239
|
readonly timeout: S.Finite;
|
|
@@ -3973,7 +4248,38 @@ declare const TestRunnerMutantRunRequest: S.Struct<{
|
|
|
3973
4248
|
readonly options: S.Struct<{
|
|
3974
4249
|
readonly timeout: S.Finite;
|
|
3975
4250
|
readonly disableBail: S.Boolean;
|
|
3976
|
-
readonly activeMutant:
|
|
4251
|
+
readonly activeMutant: S.Struct<{
|
|
4252
|
+
readonly _tag: S.tag<"Mutant">;
|
|
4253
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
4254
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
4255
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
4256
|
+
readonly replacement: S.String;
|
|
4257
|
+
readonly location: S.declare<{
|
|
4258
|
+
readonly start: {
|
|
4259
|
+
readonly line: number;
|
|
4260
|
+
readonly column: number;
|
|
4261
|
+
};
|
|
4262
|
+
readonly end: {
|
|
4263
|
+
readonly line: number;
|
|
4264
|
+
readonly column: number;
|
|
4265
|
+
};
|
|
4266
|
+
}, {
|
|
4267
|
+
readonly start: {
|
|
4268
|
+
readonly line: number;
|
|
4269
|
+
readonly column: number;
|
|
4270
|
+
};
|
|
4271
|
+
readonly end: {
|
|
4272
|
+
readonly line: number;
|
|
4273
|
+
readonly column: number;
|
|
4274
|
+
};
|
|
4275
|
+
}>;
|
|
4276
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
4277
|
+
readonly statusReason: S.optional<S.String>;
|
|
4278
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
4279
|
+
readonly static: S.optional<S.Boolean>;
|
|
4280
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
4281
|
+
readonly description: S.optional<S.String>;
|
|
4282
|
+
}>;
|
|
3977
4283
|
readonly sandboxFileName: S.String;
|
|
3978
4284
|
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
3979
4285
|
readonly reloadEnvironment: S.Boolean;
|
|
@@ -3985,24 +4291,33 @@ type TestRunnerMutantRunRequest = typeof TestRunnerMutantRunRequest.Type;
|
|
|
3985
4291
|
declare const CheckerRequest: S.Struct<{
|
|
3986
4292
|
readonly checkerName: S.String;
|
|
3987
4293
|
readonly mutants: S.$Array<S.Struct<{
|
|
3988
|
-
readonly id: S.brand<S.
|
|
4294
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
3989
4295
|
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3990
4296
|
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3991
4297
|
readonly replacement: S.String;
|
|
3992
|
-
readonly location: S.
|
|
3993
|
-
readonly start:
|
|
3994
|
-
readonly line:
|
|
3995
|
-
readonly column:
|
|
3996
|
-
}
|
|
3997
|
-
readonly end:
|
|
3998
|
-
readonly line:
|
|
3999
|
-
readonly column:
|
|
4000
|
-
}
|
|
4298
|
+
readonly location: S.declare<{
|
|
4299
|
+
readonly start: {
|
|
4300
|
+
readonly line: number;
|
|
4301
|
+
readonly column: number;
|
|
4302
|
+
};
|
|
4303
|
+
readonly end: {
|
|
4304
|
+
readonly line: number;
|
|
4305
|
+
readonly column: number;
|
|
4306
|
+
};
|
|
4307
|
+
}, {
|
|
4308
|
+
readonly start: {
|
|
4309
|
+
readonly line: number;
|
|
4310
|
+
readonly column: number;
|
|
4311
|
+
};
|
|
4312
|
+
readonly end: {
|
|
4313
|
+
readonly line: number;
|
|
4314
|
+
readonly column: number;
|
|
4315
|
+
};
|
|
4001
4316
|
}>;
|
|
4002
4317
|
}>>;
|
|
4003
4318
|
}>;
|
|
4004
4319
|
type CheckerRequest = typeof CheckerRequest.Type;
|
|
4005
|
-
declare const CheckerCheckResult: S.$Record<S.String, S.
|
|
4320
|
+
declare const CheckerCheckResult: S.$Record<S.String, S.toTaggedUnion<"status", readonly [S.Struct<{
|
|
4006
4321
|
readonly status: S.Literal<"passed">;
|
|
4007
4322
|
}>, S.Struct<{
|
|
4008
4323
|
readonly status: S.Literal<"compileError">;
|
|
@@ -4010,11 +4325,16 @@ declare const CheckerCheckResult: S.$Record<S.String, S.Union<readonly [S.Struct
|
|
|
4010
4325
|
}>]>>;
|
|
4011
4326
|
declare const CheckerGroupResult: S.$Array<S.$Array<S.String>>;
|
|
4012
4327
|
declare const ReporterInitOptions: S.Struct<{
|
|
4013
|
-
readonly traceparent: S.optionalKey<S.
|
|
4328
|
+
readonly traceparent: S.optionalKey<S.decodeTo<S.Struct<{
|
|
4329
|
+
readonly version: S.String;
|
|
4330
|
+
readonly traceId: S.String;
|
|
4331
|
+
readonly spanId: S.String;
|
|
4332
|
+
readonly traceFlags: S.Int;
|
|
4333
|
+
}>, S.String, never, never>>;
|
|
4014
4334
|
readonly tracestate: S.optionalKey<S.String>;
|
|
4015
4335
|
}>;
|
|
4016
4336
|
type ReporterInitOptions = typeof ReporterInitOptions.Type;
|
|
4017
|
-
declare const ReporterEventBatch: S.$Array<S.
|
|
4337
|
+
declare const ReporterEventBatch: S.$Array<S.toTaggedUnion<"_tag", readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>>;
|
|
4018
4338
|
type ReporterEventBatch = typeof ReporterEventBatch.Type;
|
|
4019
4339
|
declare const ReporterAck: S.Void;
|
|
4020
4340
|
declare const ReporterDrained: S.Void;
|
|
@@ -4023,13 +4343,17 @@ declare const BoundaryPayloadRejected_base: S.Class<BoundaryPayloadRejected, S.T
|
|
|
4023
4343
|
readonly method: S.String;
|
|
4024
4344
|
readonly cause: S.String;
|
|
4025
4345
|
}>, import("effect/Cause").YieldableError>;
|
|
4026
|
-
declare class BoundaryPayloadRejected extends BoundaryPayloadRejected_base {
|
|
4346
|
+
declare class BoundaryPayloadRejected extends BoundaryPayloadRejected_base {
|
|
4347
|
+
get message(): string;
|
|
4348
|
+
}
|
|
4027
4349
|
declare const BoundaryUnrecognizedSignal_base: S.Class<BoundaryUnrecognizedSignal, S.TaggedStruct<"BoundaryUnrecognizedSignal", {
|
|
4028
4350
|
readonly pluginName: S.String;
|
|
4029
4351
|
readonly method: S.String;
|
|
4030
4352
|
readonly signal: S.String;
|
|
4031
4353
|
}>, import("effect/Cause").YieldableError>;
|
|
4032
|
-
declare class BoundaryUnrecognizedSignal extends BoundaryUnrecognizedSignal_base {
|
|
4354
|
+
declare class BoundaryUnrecognizedSignal extends BoundaryUnrecognizedSignal_base {
|
|
4355
|
+
get message(): string;
|
|
4356
|
+
}
|
|
4033
4357
|
declare const BoundaryErrorSchema: S.Union<readonly [typeof BoundaryPayloadRejected, typeof BoundaryUnrecognizedSignal, typeof TestRunnerFailed, typeof CheckerFailed, typeof ReporterFailed]>;
|
|
4034
4358
|
type BoundaryError = typeof BoundaryErrorSchema.Type;
|
|
4035
4359
|
declare const WorkerEntryUrl: S.String;
|
|
@@ -4051,17 +4375,30 @@ declare const PropagatedTrace_base: Context.ServiceClass<PropagatedTrace, "@syst
|
|
|
4051
4375
|
declare class PropagatedTrace extends PropagatedTrace_base {}
|
|
4052
4376
|
declare const TraceContextMiddleware_base: RpcMiddleware.ServiceClass<TraceContextMiddleware, "@systemfsoftware/stryker-js-plugin-interface/TraceContextMiddleware", typeof PropagatedTrace, Schema.Never, never, never, true>;
|
|
4053
4377
|
declare class TraceContextMiddleware extends TraceContextMiddleware_base {}
|
|
4054
|
-
type TracedRpc<Tag extends string, Payload extends Schema.Top = Schema.Void, Success extends Schema.Top = Schema.Void, Error extends Schema.Top = Schema.Never> = Rpc.Rpc<Tag, Payload, Success, Error
|
|
4378
|
+
type TracedRpc<Tag extends string, Payload extends Schema.Top = Schema.Void, Success extends Schema.Top = Schema.Void, Error extends Schema.Top = Schema.Never> = Rpc.AddMiddleware<Rpc.Rpc<Tag, Payload, Success, Error>, typeof TraceContextMiddleware>;
|
|
4055
4379
|
//#endregion
|
|
4056
4380
|
//#region src/PluginRpcs.service.d.ts
|
|
4057
|
-
declare const
|
|
4058
|
-
declare const
|
|
4059
|
-
declare const
|
|
4381
|
+
declare const capabilities: TracedRpc<'capabilities', Schema.Void, typeof TestRunnerCapabilitiesSchema, typeof TestRunnerFailed>;
|
|
4382
|
+
declare const dryRun: TracedRpc<'dryRun', typeof TestRunnerDryRunRequest, typeof DryRunResultSchema, typeof TestRunnerFailed>;
|
|
4383
|
+
declare const mutantRun: TracedRpc<'mutantRun', typeof TestRunnerMutantRunRequest, typeof MutantRunResultSchema, typeof TestRunnerFailed>;
|
|
4384
|
+
declare const check: TracedRpc<'check', typeof CheckerRequest, typeof CheckerCheckResult, typeof CheckerFailed>;
|
|
4385
|
+
declare const group: TracedRpc<'group', typeof CheckerRequest, typeof CheckerGroupResult, typeof CheckerFailed>;
|
|
4386
|
+
declare const init: TracedRpc<'init', typeof ReporterInitOptions, typeof ReporterAck, typeof ReporterFailed>;
|
|
4387
|
+
declare const onEventBatch: TracedRpc<'onEventBatch', typeof ReporterEventBatch, typeof ReporterAck, typeof ReporterFailed>;
|
|
4388
|
+
declare const flush: TracedRpc<'flush', Schema.Void, typeof ReporterDrained, typeof ReporterFailed>;
|
|
4389
|
+
declare const TestRunnerRpcs: RpcGroup.RpcGroup<typeof capabilities | typeof dryRun | typeof mutantRun>;
|
|
4390
|
+
declare const CheckerRpcs: RpcGroup.RpcGroup<typeof check | typeof group>;
|
|
4391
|
+
declare const ReporterRpcs: RpcGroup.RpcGroup<typeof init | typeof onEventBatch | typeof flush>;
|
|
4060
4392
|
declare namespace mod_d_exports$3 {
|
|
4061
|
-
export { BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, CheckerCheckResult, CheckerGroupResult, CheckerRequest, CheckerRpcs, ExitClass, ExitCodeFromClass, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, TestRunnerDryRunRequest, TestRunnerMutantRunRequest, TestRunnerRpcs, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema };
|
|
4393
|
+
export { BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, CheckerCheckResult, CheckerGroupResult, CheckerRequest, CheckerRpcs, EvaluatorPluginKind, ExitClass, ExitCode, ExitCodeFromClass, PluginKind, PluginKindSchema, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, TestRunnerDryRunRequest, TestRunnerMutantRunRequest, TestRunnerRpcs, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema };
|
|
4062
4394
|
}
|
|
4395
|
+
//#endregion
|
|
4396
|
+
//#region src/Metrics.d.ts
|
|
4397
|
+
declare const metricsFromMutants: (mutants: readonly {
|
|
4398
|
+
readonly status: mod_d_exports$3$1.MutantStatus;
|
|
4399
|
+
}[]) => Metrics;
|
|
4063
4400
|
declare namespace mod_d_exports$4 {
|
|
4064
|
-
export { BrandingInformation, BrandingInformationSchema, Dependencies, DependenciesSchema, DetectedStatus, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, InvalidStatus, Metrics, MetricsResult, MetricsResultEncoded, MetricsResultSchema, MetricsSchema, MutantResult, MutantResultSchema, MutationScore, MutationTestResult, MutationTestResultSchema, NonNegativeFinite, NonNegativeInt, Percentage, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, Thresholds, ThresholdsSchema, UndetectedStatus, UntestedStatus };
|
|
4401
|
+
export { BrandingInformation, BrandingInformationSchema, Dependencies, DependenciesSchema, DetectedStatus, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, InvalidStatus, Metrics, MetricsResult, MetricsResultEncoded, MetricsResultSchema, MetricsSchema, MutantResult, MutantResultSchema, MutationScore, MutationTestResult, MutationTestResultSchema, NonNegativeFinite, NonNegativeInt, OrderedThresholds, Percentage, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, Thresholds, ThresholdsSchema, UndetectedStatus, UntestedStatus, metricsFromMutants };
|
|
4065
4402
|
}
|
|
4066
4403
|
declare namespace mod_d_exports$5 {
|
|
4067
4404
|
export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEvent, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, RunTiming, RunTimingSchema };
|
|
@@ -4087,7 +4424,7 @@ interface TestRunnerService {
|
|
|
4087
4424
|
declare const TestRunner_base: Context.ServiceClass<TestRunner, "@systemfsoftware/stryker-js-plugin-interface/TestRunner.service/TestRunner", TestRunnerService>;
|
|
4088
4425
|
declare class TestRunner extends TestRunner_base {}
|
|
4089
4426
|
declare namespace mod_d_exports$6 {
|
|
4090
|
-
export { BaseTestResult, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisSchema, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, ErrorDryRunResult, ErrorMutantRunResult, FailedTestResult, HitLimitReason, HitLimitReasonPrefix, HitLimitReasonText, KilledMutantRunResult, MutantCoverageSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, SkippedTestResult, SuccessTestResult, SurvivedMutantRunResult, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerFailed, TestRunnerService, TestStatus, TimeoutDryRunResult, TimeoutMutantRunResult, WallClockTimeoutReason };
|
|
4427
|
+
export { BaseTestResult, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisSchema, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, ErrorDryRunResult, ErrorMutantRunResult, FailedTestResult, HitLimitReason, HitLimitReasonPrefix, HitLimitReasonText, KilledMutantRunResult, MutantCoverageSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, SkippedTestResult, SuccessTestResult, SurvivedMutantRunResult, TestId, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerFailed, TestRunnerService, TestStatus, TimeoutDryRunResult, TimeoutMutantRunResult, WallClockTimeoutReason };
|
|
4091
4428
|
}
|
|
4092
4429
|
//#endregion
|
|
4093
4430
|
export { mod_d_exports$5 as a, mod_d_exports$2$1 as c, Ignorer$1 as d, Node_2$1 as f, mod_d_exports$4 as i, mod_d_exports$3$1 as l, mod_d_exports$2 as n, mod_d_exports$6 as o, mod_d_exports$3 as r, mod_d_exports$1 as s, mod_d_exports as t, Framework as u };
|