UNPKG

1.99 kBTypeScriptView Raw
1import { StrykerOptions, MutantTestCoverage, MutantResult, MutantStatus } from '@stryker-mutator/api/core';
2import { Logger } from '@stryker-mutator/api/logging';
3import { Reporter } from '@stryker-mutator/api/report';
4import { I, type requireResolve } from '@stryker-mutator/util';
5import { MutantRunResult } from '@stryker-mutator/api/test-runner';
6import { PassedCheckResult, CheckResult } from '@stryker-mutator/api/check';
7import { Project, FileSystem } from '../fs/index.js';
8import { TestCoverage } from '../mutants/index.js';
9/**
10 * A helper class to convert and report mutants that survived or get killed
11 */
12export declare class MutationTestReportHelper {
13 private readonly reporter;
14 private readonly options;
15 private readonly project;
16 private readonly log;
17 private readonly testCoverage;
18 private readonly fs;
19 private readonly requireFromCwd;
20 static inject: ["reporter", "options", "project", "logger", "testCoverage", "fs", "requireFromCwd"];
21 constructor(reporter: Required<Reporter>, options: StrykerOptions, project: Project, log: Logger, testCoverage: I<TestCoverage>, fs: I<FileSystem>, requireFromCwd: typeof requireResolve);
22 reportCheckFailed(mutant: MutantTestCoverage, checkResult: Exclude<CheckResult, PassedCheckResult>): MutantResult;
23 reportMutantStatus(mutant: MutantTestCoverage, status: MutantStatus): MutantResult;
24 reportMutantRunResult(mutant: MutantTestCoverage, result: MutantRunResult): MutantResult;
25 private reportOne;
26 private checkStatusToResultStatus;
27 reportAll(results: MutantResult[]): Promise<void>;
28 private determineExitCode;
29 private mutationTestReport;
30 private toFileResults;
31 private toTestFiles;
32 private toFileResult;
33 private toTestFile;
34 private toTestDefinition;
35 private determineLanguage;
36 private toMutantResult;
37 private toLocation;
38 private toPosition;
39 private discoverDependencies;
40}
41//# sourceMappingURL=mutation-test-report-helper.d.ts.map
\No newline at end of file