|
1
|
|
package org.egothor.methodatlas; |
|
2
|
|
|
|
3
|
|
import java.io.FilterOutputStream; |
|
4
|
|
import java.io.IOException; |
|
5
|
|
import java.io.OutputStream; |
|
6
|
|
import java.io.OutputStreamWriter; |
|
7
|
|
import java.io.PrintWriter; |
|
8
|
|
import java.nio.charset.StandardCharsets; |
|
9
|
|
import java.nio.file.Files; |
|
10
|
|
import java.nio.file.Path; |
|
11
|
|
import java.util.logging.Level; |
|
12
|
|
import java.util.logging.Logger; |
|
13
|
|
|
|
14
|
|
import org.egothor.methodatlas.ai.ManualConsumeEngine; |
|
15
|
|
import org.egothor.methodatlas.ai.AiSuggestionEngine; |
|
16
|
|
import org.egothor.methodatlas.api.TestDiscoveryConfig; |
|
17
|
|
import org.egothor.methodatlas.command.AiRuntimeBuilder; |
|
18
|
|
import org.egothor.methodatlas.command.ApplyTagsCommand; |
|
19
|
|
|
|
20
|
|
import org.egothor.methodatlas.emit.ClassificationOverride; |
|
21
|
|
import org.egothor.methodatlas.emit.OutputMode; |
|
22
|
|
import org.egothor.methodatlas.command.ApplyTagsFromCsvCommand; |
|
23
|
|
import org.egothor.methodatlas.command.CheckPromptsCommand; |
|
24
|
|
import org.egothor.methodatlas.command.DiffCommand; |
|
25
|
|
import org.egothor.methodatlas.command.GitHubAnnotationsCommand; |
|
26
|
|
import org.egothor.methodatlas.command.JsonCommand; |
|
27
|
|
import org.egothor.methodatlas.command.ManualPrepareCommand; |
|
28
|
|
import org.egothor.methodatlas.command.OverrideLoader; |
|
29
|
|
import org.egothor.methodatlas.command.PluginLoader; |
|
30
|
|
import org.egothor.methodatlas.command.SarifCommand; |
|
31
|
|
import org.egothor.methodatlas.command.ScanCommand; |
|
32
|
|
import org.egothor.methodatlas.command.ScanOrchestrator; |
|
33
|
|
import org.egothor.methodatlas.coverage.CoverageFacade; |
|
34
|
|
import org.egothor.methodatlas.receipt.ReceiptFacade; |
|
35
|
|
import org.egothor.methodatlas.evidence.EvidenceFramework; |
|
36
|
|
import org.egothor.methodatlas.evidence.EvidencePackCommand; |
|
37
|
|
import org.egothor.methodatlas.evidence.EvidencePackOptions; |
|
38
|
|
import org.egothor.methodatlas.evidence.GenSigningKeyCommand; |
|
39
|
|
|
|
40
|
|
/** |
|
41
|
|
* Command-line entry point that parses the arguments and routes the invocation |
|
42
|
|
* to the matching {@link org.egothor.methodatlas.command.Command} or utility |
|
43
|
|
* mode. |
|
44
|
|
* |
|
45
|
|
* <p> |
|
46
|
|
* This class owns no discovery or parsing logic of its own. It parses arguments |
|
47
|
|
* into a {@link CliConfig} (via {@link CliArgs}), selects the operating mode, |
|
48
|
|
* builds the collaborators that mode needs, and delegates execution. Test |
|
49
|
|
* discovery is performed by the language plugins on the classpath (loaded |
|
50
|
|
* through {@link java.util.ServiceLoader}); AI enrichment, output emission, and |
|
51
|
|
* the evidence-pack, coverage, and receipt features are each handled by their |
|
52
|
|
* own command or facade. |
|
53
|
|
* </p> |
|
54
|
|
* |
|
55
|
|
* <h2>Source-Derived Metadata</h2> |
|
56
|
|
* |
|
57
|
|
* <p> |
|
58
|
|
* For each discovered test method, the application reports: |
|
59
|
|
* </p> |
|
60
|
|
* <ul> |
|
61
|
|
* <li>fully qualified class name</li> |
|
62
|
|
* <li>method name</li> |
|
63
|
|
* <li>inclusive line count of the method declaration</li> |
|
64
|
|
* <li>JUnit {@code @Tag} values declared on the method</li> |
|
65
|
|
* </ul> |
|
66
|
|
* |
|
67
|
|
* <h2>AI Enrichment</h2> |
|
68
|
|
* |
|
69
|
|
* <p> |
|
70
|
|
* When AI support is enabled, the application submits each discovered test |
|
71
|
|
* class to an {@link org.egothor.methodatlas.ai.AiSuggestionEngine} and merges |
|
72
|
|
* the returned method-level suggestions into the emitted output. |
|
73
|
|
* </p> |
|
74
|
|
* |
|
75
|
|
* <h2>Manual AI Workflow</h2> |
|
76
|
|
* |
|
77
|
|
* <p> |
|
78
|
|
* Operators who cannot access an AI API directly can use the two-phase manual |
|
79
|
|
* workflow: |
|
80
|
|
* </p> |
|
81
|
|
* <ol> |
|
82
|
|
* <li><b>Prepare phase</b> ({@code -manual-prepare}): the application scans |
|
83
|
|
* test sources and writes one work file per class to the specified directory. |
|
84
|
|
* Each work file contains operator instructions and the full AI prompt (with |
|
85
|
|
* class source embedded). No CSV output is produced in this phase.</li> |
|
86
|
|
* <li><b>Consume phase</b> ({@code -manual-consume}): the application reads |
|
87
|
|
* operator-saved AI response files ({@code <stem>.response.txt}) from the |
|
88
|
|
* response directory and produces the final enriched CSV. Classes whose |
|
89
|
|
* response file is absent receive empty AI columns.</li> |
|
90
|
|
* </ol> |
|
91
|
|
* |
|
92
|
|
* <h2>Supported Command-Line Options</h2> |
|
93
|
|
* |
|
94
|
|
* <ul> |
|
95
|
|
* <li>{@code -config <path>} — loads default values from a YAML configuration |
|
96
|
|
* file; command-line flags override YAML values</li> |
|
97
|
|
* <li>{@code -plain} — emits plain text output instead of CSV</li> |
|
98
|
|
* <li>{@code -sarif} — emits SARIF 2.1.0 JSON output</li> |
|
99
|
|
* <li>{@code -json} — emits a flat JSON array; each element carries the same |
|
100
|
|
* fields as CSV with {@code tags} and {@code ai_tags} as arrays and numeric |
|
101
|
|
* values as JSON numbers</li> |
|
102
|
|
* <li>{@code -ai} — enables AI-based enrichment</li> |
|
103
|
|
* <li>{@code -ai-provider <provider>} — selects the AI provider</li> |
|
104
|
|
* <li>{@code -ai-model <model>} — selects the provider-specific model</li> |
|
105
|
|
* <li>{@code -ai-base-url <url>} — overrides the provider base URL</li> |
|
106
|
|
* <li>{@code -ai-api-key <key>} — supplies the AI API key directly</li> |
|
107
|
|
* <li>{@code -ai-api-key-env <name>} — resolves the AI API key from an |
|
108
|
|
* environment variable</li> |
|
109
|
|
* <li>{@code -ai-taxonomy <path>} — loads taxonomy text from an external |
|
110
|
|
* file</li> |
|
111
|
|
* <li>{@code -ai-taxonomy-mode <mode>} — selects the built-in taxonomy |
|
112
|
|
* variant</li> |
|
113
|
|
* <li>{@code -ai-max-class-chars <count>} — limits class source size submitted |
|
114
|
|
* to AI</li> |
|
115
|
|
* <li>{@code -ai-timeout-sec <seconds>} — sets the AI request timeout</li> |
|
116
|
|
* <li>{@code -ai-max-retries <count>} — sets the retry limit for AI |
|
117
|
|
* operations</li> |
|
118
|
|
* <li>{@code -ai-confidence} — requests a confidence score for each AI |
|
119
|
|
* security classification; adds an {@code ai_confidence} column to the |
|
120
|
|
* output</li> |
|
121
|
|
* <li>{@code -min-confidence <threshold>} — silently drops methods whose AI |
|
122
|
|
* confidence score is below {@code threshold} (range {@code 0.0–1.0}); only |
|
123
|
|
* effective when {@code -ai-confidence} is also enabled</li> |
|
124
|
|
* <li>{@code -ai-cache <path>} — loads a previous scan CSV produced with |
|
125
|
|
* {@code -content-hash -ai} as an AI result cache; classes whose |
|
126
|
|
* {@code content_hash} matches a cache entry are classified without an API |
|
127
|
|
* call; changed and new classes are classified normally</li> |
|
128
|
|
* <li>{@code -file-suffix <suffix>} — matches source files by name suffix |
|
129
|
|
* (default: {@code Test.java}); may be repeated to match multiple patterns, |
|
130
|
|
* e.g. {@code -file-suffix Test.java -file-suffix IT.java}; the first |
|
131
|
|
* occurrence replaces the default</li> |
|
132
|
|
* <li>{@code -test-annotation <name>} — recognises methods annotated with |
|
133
|
|
* {@code name} as test methods; may be repeated; the first occurrence replaces |
|
134
|
|
* the JVM provider's default set (JUnit 5 {@code Test}, {@code ParameterizedTest}, |
|
135
|
|
* {@code RepeatedTest}, {@code TestFactory}, {@code TestTemplate})</li> |
|
136
|
|
* <li>{@code -emit-metadata} — emits {@code # key: value} comment lines |
|
137
|
|
* before the header row describing the tool version, scan timestamp, and |
|
138
|
|
* taxonomy configuration</li> |
|
139
|
|
* <li>{@code -apply-tags} — instead of emitting a report, writes |
|
140
|
|
* AI-generated {@code @DisplayName} and {@code @Tag} annotations back to |
|
141
|
|
* the scanned source files; requires AI enrichment to be enabled</li> |
|
142
|
|
* <li>{@code -content-hash} — includes a SHA-256 fingerprint of each class |
|
143
|
|
* source as a {@code content_hash} column in CSV/plain output and as a SARIF |
|
144
|
|
* property; useful for detecting which classes changed between scans</li> |
|
145
|
|
* <li>{@code -security-only} — suppresses non-security methods from the output; |
|
146
|
|
* only methods whose AI classification (or override) has |
|
147
|
|
* {@code securityRelevant=true} are emitted; requires AI enrichment or a |
|
148
|
|
* classification override file to have any effect</li> |
|
149
|
|
* <li>{@code -manual-prepare <workdir> <responsedir>} — runs the manual AI |
|
150
|
|
* prepare phase, writing work files to {@code workdir} and empty response stubs |
|
151
|
|
* to {@code responsedir}; the two paths may be identical</li> |
|
152
|
|
* <li>{@code -manual-consume <workdir> <responsedir>} — runs the manual AI |
|
153
|
|
* consume phase, reading response files from {@code responsedir} and emitting |
|
154
|
|
* the final enriched CSV</li> |
|
155
|
|
* <li>{@code -diff <before.csv> <after.csv>} — compares two MethodAtlas scan |
|
156
|
|
* outputs and emits a delta report showing added, removed, and modified test |
|
157
|
|
* methods; all other flags are ignored when {@code -diff} is present</li> |
|
158
|
|
* <li>{@code -apply-tags-from-csv <path>} — instead of emitting a report, |
|
159
|
|
* applies the annotation decisions recorded in the reviewed CSV back to the |
|
160
|
|
* source files; the CSV is treated as a complete desired-state specification: |
|
161
|
|
* every test method's {@code @Tag} set and {@code @DisplayName} are driven |
|
162
|
|
* entirely by the corresponding CSV row</li> |
|
163
|
|
* <li>{@code -mismatch-limit <n>} — when used with {@code -apply-tags-from-csv}, |
|
164
|
|
* aborts without modifying any source file if the number of mismatches between |
|
165
|
|
* the CSV and the current source tree reaches or exceeds {@code n}; {@code -1} |
|
166
|
|
* (the default) logs mismatches as warnings and proceeds</li> |
|
167
|
|
* <li>{@code -promote-ai} — <strong>risky, not recommended</strong> opt-in for |
|
168
|
|
* {@code -apply-tags-from-csv}: fills blank tags/display_name from the AI columns |
|
169
|
|
* (unvalidated AI output reaches source); off by default</li> |
|
170
|
|
* <li>{@code -help} / {@code --help} / {@code -h} — print usage and exit</li> |
|
171
|
|
* <li>{@code -emit-source-root} — adds a {@code source_root} column (CSV) and a |
|
172
|
|
* {@code SRCROOT=} token (plain text) identifying which scan root each record |
|
173
|
|
* came from; essential in multi-root projects where the same fully qualified |
|
174
|
|
* class name can appear under different source trees; no effect on SARIF or |
|
175
|
|
* GitHub Annotations output</li> |
|
176
|
|
* </ul> |
|
177
|
|
* |
|
178
|
|
* <p> |
|
179
|
|
* Any remaining non-option arguments are interpreted as root paths to scan. If |
|
180
|
|
* no scan path is supplied, the current working directory is scanned. |
|
181
|
|
* </p> |
|
182
|
|
* |
|
183
|
|
* @see org.egothor.methodatlas.ai.AiSuggestionEngine |
|
184
|
|
* @see org.egothor.methodatlas.api.SourcePatcher |
|
185
|
|
* @see org.egothor.methodatlas.emit.OutputEmitter |
|
186
|
|
* @see org.egothor.methodatlas.emit.SarifEmitter |
|
187
|
|
* @see org.egothor.methodatlas.command.Command |
|
188
|
|
* @see #main(String[]) |
|
189
|
|
*/ |
|
190
|
|
public final class MethodAtlasApp { |
|
191
|
|
|
|
192
|
|
private static final String FLAG_DIFF = "-diff"; |
|
193
|
|
|
|
194
|
|
/** Logger for receipt-emission warnings; receipt failures never abort the scan. */ |
|
195
|
|
private static final Logger LOG = Logger.getLogger(MethodAtlasApp.class.getName()); |
|
196
|
|
|
|
197
|
|
/** Tool version fallback when the JAR manifest carries no Implementation-Version. */ |
|
198
|
|
private static final String DEV_VERSION = "dev"; |
|
199
|
|
|
|
200
|
|
/** Exit code returned when CLI validation rejects the requested invocation. */ |
|
201
|
|
private static final int EXIT_BAD_ARGS = 2; |
|
202
|
|
/** Exit code used when an evidence-pack framework token cannot be parsed. */ |
|
203
|
|
private static final int EXIT_BAD_FRAMEWORK = 2; |
|
204
|
|
|
|
205
|
|
/** |
|
206
|
|
* Prevents instantiation of this utility class. |
|
207
|
|
*/ |
|
208
|
|
private MethodAtlasApp() { |
|
209
|
|
} |
|
210
|
|
|
|
211
|
|
/** |
|
212
|
|
* Program entry point. |
|
213
|
|
* |
|
214
|
|
* <p> |
|
215
|
|
* Delegates all work to {@link #run(String[], PrintWriter)}. Exits with a |
|
216
|
|
* non-zero status code if any source file could not be processed. |
|
217
|
|
* </p> |
|
218
|
|
* |
|
219
|
|
* @param args command-line arguments |
|
220
|
|
* @throws IOException if traversal of a configured file tree fails |
|
221
|
|
* @throws IllegalArgumentException if an option is unknown, if a required |
|
222
|
|
* option value is missing, or if an option |
|
223
|
|
* value cannot be parsed |
|
224
|
|
* @throws IllegalStateException if AI support is enabled but the AI engine |
|
225
|
|
* cannot be created successfully |
|
226
|
|
*/ |
|
227
|
|
public static void main(String[] args) throws IOException { |
|
228
|
|
// Wrap System.out in a guarded stream whose close() only flushes. |
|
229
|
|
// This lets try-with-resources manage the PrintWriter (satisfying |
|
230
|
|
// SpotBugs CloseResource and PMD UseTryWithResources) without |
|
231
|
|
// permanently closing System.out (satisfying Error Prone's |
|
232
|
|
// ClosingStandardOutputStreams check). |
|
233
|
|
OutputStream guarded = new FilterOutputStream(System.out) { |
|
234
|
|
@Override |
|
235
|
|
public void close() throws IOException { |
|
236
|
1
1. close : removed call to org/egothor/methodatlas/MethodAtlasApp$1::flush → NO_COVERAGE
|
flush(); // flush but do NOT close System.out |
|
237
|
|
} |
|
238
|
|
}; |
|
239
|
|
try (PrintWriter out = new PrintWriter(new OutputStreamWriter(guarded, StandardCharsets.UTF_8), true)) { |
|
240
|
|
int exitCode = run(args, out); |
|
241
|
2
1. main : removed conditional - replaced equality check with false → NO_COVERAGE
2. main : removed conditional - replaced equality check with true → NO_COVERAGE
|
if (exitCode != 0) { |
|
242
|
1
1. main : removed call to java/lang/System::exit → NO_COVERAGE
|
System.exit(exitCode); |
|
243
|
|
} |
|
244
|
|
} |
|
245
|
|
} |
|
246
|
|
|
|
247
|
|
/** |
|
248
|
|
* Executes a full application run by routing to the appropriate |
|
249
|
|
* {@link org.egothor.methodatlas.command.Command} implementation. |
|
250
|
|
* |
|
251
|
|
* <p> |
|
252
|
|
* This method is the primary entry point for programmatic and test use. It |
|
253
|
|
* parses arguments, identifies the requested operating mode, constructs the |
|
254
|
|
* matching command object, and delegates execution to it. |
|
255
|
|
* </p> |
|
256
|
|
* |
|
257
|
|
* @param args command-line arguments |
|
258
|
|
* @param out writer that receives all emitted output |
|
259
|
|
* @return {@code 0} if all files were processed successfully, {@code 1} if |
|
260
|
|
* any file produced a parse or processing error |
|
261
|
|
* @throws IOException if traversal of a configured file tree fails |
|
262
|
|
* @throws IllegalArgumentException if an option is unknown, if a required |
|
263
|
|
* option value is missing, or if an option |
|
264
|
|
* value cannot be parsed |
|
265
|
|
* @throws IllegalStateException if AI support is enabled but the AI engine |
|
266
|
|
* cannot be created successfully |
|
267
|
|
*/ |
|
268
|
|
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops") // DiffCommand is created inside the loop but returned immediately |
|
269
|
|
/* default */ static int run(String[] args, PrintWriter out) throws IOException { |
|
270
|
|
// -help is handled before argument parsing so it works even with no |
|
271
|
|
// other (or otherwise invalid) arguments and never trips the |
|
272
|
|
// "Unknown argument" path. |
|
273
|
|
for (String arg : args) { |
|
274
|
6
1. run : removed conditional - replaced equality check with false → KILLED
2. run : removed conditional - replaced equality check with false → KILLED
3. run : removed conditional - replaced equality check with false → KILLED
4. run : removed conditional - replaced equality check with true → KILLED
5. run : removed conditional - replaced equality check with true → KILLED
6. run : removed conditional - replaced equality check with true → KILLED
|
if ("-help".equals(arg) || "--help".equals(arg) || "-h".equals(arg)) { |
|
275
|
1
1. run : removed call to org/egothor/methodatlas/Usage::print → KILLED
|
Usage.print(out); |
|
276
|
|
return 0; |
|
277
|
|
} |
|
278
|
|
} |
|
279
|
|
|
|
280
|
|
// -diff and -gen-signing-key are utility modes handled before full |
|
281
|
|
// argument parsing; each owns its own small set of flags and never |
|
282
|
|
// participates in the scan pipeline, so all other flags are ignored. |
|
283
|
3
1. run : removed conditional - replaced comparison check with false → KILLED
2. run : removed conditional - replaced comparison check with true → KILLED
3. run : changed conditional boundary → KILLED
|
for (int i = 0; i < args.length; i++) { |
|
284
|
2
1. run : removed conditional - replaced equality check with false → KILLED
2. run : removed conditional - replaced equality check with true → KILLED
|
if (FLAG_DIFF.equals(args[i])) { |
|
285
|
4
1. run : changed conditional boundary → SURVIVED
2. run : removed conditional - replaced comparison check with false → SURVIVED
3. run : Replaced integer addition with subtraction → SURVIVED
4. run : removed conditional - replaced comparison check with true → KILLED
|
if (i + 2 >= args.length) { |
|
286
|
|
throw new IllegalArgumentException( |
|
287
|
|
"-diff requires two arguments: -diff <before.csv> <after.csv>"); |
|
288
|
|
} |
|
289
|
3
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → SURVIVED
2. run : Replaced integer addition with subtraction → KILLED
3. run : Replaced integer addition with subtraction → KILLED
|
return new DiffCommand(Path.of(args[i + 1]), Path.of(args[i + 2])).execute(out); |
|
290
|
|
} |
|
291
|
2
1. run : removed conditional - replaced equality check with false → KILLED
2. run : removed conditional - replaced equality check with true → KILLED
|
if (GenSigningKeyCommand.FLAG_GEN_SIGNING_KEY.equals(args[i])) { |
|
292
|
1
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → SURVIVED
|
return GenSigningKeyCommand.run(args, out); |
|
293
|
|
} |
|
294
|
2
1. run : removed conditional - replaced equality check with false → SURVIVED
2. run : removed conditional - replaced equality check with true → KILLED
|
if (CheckPromptsCommand.FLAG_CHECK_PROMPTS.equals(args[i])) { |
|
295
|
1
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → NO_COVERAGE
|
return CheckPromptsCommand.fromArgs(args).execute(out); |
|
296
|
|
} |
|
297
|
|
} |
|
298
|
|
|
|
299
|
|
CliConfig cliConfig = CliArgs.parse(args); |
|
300
|
2
1. run : removed conditional - replaced equality check with true → KILLED
2. run : removed conditional - replaced equality check with false → KILLED
|
if (cliConfig == null) { |
|
301
|
|
// CliArgs already printed an actionable stderr message; signal |
|
302
|
|
// bad-args via the conventional exit code 2. |
|
303
|
1
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
return EXIT_BAD_ARGS; |
|
304
|
|
} |
|
305
|
|
|
|
306
|
|
// Load the coverage mapping up-front so a malformed file aborts the run |
|
307
|
|
// before the scan starts, avoiding wasted work and ambiguous errors. |
|
308
|
|
CoverageFacade.Handle coverageHandle; |
|
309
|
|
try { |
|
310
|
|
coverageHandle = prepareCoverageHandle(cliConfig); |
|
311
|
|
} catch (IOException | IllegalArgumentException e) { |
|
312
|
1
1. run : removed call to java/io/PrintStream::println → SURVIVED
|
System.err.println("Error loading coverage mapping: " + e.getMessage()); |
|
313
|
1
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
return EXIT_BAD_ARGS; |
|
314
|
|
} |
|
315
|
|
|
|
316
|
|
// Establish the run identity once and place it in the thread-local |
|
317
|
|
// context so the JUL formatter (Item 20) can prepend the correlation |
|
318
|
|
// id to every log record emitted during this invocation. clear() in |
|
319
|
|
// the finally block keeps the thread-local from outliving the run |
|
320
|
|
// when MethodAtlas is invoked programmatically (the standard CLI |
|
321
|
|
// exits the JVM anyway). |
|
322
|
|
String version = MethodAtlasApp.class.getPackage().getImplementationVersion(); |
|
323
|
|
ScanRun scanRun = ScanRun.create(version, cliConfig.toString()); |
|
324
|
1
1. run : removed call to org/egothor/methodatlas/ScanRunContext::set → SURVIVED
|
ScanRunContext.set(scanRun); |
|
325
|
|
try { |
|
326
|
|
int exit = runWithScanRun(out, cliConfig, coverageHandle); |
|
327
|
2
1. run : removed conditional - replaced equality check with false → KILLED
2. run : removed conditional - replaced equality check with true → KILLED
|
if (cliConfig.emitReceipt()) { |
|
328
|
1
1. run : removed call to org/egothor/methodatlas/MethodAtlasApp::emitReceipt → KILLED
|
emitReceipt(cliConfig, version); |
|
329
|
|
} |
|
330
|
2
1. run : removed conditional - replaced equality check with true → KILLED
2. run : removed conditional - replaced equality check with false → KILLED
|
if (coverageHandle != null) { |
|
331
|
1
1. run : removed call to org/egothor/methodatlas/MethodAtlasApp::writeCoverage → KILLED
|
writeCoverage(cliConfig, version, coverageHandle); |
|
332
|
|
} |
|
333
|
1
1. run : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
return exit; |
|
334
|
|
} finally { |
|
335
|
1
1. run : removed call to org/egothor/methodatlas/ScanRunContext::clear → SURVIVED
|
ScanRunContext.clear(); |
|
336
|
|
} |
|
337
|
|
} |
|
338
|
|
|
|
339
|
|
/** |
|
340
|
|
* Loads the coverage mapping when {@code -emit-coverage} is active. |
|
341
|
|
* |
|
342
|
|
* @param cliConfig parsed CLI configuration |
|
343
|
|
* @return prepared handle or {@code null} when coverage mode is not active |
|
344
|
|
* @throws IOException if the mapping file cannot be read |
|
345
|
|
* @throws IllegalArgumentException if the mapping file fails validation |
|
346
|
|
*/ |
|
347
|
|
private static CoverageFacade.Handle prepareCoverageHandle(CliConfig cliConfig) |
|
348
|
|
throws IOException { |
|
349
|
2
1. prepareCoverageHandle : removed conditional - replaced equality check with false → KILLED
2. prepareCoverageHandle : removed conditional - replaced equality check with true → KILLED
|
if (!cliConfig.emitCoverage()) { |
|
350
|
|
return null; |
|
351
|
|
} |
|
352
|
1
1. prepareCoverageHandle : replaced return value with null for org/egothor/methodatlas/MethodAtlasApp::prepareCoverageHandle → KILLED
|
return CoverageFacade.prepare(cliConfig.coverageMappingFile(), cliConfig.minConfidence()); |
|
353
|
|
} |
|
354
|
|
|
|
355
|
|
/** |
|
356
|
|
* Writes the coverage report. Errors are logged and swallowed so a |
|
357
|
|
* coverage-write failure never demotes a successful scan. |
|
358
|
|
* |
|
359
|
|
* @param cliConfig parsed CLI configuration |
|
360
|
|
* @param version resolved tool version |
|
361
|
|
* @param handle prepared coverage handle; never {@code null} |
|
362
|
|
*/ |
|
363
|
|
private static void writeCoverage(CliConfig cliConfig, String version, |
|
364
|
|
CoverageFacade.Handle handle) { |
|
365
|
2
1. writeCoverage : removed conditional - replaced equality check with false → SURVIVED
2. writeCoverage : removed conditional - replaced equality check with true → SURVIVED
|
String toolVersion = version != null ? version : DEV_VERSION; |
|
366
|
2
1. writeCoverage : removed conditional - replaced equality check with true → SURVIVED
2. writeCoverage : removed conditional - replaced equality check with false → KILLED
|
Path target = cliConfig.coverageFile() != null |
|
367
|
|
? cliConfig.coverageFile() |
|
368
|
|
: Path.of(CoverageFacade.DEFAULT_COVERAGE_FILENAME); |
|
369
|
|
try { |
|
370
|
1
1. writeCoverage : removed call to org/egothor/methodatlas/coverage/CoverageFacade$Handle::write → KILLED
|
handle.write(toolVersion, target); |
|
371
|
|
} catch (IOException e) { |
|
372
|
|
if (LOG.isLoggable(Level.WARNING)) { |
|
373
|
|
LOG.log(Level.WARNING, |
|
374
|
|
"Could not write coverage report: {0}", e.getMessage()); |
|
375
|
|
} |
|
376
|
|
} |
|
377
|
|
} |
|
378
|
|
|
|
379
|
|
/** |
|
380
|
|
* Writes a reproducibility receipt for the just-completed scan. |
|
381
|
|
* |
|
382
|
|
* <p> |
|
383
|
|
* Failures are logged at WARNING level and swallowed so a receipt-write |
|
384
|
|
* error never turns a successful scan into a non-zero exit code. |
|
385
|
|
* </p> |
|
386
|
|
* |
|
387
|
|
* @param cliConfig parsed CLI configuration whose |
|
388
|
|
* {@link CliConfig#emitReceipt()} is already known to be |
|
389
|
|
* {@code true} |
|
390
|
|
* @param version tool version resolved from the JAR manifest; {@code null} |
|
391
|
|
* resolves to {@code "dev"} |
|
392
|
|
*/ |
|
393
|
|
private static void emitReceipt(CliConfig cliConfig, String version) { |
|
394
|
2
1. emitReceipt : removed conditional - replaced equality check with false → SURVIVED
2. emitReceipt : removed conditional - replaced equality check with true → KILLED
|
String toolVersion = version != null ? version : DEV_VERSION; |
|
395
|
|
String modeName = cliConfig.outputMode().name(); |
|
396
|
|
try { |
|
397
|
1
1. emitReceipt : removed call to org/egothor/methodatlas/receipt/ReceiptFacade::emit → KILLED
|
ReceiptFacade.emit(cliConfig, toolVersion, modeName); |
|
398
|
|
} catch (IOException e) { |
|
399
|
|
if (LOG.isLoggable(Level.WARNING)) { |
|
400
|
|
LOG.log(Level.WARNING, |
|
401
|
|
"Could not write reproducibility receipt: {0}", e.getMessage()); |
|
402
|
|
} |
|
403
|
|
} |
|
404
|
|
} |
|
405
|
|
|
|
406
|
|
private static int runWithScanRun(PrintWriter out, CliConfig cliConfig, |
|
407
|
|
CoverageFacade.Handle coverageHandle) throws IOException { |
|
408
|
|
AiRuntimeBuilder aiRuntimeBuilder = new AiRuntimeBuilder(); |
|
409
|
|
ClassificationOverride override = new OverrideLoader().load(cliConfig.overrideFile()); |
|
410
|
|
AiResultCache aiCache = aiRuntimeBuilder.buildCache(cliConfig.aiCacheFile()); |
|
411
|
|
|
|
412
|
|
TestDiscoveryConfig discoveryConfig = |
|
413
|
|
new TestDiscoveryConfig(cliConfig.fileSuffixes(), cliConfig.testMarkers(), cliConfig.properties()); |
|
414
|
|
|
|
415
|
|
// One PluginLoader + one ScanOrchestrator are shared by every command in |
|
416
|
|
// this run; both are stateless and the providers they resolve are owned |
|
417
|
|
// (and closed) by the command that requested them. When -emit-coverage |
|
418
|
|
// is active the orchestrator carries the coverage sink as an extra |
|
419
|
|
// fan-out — every command mode sees the same fan-out automatically. |
|
420
|
|
PluginLoader pluginLoader = new PluginLoader(); |
|
421
|
|
java.util.Optional<org.egothor.methodatlas.emit.TestMethodSink> extraSink = |
|
422
|
2
1. runWithScanRun : removed conditional - replaced equality check with false → KILLED
2. runWithScanRun : removed conditional - replaced equality check with true → KILLED
|
coverageHandle == null |
|
423
|
|
? java.util.Optional.empty() |
|
424
|
|
: java.util.Optional.of(coverageHandle.asSink()); |
|
425
|
|
ScanOrchestrator scanOrchestrator = new ScanOrchestrator(pluginLoader, extraSink); |
|
426
|
|
|
|
427
|
|
// Manual prepare phase: write AI prompt work files; no CSV output. |
|
428
|
2
1. runWithScanRun : removed conditional - replaced equality check with false → KILLED
2. runWithScanRun : removed conditional - replaced equality check with true → KILLED
|
if (cliConfig.manualMode() instanceof ManualMode.Prepare prepare) { |
|
429
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
return new ManualPrepareCommand(prepare, cliConfig, discoveryConfig, pluginLoader).execute(out); |
|
430
|
|
} |
|
431
|
|
|
|
432
|
|
// Determine AI engine: manual consume reads from files; normal mode calls APIs. |
|
433
|
|
AiSuggestionEngine aiEngine; |
|
434
|
2
1. runWithScanRun : removed conditional - replaced equality check with true → KILLED
2. runWithScanRun : removed conditional - replaced equality check with false → KILLED
|
if (cliConfig.manualMode() instanceof ManualMode.Consume consume) { |
|
435
|
|
aiEngine = new ManualConsumeEngine(consume.responseDir()); |
|
436
|
|
} else { |
|
437
|
|
aiEngine = aiRuntimeBuilder.buildEngine(cliConfig.aiOptions()); |
|
438
|
|
} |
|
439
|
|
|
|
440
|
|
// Apply-tags-from-csv mode: apply reviewed CSV decisions to source files. |
|
441
|
2
1. runWithScanRun : removed conditional - replaced equality check with true → KILLED
2. runWithScanRun : removed conditional - replaced equality check with false → KILLED
|
if (cliConfig.applyTagsFromCsvFile() != null) { |
|
442
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
return new ApplyTagsFromCsvCommand(cliConfig, discoveryConfig, pluginLoader).execute(out); |
|
443
|
|
} |
|
444
|
|
|
|
445
|
|
// Apply-tags mode: annotate source files; no report emitted. |
|
446
|
2
1. runWithScanRun : removed conditional - replaced equality check with false → KILLED
2. runWithScanRun : removed conditional - replaced equality check with true → KILLED
|
if (cliConfig.applyTags()) { |
|
447
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
|
return new ApplyTagsCommand(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
448
|
|
pluginLoader, scanOrchestrator).execute(out); |
|
449
|
|
} |
|
450
|
|
|
|
451
|
|
// Evidence-pack mode: produces a tamper-evident self-contained directory |
|
452
|
|
// (SARIF + CSV + manifest + optional ZeroEcho signature). Must precede the |
|
453
|
|
// SARIF/JSON/GitHub-annotation branches because those formats are |
|
454
|
|
// re-used internally; the dispatch decision is owned by this command. |
|
455
|
2
1. runWithScanRun : removed conditional - replaced equality check with false → KILLED
2. runWithScanRun : removed conditional - replaced equality check with true → KILLED
|
if (cliConfig.evidencePackFramework() != null) { |
|
456
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
return dispatchEvidencePack(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
457
|
|
scanOrchestrator); |
|
458
|
|
} |
|
459
|
|
|
|
460
|
|
// SARIF mode: buffer all records; write JSON once after the scan completes. |
|
461
|
2
1. runWithScanRun : removed conditional - replaced equality check with true → KILLED
2. runWithScanRun : removed conditional - replaced equality check with false → KILLED
|
if (cliConfig.outputMode() == OutputMode.SARIF) { |
|
462
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
|
return new SarifCommand(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
463
|
|
scanOrchestrator).execute(out); |
|
464
|
|
} |
|
465
|
|
|
|
466
|
|
// JSON mode: buffer all records; write flat JSON array after scan completes. |
|
467
|
2
1. runWithScanRun : removed conditional - replaced equality check with true → KILLED
2. runWithScanRun : removed conditional - replaced equality check with false → KILLED
|
if (cliConfig.outputMode() == OutputMode.JSON) { |
|
468
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
|
return new JsonCommand(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
469
|
|
pluginLoader, scanOrchestrator).execute(out); |
|
470
|
|
} |
|
471
|
|
|
|
472
|
|
// GitHub Annotations mode: emit ::notice/::warning workflow commands. |
|
473
|
2
1. runWithScanRun : removed conditional - replaced equality check with false → KILLED
2. runWithScanRun : removed conditional - replaced equality check with true → KILLED
|
if (cliConfig.outputMode() == OutputMode.GITHUB_ANNOTATIONS) { |
|
474
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
|
return new GitHubAnnotationsCommand(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
475
|
|
scanOrchestrator).execute(out); |
|
476
|
|
} |
|
477
|
|
|
|
478
|
|
// CSV / PLAIN mode: emit incrementally (default). |
|
479
|
1
1. runWithScanRun : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
return new ScanCommand(cliConfig, discoveryConfig, aiEngine, override, aiCache, |
|
480
|
|
pluginLoader, scanOrchestrator).execute(out); |
|
481
|
|
} |
|
482
|
|
|
|
483
|
|
/** |
|
484
|
|
* Parses the {@code -evidence-pack} framework token, assembles |
|
485
|
|
* {@link EvidencePackOptions}, runs the {@link EvidencePackCommand}, and |
|
486
|
|
* prints a one-line summary to {@code stderr}. The signing key is read from |
|
487
|
|
* a ZeroEcho keyring file (a plaintext {@code KeyringStore}); ZeroEcho |
|
488
|
|
* keyrings are not password-protected, so no password is collected. |
|
489
|
|
* |
|
490
|
|
* @param cliConfig parsed CLI configuration |
|
491
|
|
* @param discoveryConfig discovery configuration forwarded to providers |
|
492
|
|
* @param aiEngine AI engine, or {@code null} |
|
493
|
|
* @param override classification override |
|
494
|
|
* @param aiCache AI result cache |
|
495
|
|
* @param scanOrchestrator shared scan orchestrator |
|
496
|
|
* @return exit code propagated from {@link EvidencePackCommand#execute()} |
|
497
|
|
* or {@value #EXIT_BAD_FRAMEWORK} when the framework token is invalid |
|
498
|
|
* @throws IOException if the underlying scan or I/O fails |
|
499
|
|
*/ |
|
500
|
|
private static int dispatchEvidencePack(CliConfig cliConfig, TestDiscoveryConfig discoveryConfig, |
|
501
|
|
AiSuggestionEngine aiEngine, ClassificationOverride override, AiResultCache aiCache, |
|
502
|
|
ScanOrchestrator scanOrchestrator) throws IOException { |
|
503
|
|
EvidenceFramework framework; |
|
504
|
|
try { |
|
505
|
|
framework = EvidenceFramework.parse(cliConfig.evidencePackFramework()); |
|
506
|
|
} catch (IllegalArgumentException e) { |
|
507
|
1
1. dispatchEvidencePack : removed call to java/io/PrintStream::println → SURVIVED
|
System.err.println(e.getMessage()); |
|
508
|
1
1. dispatchEvidencePack : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::dispatchEvidencePack → KILLED
|
return EXIT_BAD_FRAMEWORK; |
|
509
|
|
} |
|
510
|
|
EvidencePackOptions packOptions = new EvidencePackOptions( |
|
511
|
|
framework, |
|
512
|
|
cliConfig.evidencePackDir(), |
|
513
|
|
cliConfig.evidencePackOverwrite(), |
|
514
|
|
cliConfig.evidencePackKeyringFile(), |
|
515
|
|
cliConfig.evidencePackKeyringEnv(), |
|
516
|
|
cliConfig.evidencePackKeyAlias(), |
|
517
|
|
cliConfig.evidencePackSignAlgo()); |
|
518
|
|
EvidencePackCommand command = new EvidencePackCommand(cliConfig, packOptions, discoveryConfig, |
|
519
|
|
aiEngine, override, aiCache, scanOrchestrator); |
|
520
|
|
int exit = command.execute(); |
|
521
|
1
1. dispatchEvidencePack : removed call to org/egothor/methodatlas/MethodAtlasApp::announcePack → SURVIVED
|
announcePack(command, packOptions); |
|
522
|
1
1. dispatchEvidencePack : replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::dispatchEvidencePack → SURVIVED
|
return exit; |
|
523
|
|
} |
|
524
|
|
|
|
525
|
|
/** |
|
526
|
|
* Prints the one-line outcome banner that documents how the pack was |
|
527
|
|
* produced. Always written to {@code System.err} so the stdout stream |
|
528
|
|
* remains usable for piping. |
|
529
|
|
* |
|
530
|
|
* @param command executed command, used to retrieve the absolute path |
|
531
|
|
* @param packOptions options driving the command |
|
532
|
|
*/ |
|
533
|
|
private static void announcePack(EvidencePackCommand command, EvidencePackOptions packOptions) { |
|
534
|
|
String absolute = command.outputDir().toString(); |
|
535
|
4
1. announcePack : removed conditional - replaced equality check with false → SURVIVED
2. announcePack : removed conditional - replaced equality check with true → SURVIVED
3. announcePack : removed conditional - replaced equality check with true → SURVIVED
4. announcePack : removed conditional - replaced equality check with false → SURVIVED
|
if (packOptions.keyringFile() == null && packOptions.keyringEnv() == null) { |
|
536
|
1
1. announcePack : removed call to java/io/PrintStream::println → SURVIVED
|
System.err.println("evidence pack written to " + absolute |
|
537
|
|
+ " (unsigned — no keyring supplied)"); |
|
538
|
|
return; |
|
539
|
|
} |
|
540
|
2
1. announcePack : removed conditional - replaced equality check with true → SURVIVED
2. announcePack : removed conditional - replaced equality check with false → SURVIVED
|
String algo = packOptions.signatureAlgorithm() != null |
|
541
|
|
? packOptions.signatureAlgorithm() : "Ed25519 (from keyring)"; |
|
542
|
|
Path signed = command.outputDir().resolve("manifest.sha256.signed"); |
|
543
|
2
1. announcePack : removed conditional - replaced equality check with true → SURVIVED
2. announcePack : removed conditional - replaced equality check with false → SURVIVED
|
if (Files.exists(signed)) { |
|
544
|
1
1. announcePack : removed call to java/io/PrintStream::println → SURVIVED
|
System.err.println("evidence pack written to " + absolute |
|
545
|
|
+ " (signed: " + algo + ")"); |
|
546
|
|
} else { |
|
547
|
1
1. announcePack : removed call to java/io/PrintStream::println → SURVIVED
|
System.err.println("evidence pack written to " + absolute |
|
548
|
|
+ " (WARNING: signing failed — check log)"); |
|
549
|
|
} |
|
550
|
|
} |
|
551
|
|
} |
| | Mutations |
| 236 |
|
1.1 Location : close Killed by : none removed call to org/egothor/methodatlas/MethodAtlasApp$1::flush → NO_COVERAGE
|
| 241 |
|
1.1 Location : main Killed by : none removed conditional - replaced equality check with false → NO_COVERAGE
2.2 Location : main Killed by : none removed conditional - replaced equality check with true → NO_COVERAGE
|
| 242 |
|
1.1 Location : main Killed by : none removed call to java/lang/System::exit → NO_COVERAGE
|
| 274 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:help_longAndShortAliasesAccepted()] removed conditional - replaced equality check with false → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
3.3 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
4.4 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
5.5 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:help_longAndShortAliasesAccepted()] removed conditional - replaced equality check with true → KILLED
6.6 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:help_printsUsageAndReferenceUrl(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 275 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:help_printsUsageAndReferenceUrl(java.nio.file.Path)] removed call to org/egothor/methodatlas/Usage::print → KILLED
|
| 283 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)] removed conditional - replaced comparison check with false → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced comparison check with true → KILLED
3.3 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] changed conditional boundary → KILLED
|
| 284 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 285 |
|
1.1 Location : run Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)]
2.2 Location : run Killed by : none removed conditional - replaced comparison check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)]
3.3 Location : run Killed by : org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)] removed conditional - replaced comparison check with true → KILLED
4.4 Location : run Killed by : none Replaced integer addition with subtraction → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)]
|
| 289 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)] Replaced integer addition with subtraction → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)] Replaced integer addition with subtraction → KILLED
3.3 Location : run Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.DeltaReportTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.DeltaReportTest]/[method:app_diffFlag_producesReport(java.nio.file.Path)]
|
| 291 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 292 |
|
1.1 Location : run Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 294 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : run Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
|
| 295 |
|
1.1 Location : run Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → NO_COVERAGE
|
| 300 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withoutMapping_exitsWithCodeTwoAndPrintsHelpfulError(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 303 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withoutMapping_exitsWithCodeTwoAndPrintsHelpfulError(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
| 312 |
|
1.1 Location : run Killed by : none removed call to java/io/PrintStream::println → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withMissingMapping_exitsWithCodeTwo(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withMalformedMapping_exitsWithCodeTwo(java.nio.file.Path)]
|
| 313 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withMissingMapping_exitsWithCodeTwo(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
| 324 |
|
1.1 Location : run Killed by : none removed call to org/egothor/methodatlas/ScanRunContext::set → SURVIVED
Covering tests
|
| 327 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:absentOverrideFile_omitsOverrideField(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:absentFlag_doesNotWriteReceipt(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 328 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:absentOverrideFile_omitsOverrideField(java.nio.file.Path)] removed call to org/egothor/methodatlas/MethodAtlasApp::emitReceipt → KILLED
|
| 330 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 331 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)] removed call to org/egothor/methodatlas/MethodAtlasApp::writeCoverage → KILLED
|
| 333 |
|
1.1 Location : run Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:unknownFrameworkExitsWithCodeTwo(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::run → KILLED
|
| 335 |
|
1.1 Location : run Killed by : none removed call to org/egothor/methodatlas/ScanRunContext::clear → SURVIVED
Covering tests
|
| 349 |
|
1.1 Location : prepareCoverageHandle Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : prepareCoverageHandle Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_withMissingMapping_exitsWithCodeTwo(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 352 |
|
1.1 Location : prepareCoverageHandle Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)] replaced return value with null for org/egothor/methodatlas/MethodAtlasApp::prepareCoverageHandle → KILLED
|
| 365 |
|
1.1 Location : writeCoverage Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:accessControlAnnotation_mapsToAsvs4Dot1Dot1(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_writesReportToCustomPath(java.nio.file.Path)]
2.2 Location : writeCoverage Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:accessControlAnnotation_mapsToAsvs4Dot1Dot1(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_writesReportToCustomPath(java.nio.file.Path)]
|
| 366 |
|
1.1 Location : writeCoverage Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:accessControlAnnotation_mapsToAsvs4Dot1Dot1(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_writesReportToCustomPath(java.nio.file.Path)]
2.2 Location : writeCoverage Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 370 |
|
1.1 Location : writeCoverage Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:coveragePercent_isInClosedZeroToHundredRange(java.nio.file.Path)] removed call to org/egothor/methodatlas/coverage/CoverageFacade$Handle::write → KILLED
|
| 394 |
|
1.1 Location : emitReceipt Killed by : org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:configHash_matchesCanonicalReDerivation(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : emitReceipt Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:absentOverrideFile_omitsOverrideField(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:flagWritesReceiptToCustomPath(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:defaultReceiptPath_isHonoured(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:configHash_matchesCanonicalReDerivation(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:overrideFile_isCapturedInReceipt(java.nio.file.Path)]
|
| 397 |
|
1.1 Location : emitReceipt Killed by : org.egothor.methodatlas.MethodAtlasAppReceiptTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppReceiptTest]/[method:absentOverrideFile_omitsOverrideField(java.nio.file.Path)] removed call to org/egothor/methodatlas/receipt/ReceiptFacade::emit → KILLED
|
| 422 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:accessControlAnnotation_mapsToAsvs4Dot1Dot1(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 428 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppScanCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppScanCoverageTest]/[method:manualPrepare_classWithNoTestMethods_writesNoWorkFiles(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 429 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppScanCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppScanCoverageTest]/[method:manualPrepare_unparseableFile_returnsExitCode1(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
| 434 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppManualTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppManualTest]/[method:manualConsume_emitsEmptyAiColumnsForClassesWithoutResponseFile(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 441 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsFromCsvTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsFromCsvTest]/[method:applyTagsFromCsv_mismatchLimitReturnsOne(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 442 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsFromCsvTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsFromCsvTest]/[method:applyTagsFromCsv_mismatchLimitReturnsOne(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
| 446 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryLineAlwaysEmitted(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 447 |
|
1.1 Location : runWithScanRun Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest]/[method:applyTags_javaOnly_noSkipCountInSummary(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_exitCode0WhenNoErrors(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryLineAlwaysEmitted(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_noAi_noFilesModified(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_noImportsAddedWhenNothingAnnotated(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_nonSecurityMethod_notAnnotated(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_existingAnnotationsNotDuplicated(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsDisplayNameImport(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryCountsMatchAnnotationsAdded(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_withAi_annotatesSecurityRelevantMethod(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest]/[method:applyTags_mixedJavaAndGo_javaPatchedAndGoSkipped(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsUnsupportedLanguageTest]/[method:applyTags_goOnly_skippedWithDiagnosticAndExit0(java.nio.file.Path)]
|
| 455 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:existingDirectoryWithoutOverwriteFlagIsAnError(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 456 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:unknownFrameworkExitsWithCodeTwo(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
| 461 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_outputIsNotCsvHeader(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 462 |
|
1.1 Location : runWithScanRun Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_outputIsNotCsvHeader(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_toolDriverNameIsMethodAtlas(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_emitsValidSarifDocument(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:cliFlag_overridesConfigFileOutputMode(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:configFile_overridesOutputMode_toSarif(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_allMethodsUseLevelNone_whenAiDisabled(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_resultHasPhysicalAndLogicalLocation(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppSarifTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppSarifTest]/[method:sarifMode_emitsOneResultPerTestMethod(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppContentHashTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppContentHashTest]/[method:sarifMode_contentHashPresentAndValid_whenEnabled(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppContentHashTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppContentHashTest]/[method:sarifMode_contentHashAbsent_byDefault(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppContentHashTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppContentHashTest]/[method:sarifMode_methodsInSameClass_shareIdenticalHashInSarif(java.nio.file.Path)]
|
| 467 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_producesValidArray(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
|
| 468 |
|
1.1 Location : runWithScanRun Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_producesValidArray(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:minConfidence_noEffectWithoutAiConfidence(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_noAi_omitsAiFields(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_recordsHaveRequiredFields(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_withAiAndConfidence_confidenceIsNumber(java.nio.file.Path)]
- org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:jsonMode_withAi_aiTagsIsArray(java.nio.file.Path)]
|
| 473 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emitsAnnotationsForSecurityMethods(java.nio.file.Path)] removed conditional - replaced equality check with false → KILLED
2.2 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppTest]/[method:testAnnotation_customAnnotationIsRecognised(java.nio.file.Path)] removed conditional - replaced equality check with true → KILLED
|
| 474 |
|
1.1 Location : runWithScanRun Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emptyDirectoryProducesNoOutput(java.nio.file.Path)]
- org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emitsAnnotationsForSecurityMethods(java.nio.file.Path)]
|
| 479 |
|
1.1 Location : runWithScanRun Killed by : org.egothor.methodatlas.MethodAtlasAppScanCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppScanCoverageTest]/[method:csvMode_unparseableFile_returnsExitCode1(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::runWithScanRun → KILLED
|
| 507 |
|
1.1 Location : dispatchEvidencePack Killed by : none removed call to java/io/PrintStream::println → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:unknownFrameworkExitsWithCodeTwo(java.nio.file.Path)]
|
| 508 |
|
1.1 Location : dispatchEvidencePack Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:unknownFrameworkExitsWithCodeTwo(java.nio.file.Path)] replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::dispatchEvidencePack → KILLED
|
| 521 |
|
1.1 Location : dispatchEvidencePack Killed by : none removed call to org/egothor/methodatlas/MethodAtlasApp::announcePack → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 522 |
|
1.1 Location : dispatchEvidencePack Killed by : none replaced int return with 0 for org/egothor/methodatlas/MethodAtlasApp::dispatchEvidencePack → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 535 |
|
1.1 Location : announcePack Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
2.2 Location : announcePack Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
3.3 Location : announcePack Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
4.4 Location : announcePack Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 536 |
|
1.1 Location : announcePack Killed by : none removed call to java/io/PrintStream::println → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:caseInsensitiveFrameworkTokenIsAccepted(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:manifestHasOneLinePerArtefactWith64HexDigest(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:writesExpectedArtefactsForUnsignedAsvsPack(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:packMetaJsonRecordsFrameworkAndUnsignedFlag(java.nio.file.Path)]
|
| 540 |
|
1.1 Location : announcePack Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
2.2 Location : announcePack Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 543 |
|
1.1 Location : announcePack Killed by : none removed conditional - replaced equality check with true → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
2.2 Location : announcePack Killed by : none removed conditional - replaced equality check with false → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|
| 544 |
|
1.1 Location : announcePack Killed by : none removed call to java/io/PrintStream::println → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signsManifestWithGeneratedEd25519Keyring(java.nio.file.Path)]
|
| 547 |
|
1.1 Location : announcePack Killed by : none removed call to java/io/PrintStream::println → SURVIVED
Covering tests
Covered by tests:
- org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:signingFailureLeavesAConsistentUnsignedPack(java.nio.file.Path)]
|