ScanOrchestrator.java

1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2026 Egothor
3
// Copyright 2026 Accenture
4
package org.egothor.methodatlas.command;
5
6
import java.io.IOException;
7
import java.nio.file.Path;
8
import java.util.ArrayList;
9
import java.util.LinkedHashMap;
10
import java.util.List;
11
import java.util.Map;
12
import java.util.Optional;
13
import java.util.logging.Level;
14
import java.util.logging.Logger;
15
import java.util.stream.Collectors;
16
17
import org.egothor.methodatlas.AiCacheEntry;
18
import org.egothor.methodatlas.AiCacheStore;
19
import org.egothor.methodatlas.AiResultCache;
20
import org.egothor.methodatlas.emit.ClassificationOverride;
21
import org.egothor.methodatlas.CliConfig;
22
import org.egothor.methodatlas.emit.CompositeTestMethodSink;
23
import org.egothor.methodatlas.emit.TestMethodSink;
24
import org.egothor.methodatlas.ai.AiClassSuggestion;
25
import org.egothor.methodatlas.ai.AiMethodSuggestion;
26
import org.egothor.methodatlas.ai.AiOptions;
27
import org.egothor.methodatlas.ai.AiSuggestionEngine;
28
import org.egothor.methodatlas.ai.AiSuggestionException;
29
import org.egothor.methodatlas.ai.CredentialTriageVerdict;
30
import org.egothor.methodatlas.ai.PromptBuilder;
31
import org.egothor.methodatlas.ai.SuggestionLookup;
32
import org.egothor.methodatlas.api.DiscoveredMethod;
33
import org.egothor.methodatlas.api.TestDiscovery;
34
import org.egothor.methodatlas.api.TestDiscoveryConfig;
35
36
/**
37
 * Orchestrates the scan-and-emit loop that every command mode is built around.
38
 *
39
 * <p>
40
 * Each {@link Command} mode varies in three places — output format, per-record
41
 * sink behaviour, and whether records stream or buffer — but they all share
42
 * the same core sequence:
43
 * </p>
44
 * <ol>
45
 *   <li>Load all configured {@link TestDiscovery} providers.</li>
46
 *   <li>For each scan root, run every provider, merge their results, and
47
 *       group methods by class.</li>
48
 *   <li>For each class, optionally consult the AI engine through a layered
49
 *       cache + override lookup.</li>
50
 *   <li>Forward each method record to the supplied sink.</li>
51
 *   <li>Close all providers.</li>
52
 * </ol>
53
 *
54
 * <p>
55
 * This class owns that sequence. Commands compose it with a
56
 * {@link PluginLoader} (passed in at construction) and configure the
57
 * per-record sink, AI runtime, and content-hash policy at call time.
58
 * </p>
59
 *
60
 * <h2>API shape</h2>
61
 *
62
 * <p>
63
 * Two entry points serve the two common patterns:
64
 * </p>
65
 * <ul>
66
 *   <li>{@link #scan} manages the provider lifecycle internally; it is the
67
 *       right call for SARIF, JSON, and GitHub-annotation modes that buffer
68
 *       or emit unconditionally.</li>
69
 *   <li>{@link #runDiscovery} processes a single root against pre-loaded
70
 *       providers; it is the right call for CSV and plain-text modes that
71
 *       compute per-root metadata (such as the {@code source_root} column)
72
 *       before forwarding records.</li>
73
 * </ul>
74
 *
75
 * <p>
76
 * The apply-tags flow has its own shape: {@link #collectMethodsByFile}
77
 * groups discovered methods by source file (the caller owns the provider
78
 * lifecycle so it can read each provider's
79
 * {@link TestDiscovery#hadErrors()} afterwards), and
80
 * {@link #gatherAiSuggestionsForFile} resolves AI suggestions for one
81
 * file at a time.
82
 * </p>
83
 *
84
 * <h2>Thread safety</h2>
85
 *
86
 * <p>
87
 * This class is thread-safe. The injected {@link PluginLoader} is
88
 * thread-safe and {@link java.util.ServiceLoader} resolution is
89
 * idempotent; nothing else is shared between calls.
90
 * </p>
91
 *
92
 * @see PluginLoader
93
 * @see AiRuntime
94
 * @see Command
95
 * @since 1.0.0
96
 */
97
public final class ScanOrchestrator {
98
99
    private static final Logger LOG = Logger.getLogger(ScanOrchestrator.class.getName());
100
101
    private final PluginLoader pluginLoader;
102
103
    /**
104
     * Optional secondary sink that observes every record alongside the
105
     * command's primary sink. {@code null} means no fan-out.
106
     */
107
    private final TestMethodSink extraSink;
108
109
    /**
110
     * Creates a new orchestrator with no extra sink.
111
     *
112
     * @param pluginLoader plugin loader used by {@link #scan} and
113
     *                     {@link #collectMethodsByFile}; must not be
114
     *                     {@code null}
115
     */
116
    public ScanOrchestrator(PluginLoader pluginLoader) {
117
        this(pluginLoader, Optional.empty());
118
    }
119
120
    /**
121
     * Creates a new orchestrator that fans out every record to {@code extraSink}
122
     * in addition to the command's primary sink.
123
     *
124
     * <p>
125
     * The extra sink, when present, is composed with the primary sink at the
126
     * {@link #runDiscovery} boundary so every command mode (SARIF, JSON, CSV,
127
     * GitHub annotations) sees the same fan-out automatically. When
128
     * {@code extraSink} is {@link Optional#empty()} the orchestrator behaves
129
     * identically to the legacy single-sink constructor.
130
     * </p>
131
     *
132
     * @param pluginLoader plugin loader used by {@link #scan} and
133
     *                     {@link #collectMethodsByFile}; must not be
134
     *                     {@code null}
135
     * @param extraSink    optional secondary sink invoked in addition to the
136
     *                     command-supplied primary sink; must not be
137
     *                     {@code null} (use {@link Optional#empty()})
138
     */
139
    public ScanOrchestrator(PluginLoader pluginLoader, Optional<TestMethodSink> extraSink) {
140
        this.pluginLoader = pluginLoader;
141
        this.extraSink = extraSink.orElse(null);
142
    }
143
144
    /**
145
     * Scans every configured root, forwarding each discovered test method to
146
     * {@code sink}. Loads and closes the {@link TestDiscovery} providers
147
     * internally so callers do not need to manage the lifecycle.
148
     *
149
     * <p>
150
     * When {@code secretCtx} is supplied, credential triage is folded into each
151
     * per-class AI call so the class source is sent to the provider once for both
152
     * classification and triage; pass {@code null} for classification only.
153
     * </p>
154
     *
155
     * @param roots           source roots to scan; must not be {@code null}
156
     * @param cliConfig       full parsed CLI configuration
157
     * @param discoveryConfig discovery configuration forwarded to providers
158
     * @param aiEngine        AI engine providing suggestions; may be
159
     *                        {@code null} when AI is disabled
160
     * @param sink            receiver of discovered test method records
161
     * @param override        human classification overrides
162
     * @param aiCache         AI result cache
163
     * @param secretCtx       credential-triage context, or {@code null} to disable
164
     *                        the fold (classification only)
165
     * @return {@code 0} if all files were processed successfully, {@code 1}
166
     *         if any file produced a parse or processing error
167
     * @throws IOException if traversing a file tree fails
168
     * @since 1.0.0
169
     */
170
    public int scan(List<Path> roots, CliConfig cliConfig, TestDiscoveryConfig discoveryConfig,
171
            AiSuggestionEngine aiEngine, TestMethodSink sink,
172
            ClassificationOverride override, AiResultCache aiCache,
173
            CredentialTriageContext secretCtx) throws IOException {
174
        List<TestDiscovery> providers = pluginLoader.loadProviders(discoveryConfig);
175
        boolean hadErrors = false;
176
        // Accumulates one cache entry per processed class across all roots; written
177
        // once at the end when -ai-cache-out is set.
178
        Map<String, AiCacheEntry> cacheAll =
179 2 1. scan : removed conditional - replaced equality check with false → SURVIVED
2. scan : removed conditional - replaced equality check with true → KILLED
                cliConfig.aiCacheOut() != null ? new LinkedHashMap<>() : null;
180
        try {
181
            for (Path root : roots) {
182
                DiscoveryResult result = runDiscoveryInternal(root, providers, cliConfig.aiOptions(),
183
                        aiEngine, sink, cliConfig.contentHash(), override, aiCache, secretCtx);
184 2 1. scan : removed conditional - replaced equality check with false → SURVIVED
2. scan : removed conditional - replaced equality check with true → KILLED
                if (result.hadErrors()) {
185
                    hadErrors = true;
186
                }
187 2 1. scan : removed conditional - replaced equality check with false → SURVIVED
2. scan : removed conditional - replaced equality check with true → KILLED
                if (cacheAll != null) {
188 1 1. scan : removed call to java/util/Map::putAll → NO_COVERAGE
                    cacheAll.putAll(result.cacheEntries());
189
                }
190
            }
191
        } finally {
192 1 1. scan : removed call to org/egothor/methodatlas/command/PluginLoader::closeAll → SURVIVED
            pluginLoader.closeAll(providers);
193
        }
194 2 1. scan : removed conditional - replaced equality check with false → SURVIVED
2. scan : removed conditional - replaced equality check with true → KILLED
        if (cacheAll != null) {
195 1 1. scan : removed call to org/egothor/methodatlas/AiCacheStore::write → NO_COVERAGE
            AiCacheStore.write(cliConfig.aiCacheOut(), cacheAll.values());
196
        }
197 2 1. scan : removed conditional - replaced equality check with false → SURVIVED
2. scan : removed conditional - replaced equality check with true → KILLED
        return hadErrors ? 1 : 0;
198
    }
199
200
    /**
201
     * Runs all configured {@link TestDiscovery} providers on {@code root},
202
     * merges their results, orchestrates AI analysis per class, and forwards
203
     * each method record to {@code sink}.
204
     *
205
     * <p>
206
     * Providers are passed in pre-loaded; callers manage the lifecycle
207
     * (typically through {@link PluginLoader#closeAll(List)} in a
208
     * {@code finally} block) so that they can share one provider list across
209
     * multiple roots while still computing per-root metadata before each
210
     * call.
211
     * </p>
212
     *
213
     * <p>
214
     * When {@code secretCtx} is supplied, credential triage is folded into each
215
     * per-class AI call; pass {@code null} for classification only.
216
     * </p>
217
     *
218
     * @param root               directory to scan
219
     * @param providers          list of pre-configured discovery providers
220
     * @param aiOptions          AI configuration for the current run
221
     * @param aiEngine           AI engine, or {@code null} when AI is disabled
222
     * @param sink               receiver of discovered test method records
223
     * @param contentHashEnabled whether to include the class content hash in
224
     *                           emitted records
225
     * @param override           human classification overrides
226
     * @param aiCache            AI result cache
227
     * @param secretCtx          credential-triage context, or {@code null} to disable the fold
228
     * @return {@code true} if any provider encountered a parse or processing
229
     *         error
230
     * @throws IOException if traversing the file tree fails
231
     * @since 1.0.0
232
     */
233
    public boolean runDiscovery(Path root, List<TestDiscovery> providers,
234
            AiOptions aiOptions, AiSuggestionEngine aiEngine, TestMethodSink sink,
235
            boolean contentHashEnabled, ClassificationOverride override,
236
            AiResultCache aiCache, CredentialTriageContext secretCtx) throws IOException {
237 2 1. runDiscovery : replaced boolean return with true for org/egothor/methodatlas/command/ScanOrchestrator::runDiscovery → KILLED
2. runDiscovery : replaced boolean return with false for org/egothor/methodatlas/command/ScanOrchestrator::runDiscovery → KILLED
        return runDiscoveryInternal(root, providers, aiOptions, aiEngine, sink, contentHashEnabled,
238
                override, aiCache, secretCtx).hadErrors();
239
    }
240
241
    /**
242
     * Body of {@link #runDiscovery(Path, List, AiOptions, AiSuggestionEngine, TestMethodSink,
243
     * boolean, ClassificationOverride, AiResultCache, CredentialTriageContext)} that also returns one
244
     * {@link AiCacheEntry} per processed class (cache hits preserved, misses freshly computed) so the
245
     * caller can persist the unified AI result cache.
246
     *
247
     * @return the error flag plus the per-class cache entries keyed by content hash
248
     */
249
    @SuppressWarnings("PMD.CloseResource") // providers are owned by the caller; this method does not close them
250
    private DiscoveryResult runDiscoveryInternal(Path root, List<TestDiscovery> providers,
251
            AiOptions aiOptions, AiSuggestionEngine aiEngine, TestMethodSink sink,
252
            boolean contentHashEnabled, ClassificationOverride override,
253
            AiResultCache aiCache, CredentialTriageContext secretCtx) throws IOException {
254
255
        TestMethodSink effectiveSink = wrapWithExtraSink(sink);
256
        List<DiscoveredMethod> methods = new ArrayList<>();
257
        boolean hadErrors = false;
258
        for (TestDiscovery provider : providers) {
259 1 1. runDiscoveryInternal : removed call to java/util/stream/Stream::forEach → KILLED
            provider.discover(root).forEach(methods::add);
260 2 1. runDiscoveryInternal : removed conditional - replaced equality check with true → KILLED
2. runDiscoveryInternal : removed conditional - replaced equality check with false → KILLED
            if (provider.hadErrors()) {
261
                hadErrors = true;
262
            }
263
        }
264
265
        Map<String, List<DiscoveredMethod>> byClass = methods.stream()
266
                .collect(Collectors.groupingBy(DiscoveredMethod::fqcn,
267
                        LinkedHashMap::new, Collectors.toList()));
268
269
        AiRuntime ai = new AiRuntime(aiOptions, aiEngine, override, aiCache);
270
        // The prompt-catalogue signature gates cache reuse and tags written entries;
271
        // only meaningful when AI is enabled.
272 2 1. runDiscoveryInternal : removed conditional - replaced equality check with false → SURVIVED
2. runDiscoveryInternal : removed conditional - replaced equality check with true → KILLED
        String promptSignature = aiEngine == null ? null : aiOptions.promptTemplates().signature();
273
274
        Map<String, AiCacheEntry> cacheEntries = new LinkedHashMap<>();
275
        for (Map.Entry<String, List<DiscoveredMethod>> entry : byClass.entrySet()) {
276 1 1. runDiscoveryInternal : removed call to org/egothor/methodatlas/command/ScanOrchestrator::processClass → KILLED
            processClass(entry, ai, promptSignature, contentHashEnabled, secretCtx,
277
                    effectiveSink, cacheEntries);
278
        }
279
280 1 1. runDiscoveryInternal : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::runDiscoveryInternal → KILLED
        return new DiscoveryResult(hadErrors, cacheEntries);
281
    }
282
283
    /**
284
     * Classifies one class (consulting the cache), feeds its methods to {@code effectiveSink}, and —
285
     * when AI produced a cacheable answer with a content hash — records a cache entry.
286
     *
287
     * @param entry           one class's discovered methods, keyed by FQCN
288
     * @param ai              AI runtime (engine, override, cache)
289
     * @param promptSignature current prompt-catalogue signature, or {@code null} when AI is disabled
290
     * @param contentHashEnabled whether the emitted records carry the content hash
291
     * @param secretCtx       credential-triage context, or {@code null}
292
     * @param effectiveSink   sink receiving the per-method records
293
     * @param cacheEntries    accumulator to record the cacheable answer into, keyed by content hash
294
     * @throws IOException if the sink fails to record a method
295
     */
296
    private void processClass(Map.Entry<String, List<DiscoveredMethod>> entry, AiRuntime ai,
297
            String promptSignature, boolean contentHashEnabled, CredentialTriageContext secretCtx,
298
            TestMethodSink effectiveSink, Map<String, AiCacheEntry> cacheEntries) throws IOException {
299
        String fqcn = entry.getKey();
300
        List<DiscoveredMethod> classMethods = entry.getValue();
301
302
        // groupingBy never produces an empty value list, so the first method is always
303
        // present; it is the representative carrying the class-level fields (source
304
        // content and file stem are identical across a class's methods).
305
        DiscoveredMethod representative = classMethods.get(0);
306
        String classSource = representative.sourceContent().get().orElse(null);
307
308
        // The content hash is needed to read the cache, to emit the hash column, and to
309
        // key a written cache entry — so compute it whenever any of those apply.
310 6 1. processClass : removed conditional - replaced equality check with false → SURVIVED
2. processClass : removed conditional - replaced equality check with true → SURVIVED
3. processClass : removed conditional - replaced equality check with false → SURVIVED
4. processClass : removed conditional - replaced equality check with true → SURVIVED
5. processClass : removed conditional - replaced equality check with true → SURVIVED
6. processClass : removed conditional - replaced equality check with false → KILLED
        String lookupHash = (contentHashEnabled || ai.cache().isActive() || ai.engine() != null)
311 2 1. processClass : removed conditional - replaced equality check with false → SURVIVED
2. processClass : removed conditional - replaced equality check with true → KILLED
                && classSource != null
312
                ? ContentHasher.hashClass(classSource) : null;
313 2 1. processClass : removed conditional - replaced equality check with true → SURVIVED
2. processClass : removed conditional - replaced equality check with false → KILLED
        String outputHash = contentHashEnabled ? lookupHash : null;
314
315
        String fileStem = representative.fileStem();
316
        List<String> methodNames = classMethods.stream().map(DiscoveredMethod::method).toList();
317
        List<PromptBuilder.TargetMethod> targetMethods = classMethods.stream()
318
                .map(ScanOrchestrator::toTargetMethod)
319
                .toList();
320
321
        Resolved resolved = resolveSuggestionLookup(fileStem, fqcn, classSource, methodNames,
322
                targetMethods, ai, lookupHash, promptSignature, secretCtx);
323
        SuggestionLookup suggestions = resolved.lookup();
324
325
        for (DiscoveredMethod m : classMethods) {
326 1 1. processClass : removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED
            effectiveSink.record(m.fqcn(), m.method(), m.beginLine(), m.loc(), outputHash,
327
                    m.tags(), m.displayName(),
328
                    suggestions.find(m.method()).orElse(null));
329
        }
330
331 4 1. processClass : removed conditional - replaced equality check with false → SURVIVED
2. processClass : removed conditional - replaced equality check with true → SURVIVED
3. processClass : removed conditional - replaced equality check with false → SURVIVED
4. processClass : removed conditional - replaced equality check with true → SURVIVED
        if (resolved.cacheable() != null && lookupHash != null) {
332
            cacheEntries.put(lookupHash, new AiCacheEntry(lookupHash, promptSignature, resolved.cacheable()));
333
        }
334
    }
335
336
    /**
337
     * Wraps {@code primary} with {@link CompositeTestMethodSink} when an
338
     * extra sink was supplied to the constructor; returns {@code primary}
339
     * unchanged otherwise.
340
     *
341
     * @param primary command-supplied primary sink
342
     * @return effective sink to feed during this discovery pass
343
     */
344
    private TestMethodSink wrapWithExtraSink(TestMethodSink primary) {
345 2 1. wrapWithExtraSink : removed conditional - replaced equality check with false → KILLED
2. wrapWithExtraSink : removed conditional - replaced equality check with true → KILLED
        if (extraSink == null) {
346 1 1. wrapWithExtraSink : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::wrapWithExtraSink → KILLED
            return primary;
347
        }
348 1 1. wrapWithExtraSink : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::wrapWithExtraSink → KILLED
        return new CompositeTestMethodSink(primary, extraSink);
349
    }
350
351
    /**
352
     * Collects all discovered methods from every configured root, keyed by
353
     * source-file path. Methods whose {@link DiscoveredMethod#filePath()} is
354
     * {@code null} are silently skipped.
355
     *
356
     * <p>
357
     * Providers are passed in pre-loaded so the caller can read each
358
     * provider's {@link TestDiscovery#hadErrors()} after the call and decide
359
     * how to propagate the exit code; the caller also owns closing them.
360
     * </p>
361
     *
362
     * @param roots     scan roots; must not be {@code null}
363
     * @param providers configured and already-loaded discovery providers;
364
     *                  must not be {@code null}
365
     * @return mutable map from source-file path to the methods found in that
366
     *         file; insertion order matches discovery order
367
     * @throws IOException if directory traversal fails for any root
368
     */
369
    @SuppressWarnings({"PMD.AvoidInstantiatingObjectsInLoops",
370
            "PMD.CloseResource"}) // providers are owned by the caller
371
    public Map<Path, List<DiscoveredMethod>> collectMethodsByFile(
372
            List<Path> roots, List<TestDiscovery> providers) throws IOException {
373
        Map<Path, List<DiscoveredMethod>> byFile = new LinkedHashMap<>();
374
        for (Path root : roots) {
375
            for (TestDiscovery provider : providers) {
376 1 1. collectMethodsByFile : removed call to java/util/stream/Stream::forEach → KILLED
                provider.discover(root).forEach(m -> {
377 2 1. lambda$collectMethodsByFile$1 : removed conditional - replaced equality check with true → SURVIVED
2. lambda$collectMethodsByFile$1 : removed conditional - replaced equality check with false → KILLED
                    if (m.filePath() != null) {
378 1 1. lambda$collectMethodsByFile$0 : replaced return value with Collections.emptyList for org/egothor/methodatlas/command/ScanOrchestrator::lambda$collectMethodsByFile$0 → KILLED
                        byFile.computeIfAbsent(m.filePath(), k -> new ArrayList<>()).add(m);
379
                    }
380
                });
381
            }
382
        }
383 1 1. collectMethodsByFile : replaced return value with Collections.emptyMap for org/egothor/methodatlas/command/ScanOrchestrator::collectMethodsByFile → KILLED
        return byFile;
384
    }
385
386
    /**
387
     * Resolves AI security-classification suggestions for every class in
388
     * {@code byClass} and populates {@code tagsToApply} and
389
     * {@code displayNames} with the results for methods that are
390
     * security-relevant.
391
     *
392
     * <p>
393
     * A display-name suggestion is only placed into {@code displayNames}
394
     * when the discovered method has no existing {@code @DisplayName} in
395
     * source (i.e. {@link DiscoveredMethod#displayName()} returns
396
     * {@code null}). This prevents AI-generated names from overwriting
397
     * manually authored ones.
398
     * </p>
399
     *
400
     * @param byClass      discovered methods grouped by FQCN for one source file
401
     * @param ai           AI runtime carrying the engine, override, and cache
402
     * @param aiCache      AI result cache used to compute the content-hash lookup key
403
     * @param tagsToApply  output accumulator: method name to tag values to write
404
     * @param displayNames output accumulator: method name to display name to write
405
     * @since 1.0.0
406
     */
407
    public void gatherAiSuggestionsForFile(Map<String, List<DiscoveredMethod>> byClass,
408
            AiRuntime ai, AiResultCache aiCache,
409
            Map<String, List<String>> tagsToApply, Map<String, String> displayNames) {
410 2 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → SURVIVED
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → SURVIVED
        String promptSignature = ai.engine() == null ? null : ai.options().promptTemplates().signature();
411
        for (Map.Entry<String, List<DiscoveredMethod>> classEntry : byClass.entrySet()) {
412
            String fqcn = classEntry.getKey();
413
            List<DiscoveredMethod> classMethods = classEntry.getValue();
414
415
            // groupingBy never produces an empty value list; the first method is the
416
            // representative carrying the class-level fields (source content and file
417
            // stem are identical across a class's methods).
418
            DiscoveredMethod representative = classMethods.get(0);
419
            String classSource = representative.sourceContent().get().orElse(null);
420 4 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → NO_COVERAGE
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → NO_COVERAGE
3. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → SURVIVED
4. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → SURVIVED
            String lookupHash = aiCache.isActive() && classSource != null
421
                    ? ContentHasher.hashClass(classSource) : null;
422
            String fileStem = representative.fileStem();
423
            List<String> methodNames = classMethods.stream().map(DiscoveredMethod::method).toList();
424
            List<PromptBuilder.TargetMethod> targetMethods = classMethods.stream()
425
                    .map(ScanOrchestrator::toTargetMethod).toList();
426
427
            SuggestionLookup suggestions = resolveSuggestionLookup(
428
                    fileStem, fqcn, classSource, methodNames, targetMethods, ai, lookupHash,
429
                    promptSignature, null).lookup();
430
431
            for (DiscoveredMethod m : classMethods) {
432
                AiMethodSuggestion suggestion = suggestions.find(m.method()).orElse(null);
433 4 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → KILLED
3. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → KILLED
4. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
                if (suggestion == null || !suggestion.securityRelevant()) {
434
                    continue;
435
                }
436 4 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → SURVIVED
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → KILLED
3. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
4. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
                if (suggestion.displayName() != null && !suggestion.displayName().isBlank()
437 2 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → KILLED
                        && m.displayName() == null) {
438
                    displayNames.putIfAbsent(m.method(), suggestion.displayName());
439
                }
440 4 1. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → SURVIVED
2. gatherAiSuggestionsForFile : removed conditional - replaced equality check with true → SURVIVED
3. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
4. gatherAiSuggestionsForFile : removed conditional - replaced equality check with false → KILLED
                if (suggestion.tags() != null && !suggestion.tags().isEmpty()) {
441
                    tagsToApply.putIfAbsent(m.method(), suggestion.tags());
442
                }
443
            }
444
        }
445
    }
446
447
    /**
448
     * Wraps a {@link TestMethodSink} so that only records that pass all
449
     * active filters are forwarded to {@code delegate}.
450
     *
451
     * <p>
452
     * Two independent filters are supported and composed in order:
453
     * </p>
454
     * <ol>
455
     *   <li><b>Security-only filter</b> — when {@code securityOnly} is
456
     *       {@code true}, records whose {@link AiMethodSuggestion} is
457
     *       {@code null} or has {@code securityRelevant=false} are dropped.</li>
458
     *   <li><b>Confidence threshold filter</b> — when {@code confidenceEnabled}
459
     *       is {@code true} <em>and</em> {@code minConfidence > 0.0}, records
460
     *       whose {@link AiMethodSuggestion} is {@code null} or has a
461
     *       {@link AiMethodSuggestion#confidence()} below {@code minConfidence}
462
     *       are dropped. This filter is a no-op when {@code confidenceEnabled}
463
     *       is {@code false} because the confidence field is always
464
     *       {@code 0.0} when confidence scoring was not requested.</li>
465
     * </ol>
466
     *
467
     * <p>
468
     * When neither filter is active the original {@code delegate} is
469
     * returned unchanged (zero overhead).
470
     * </p>
471
     *
472
     * @param delegate          the underlying sink to forward matching
473
     *                          records to
474
     * @param securityOnly      whether to enable the security-relevance filter
475
     * @param minConfidence     minimum confidence score (inclusive) required
476
     *                          to pass the confidence filter; {@code 0.0}
477
     *                          disables it
478
     * @param confidenceEnabled whether confidence scoring was requested;
479
     *                          must be {@code true} for the confidence
480
     *                          filter to activate
481
     * @return filtered sink, or {@code delegate} unchanged when all filters
482
     *         are off
483
     * @since 1.0.0
484
     */
485
    public TestMethodSink filterSink(TestMethodSink delegate, boolean securityOnly,
486
            double minConfidence, boolean confidenceEnabled) {
487
        TestMethodSink sink = delegate;
488 2 1. filterSink : removed conditional - replaced equality check with false → KILLED
2. filterSink : removed conditional - replaced equality check with true → KILLED
        if (securityOnly) {
489
            final TestMethodSink next = sink;
490
            sink = (fqcn, method, beginLine, loc, contentHash, tags, displayName, suggestion) -> {
491 4 1. lambda$filterSink$2 : removed conditional - replaced equality check with true → KILLED
2. lambda$filterSink$2 : removed conditional - replaced equality check with false → KILLED
3. lambda$filterSink$2 : removed conditional - replaced equality check with true → KILLED
4. lambda$filterSink$2 : removed conditional - replaced equality check with false → KILLED
                if (suggestion != null && suggestion.securityRelevant()) {
492 1 1. lambda$filterSink$2 : removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED
                    next.record(fqcn, method, beginLine, loc, contentHash, tags, displayName, suggestion);
493
                }
494
            };
495
        }
496 5 1. filterSink : removed conditional - replaced comparison check with true → SURVIVED
2. filterSink : changed conditional boundary → SURVIVED
3. filterSink : removed conditional - replaced equality check with true → KILLED
4. filterSink : removed conditional - replaced equality check with false → KILLED
5. filterSink : removed conditional - replaced comparison check with false → KILLED
        if (confidenceEnabled && minConfidence > 0.0) {
497
            final double threshold = minConfidence;
498
            final TestMethodSink next = sink;
499
            sink = (fqcn, method, beginLine, loc, contentHash, tags, displayName, suggestion) -> {
500 5 1. lambda$filterSink$3 : changed conditional boundary → SURVIVED
2. lambda$filterSink$3 : removed conditional - replaced comparison check with false → KILLED
3. lambda$filterSink$3 : removed conditional - replaced comparison check with true → KILLED
4. lambda$filterSink$3 : removed conditional - replaced equality check with true → KILLED
5. lambda$filterSink$3 : removed conditional - replaced equality check with false → KILLED
                if (suggestion != null && suggestion.confidence() >= threshold) {
501 1 1. lambda$filterSink$3 : removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED
                    next.record(fqcn, method, beginLine, loc, contentHash, tags, displayName, suggestion);
502
                }
503
            };
504
        }
505 1 1. filterSink : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::filterSink → KILLED
        return sink;
506
    }
507
508
    // -------------------------------------------------------------------------
509
    // Static utilities
510
    // -------------------------------------------------------------------------
511
512
    /**
513
     * Converts a single discovered test method into a prompt target descriptor.
514
     *
515
     * <p>
516
     * Exposed publicly because {@link ManualPrepareCommand} also needs to
517
     * build prompt-target lists from discovered methods when writing manual
518
     * work files; the conversion logic must stay aligned across both call
519
     * sites to keep the prompt format consistent.
520
     * </p>
521
     *
522
     * @param m discovered test method; must not be {@code null}
523
     * @return corresponding prompt target descriptor; never {@code null}
524
     * @see PromptBuilder.TargetMethod
525
     */
526
    public static PromptBuilder.TargetMethod toTargetMethod(DiscoveredMethod m) {
527 1 1. toTargetMethod : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::toTargetMethod → KILLED
        return new PromptBuilder.TargetMethod(
528
                m.method(),
529 3 1. toTargetMethod : changed conditional boundary → KILLED
2. toTargetMethod : removed conditional - replaced comparison check with true → KILLED
3. toTargetMethod : removed conditional - replaced comparison check with false → KILLED
                m.beginLine() > 0 ? m.beginLine() : null,
530 3 1. toTargetMethod : changed conditional boundary → KILLED
2. toTargetMethod : removed conditional - replaced comparison check with true → KILLED
3. toTargetMethod : removed conditional - replaced comparison check with false → KILLED
                m.endLine() > 0 ? m.endLine() : null);
531
    }
532
533
    // -------------------------------------------------------------------------
534
    // Private helpers
535
    // -------------------------------------------------------------------------
536
537
    /**
538
     * Resolves the AI answer for one class, consulting the signature-gated cache
539
     * before any provider call and serving cached credential verdicts when present.
540
     *
541
     * @param promptSignature the current run's prompt-catalogue signature, or
542
     *                        {@code null} when AI is disabled
543
     * @return the override-applied lookup plus the raw answer to cache (or
544
     *         {@code null} when nothing should be cached)
545
     */
546
    private static Resolved resolveSuggestionLookup(String fileStem, String fqcn,
547
            String classSource, List<String> methodNames, List<PromptBuilder.TargetMethod> targetMethods,
548
            AiRuntime ai, String contentHash, String promptSignature, CredentialTriageContext secretCtx) {
549 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with false → SURVIVED
2. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
        if (methodNames.isEmpty()) {
550 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → NO_COVERAGE
            return new Resolved(SuggestionLookup.from(null), null);
551
        }
552
553 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
2. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
        if (ai.engine() == null) {
554 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED
            return new Resolved(SuggestionLookup.from(ai.override().apply(fqcn, null, methodNames)), null);
555
        }
556
557
        List<PromptBuilder.CredentialCandidateRef> candidates =
558 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
2. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
                secretCtx == null ? List.of() : secretCtx.candidatesFor(fqcn);
559
560
        // Cache first, gated on the prompt-catalogue signature. A hit serves the
561
        // classification AND (when this run triages credentials) the verdicts —
562
        // from the same cached answer, with no provider call.
563
        AiClassSuggestion cached = ai.cache().classification(contentHash, promptSignature).orElse(null);
564 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
2. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
        if (cached != null) {
565 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
2. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
            AiClassSuggestion cacheable = candidates.isEmpty() ? cached
566
                    : serveOrTriageVerdicts(ai, fqcn, classSource, contentHash, promptSignature,
567
                            candidates, cached, secretCtx);
568 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED
            return new Resolved(SuggestionLookup.from(ai.override().apply(fqcn, cached, methodNames)), cacheable);
569
        }
570
571 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with false → SURVIVED
2. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
        if (classSource == null) {
572 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → NO_COVERAGE
            return new Resolved(SuggestionLookup.from(ai.override().apply(fqcn, null, methodNames)), null);
573
        }
574
575 5 1. resolveSuggestionLookup : removed conditional - replaced equality check with true → SURVIVED
2. resolveSuggestionLookup : changed conditional boundary → SURVIVED
3. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
4. resolveSuggestionLookup : removed conditional - replaced comparison check with true → KILLED
5. resolveSuggestionLookup : removed conditional - replaced comparison check with false → KILLED
        if (ai.options().enabled() && classSource.length() > ai.options().maxClassChars()) {
576
            if (LOG.isLoggable(Level.INFO)) {
577
                LOG.log(Level.INFO, "Skipping AI for {0}: class source too large ({1} chars)",
578
                        new Object[] { fqcn, classSource.length() });
579
            }
580 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED
            return new Resolved(SuggestionLookup.from(ai.override().apply(fqcn, null, methodNames)), null);
581
        }
582
583
        if (LOG.isLoggable(Level.INFO)) {
584
            LOG.log(Level.INFO, "Querying AI for {0} ({1} methods)", new Object[] { fqcn, targetMethods.size() });
585
        }
586
587
        try {
588
            // Fold credential triage into the single classification call when there
589
            // are candidates, so the class source is sent to the provider once.
590
            AiClassSuggestion aiClassSuggestion;
591 2 1. resolveSuggestionLookup : removed conditional - replaced equality check with true → KILLED
2. resolveSuggestionLookup : removed conditional - replaced equality check with false → KILLED
            if (candidates.isEmpty()) {
592
                aiClassSuggestion = ai.engine().suggestForClass(fileStem, fqcn, classSource, targetMethods);
593
            } else {
594
                aiClassSuggestion =
595
                        ai.engine().suggestForClass(fileStem, fqcn, classSource, targetMethods, candidates);
596 1 1. resolveSuggestionLookup : removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED
                secretCtx.recordVerdicts(fqcn, aiClassSuggestion.secrets());
597
            }
598 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED
            return new Resolved(
599
                    SuggestionLookup.from(ai.override().apply(fqcn, aiClassSuggestion, methodNames)),
600
                    aiClassSuggestion);
601
        } catch (AiSuggestionException e) {
602
            if (LOG.isLoggable(Level.WARNING)) {
603
                LOG.log(Level.WARNING, "AI suggestion failed for class " + fqcn, e);
604
            }
605 1 1. resolveSuggestionLookup : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED
            return new Resolved(SuggestionLookup.from(ai.override().apply(fqcn, null, methodNames)), null);
606
        }
607
    }
608
609
    /**
610
     * On a classification cache hit, supplies the credential verdicts: cached when
611
     * present for this signature, otherwise a one-off dedicated triage call (so a
612
     * class whose classification was cached without verdicts still gets scored).
613
     *
614
     * @return the cached suggestion augmented with the resolved verdicts, for re-caching
615
     */
616
    private static AiClassSuggestion serveOrTriageVerdicts(AiRuntime ai, String fqcn, String classSource,
617
            String contentHash, String promptSignature,
618
            List<PromptBuilder.CredentialCandidateRef> candidates, AiClassSuggestion cached,
619
            CredentialTriageContext secretCtx) {
620
        Optional<List<CredentialTriageVerdict>> cachedVerdicts =
621
                ai.cache().verdicts(contentHash, promptSignature);
622 2 1. serveOrTriageVerdicts : removed conditional - replaced equality check with false → KILLED
2. serveOrTriageVerdicts : removed conditional - replaced equality check with true → KILLED
        if (cachedVerdicts.isPresent()) {
623 1 1. serveOrTriageVerdicts : removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED
            secretCtx.recordVerdicts(fqcn, cachedVerdicts.get());
624 1 1. serveOrTriageVerdicts : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → SURVIVED
            return withSecrets(cached, cachedVerdicts.get());
625
        }
626 2 1. serveOrTriageVerdicts : removed conditional - replaced equality check with false → SURVIVED
2. serveOrTriageVerdicts : removed conditional - replaced equality check with true → KILLED
        if (classSource == null) {
627 1 1. serveOrTriageVerdicts : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → NO_COVERAGE
            return cached;
628
        }
629
        try {
630
            List<CredentialTriageVerdict> verdicts = ai.engine().triageSecrets(fqcn, classSource, candidates);
631 1 1. serveOrTriageVerdicts : removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED
            secretCtx.recordVerdicts(fqcn, verdicts);
632 1 1. serveOrTriageVerdicts : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → SURVIVED
            return withSecrets(cached, verdicts);
633
        } catch (AiSuggestionException e) {
634
            if (LOG.isLoggable(Level.WARNING)) {
635
                LOG.log(Level.WARNING, "Credential triage failed for cached class " + fqcn, e);
636
            }
637 1 1. serveOrTriageVerdicts : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → NO_COVERAGE
            return cached;
638
        }
639
    }
640
641
    /**
642
     * Returns a copy of {@code suggestion} with its credential verdicts replaced.
643
     *
644
     * @param suggestion the classification result to copy; never {@code null}
645
     * @param secrets    the verdicts to attach; may be {@code null}
646
     * @return a new suggestion carrying {@code secrets}
647
     */
648
    private static AiClassSuggestion withSecrets(AiClassSuggestion suggestion,
649
            List<CredentialTriageVerdict> secrets) {
650 1 1. withSecrets : replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::withSecrets → SURVIVED
        return new AiClassSuggestion(suggestion.className(), suggestion.classSecurityRelevant(),
651
                suggestion.classTags(), suggestion.classReason(), suggestion.methods(), secrets);
652
    }
653
654
    /**
655
     * The outcome of resolving one class: the override-applied per-method lookup, and
656
     * the raw AI answer to persist in the cache ({@code null} when nothing should be
657
     * cached — no AI, no methods, oversized source, or a failed call).
658
     *
659
     * @param lookup    per-method suggestion lookup fed to the sink; never {@code null}
660
     * @param cacheable the full AI answer to cache, or {@code null}
661
     */
662
    private record Resolved(SuggestionLookup lookup, AiClassSuggestion cacheable) {
663
    }
664
665
    /**
666
     * The result of scanning one root: whether any provider errored, and the unified
667
     * cache entries collected for the classes processed in that root.
668
     *
669
     * @param hadErrors    {@code true} if any provider reported a non-fatal error
670
     * @param cacheEntries cache entries keyed by content hash; never {@code null}
671
     */
672
    private record DiscoveryResult(boolean hadErrors, Map<String, AiCacheEntry> cacheEntries) {
673
    }
674
}

Mutations

179

1.1
Location : scan
Killed by : org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emptyDirectoryProducesNoOutput(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : scan
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

184

1.1
Location : scan
Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : scan
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

187

1.1
Location : scan
Killed by : org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emptyDirectoryProducesNoOutput(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : scan
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

188

1.1
Location : scan
Killed by : none
removed call to java/util/Map::putAll → NO_COVERAGE

192

1.1
Location : scan
Killed by : none
removed call to org/egothor/methodatlas/command/PluginLoader::closeAll → SURVIVED
Covering tests

194

1.1
Location : scan
Killed by : org.egothor.methodatlas.GitHubAnnotationsEmitterTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.GitHubAnnotationsEmitterTest]/[method:app_githubAnnotationsMode_emptyDirectoryProducesNoOutput(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : scan
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

195

1.1
Location : scan
Killed by : none
removed call to org/egothor/methodatlas/AiCacheStore::write → NO_COVERAGE

197

1.1
Location : scan
Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : scan
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

237

1.1
Location : runDiscovery
Killed by : org.egothor.methodatlas.MethodAtlasAppCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppCoverageTest]/[method:emitCoverage_writesReportToCustomPath(java.nio.file.Path)]
replaced boolean return with true for org/egothor/methodatlas/command/ScanOrchestrator::runDiscovery → KILLED

2.2
Location : runDiscovery
Killed by : org.egothor.methodatlas.MethodAtlasAppScanCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppScanCoverageTest]/[method:csvMode_unparseableFile_returnsExitCode1(java.nio.file.Path)]
replaced boolean return with false for org/egothor/methodatlas/command/ScanOrchestrator::runDiscovery → KILLED

259

1.1
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed call to java/util/stream/Stream::forEach → KILLED

260

1.1
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.EvidencePackCommandTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.EvidencePackCommandTest]/[method:overwriteFlagAllowsReuseOfExistingDirectory(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.MethodAtlasAppScanCoverageTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppScanCoverageTest]/[method:csvMode_unparseableFile_returnsExitCode1(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

272

1.1
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withoutVerdicts_issuesExactlyOneDedicatedTriageCall(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : runDiscoveryInternal
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

276

1.1
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed call to org/egothor/methodatlas/command/ScanOrchestrator::processClass → KILLED

280

1.1
Location : runDiscoveryInternal
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::runDiscoveryInternal → KILLED

310

1.1
Location : processClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

3.3
Location : processClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED Covering tests

4.4
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

5.5
Location : processClass
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

6.6
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

311

1.1
Location : processClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : processClass
Killed by : org.egothor.methodatlas.MethodAtlasAppContentHashTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppContentHashTest]/[method:csvMode_contentHashIs64CharLowercaseHex_whenEnabled(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

313

1.1
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

2.2
Location : processClass
Killed by : org.egothor.methodatlas.MethodAtlasAppContentHashTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppContentHashTest]/[method:csvMode_contentHashIs64CharLowercaseHex_whenEnabled(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

326

1.1
Location : processClass
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED

331

1.1
Location : processClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

3.3
Location : processClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED Covering tests

4.4
Location : processClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

345

1.1
Location : wrapWithExtraSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : wrapWithExtraSink
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

346

1.1
Location : wrapWithExtraSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::wrapWithExtraSink → KILLED

348

1.1
Location : wrapWithExtraSink
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/command/ScanOrchestrator::wrapWithExtraSink → KILLED

376

1.1
Location : collectMethodsByFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed call to java/util/stream/Stream::forEach → KILLED

377

1.1
Location : lambda$collectMethodsByFile$1
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : lambda$collectMethodsByFile$1
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

378

1.1
Location : lambda$collectMethodsByFile$0
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_exitCode0WhenNoErrors(java.nio.file.Path)]
replaced return value with Collections.emptyList for org/egothor/methodatlas/command/ScanOrchestrator::lambda$collectMethodsByFile$0 → KILLED

383

1.1
Location : collectMethodsByFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
replaced return value with Collections.emptyMap for org/egothor/methodatlas/command/ScanOrchestrator::collectMethodsByFile → KILLED

410

1.1
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

2.2
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with false → SURVIVED Covering tests

420

1.1
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

2.2
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

3.3
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

4.4
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with false → SURVIVED Covering tests

433

1.1
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_nonSecurityMethod_notAnnotated(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

3.3
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_exitCode0WhenNoErrors(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

4.4
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

436

1.1
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryCountsMatchAnnotationsAdded(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

3.3
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

4.4
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryCountsMatchAnnotationsAdded(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

437

1.1
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_summaryCountsMatchAnnotationsAdded(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_existingAnnotationsNotDuplicated(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

440

1.1
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

3.3
Location : gatherAiSuggestionsForFile
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_addsTagImport(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

4.4
Location : gatherAiSuggestionsForFile
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

488

1.1
Location : filterSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed conditional - replaced equality check with false → KILLED

2.2
Location : filterSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_neitherFilterActive_returnsDelegateUnchanged()]
removed conditional - replaced equality check with true → KILLED

491

1.1
Location : lambda$filterSink$2
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed conditional - replaced equality check with true → KILLED

2.2
Location : lambda$filterSink$2
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed conditional - replaced equality check with false → KILLED

3.3
Location : lambda$filterSink$2
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed conditional - replaced equality check with true → KILLED

4.4
Location : lambda$filterSink$2
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed conditional - replaced equality check with false → KILLED

492

1.1
Location : lambda$filterSink$2
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_securityOnly_dropsNonSecurityRecords()]
removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED

496

1.1
Location : filterSink
Killed by : org.egothor.methodatlas.MethodAtlasAppJsonTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppJsonTest]/[method:minConfidence_noEffectWithoutAiConfidence(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : filterSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced equality check with false → KILLED

3.3
Location : filterSink
Killed by : none
removed conditional - replaced comparison check with true → SURVIVED
Covering tests

4.4
Location : filterSink
Killed by : none
changed conditional boundary → SURVIVED Covering tests

5.5
Location : filterSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced comparison check with false → KILLED

500

1.1
Location : lambda$filterSink$3
Killed by : none
changed conditional boundary → SURVIVED
Covering tests

2.2
Location : lambda$filterSink$3
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced comparison check with false → KILLED

3.3
Location : lambda$filterSink$3
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced comparison check with true → KILLED

4.4
Location : lambda$filterSink$3
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced equality check with true → KILLED

5.5
Location : lambda$filterSink$3
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed conditional - replaced equality check with false → KILLED

501

1.1
Location : lambda$filterSink$3
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_confidenceFilter_dropsLowConfidenceRecords()]
removed call to org/egothor/methodatlas/emit/TestMethodSink::record → KILLED

505

1.1
Location : filterSink
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:filterSink_neitherFilterActive_returnsDelegateUnchanged()]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::filterSink → KILLED

527

1.1
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_nonPositiveLineNumbers_collapseToNull()]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::toTargetMethod → KILLED

529

1.1
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_nonPositiveLineNumbers_collapseToNull()]
changed conditional boundary → KILLED

2.2
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_nonPositiveLineNumbers_collapseToNull()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_validBeginAndEndLines_preservesBoth()]
removed conditional - replaced comparison check with false → KILLED

530

1.1
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_nonPositiveLineNumbers_collapseToNull()]
changed conditional boundary → KILLED

2.2
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_nonPositiveLineNumbers_collapseToNull()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : toTargetMethod
Killed by : org.egothor.methodatlas.command.ScanOrchestratorTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorTest]/[method:toTargetMethod_validBeginAndEndLines_preservesBoth()]
removed conditional - replaced comparison check with false → KILLED

549

1.1
Location : resolveSuggestionLookup
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

550

1.1
Location : resolveSuggestionLookup
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → NO_COVERAGE

553

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_exitCode0WhenNoErrors(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

554

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_exitCode0WhenNoErrors(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED

558

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_nonSecurityMethod_notAnnotated(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

564

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

565

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppAiTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppAiTest]/[method:aiCache_hit_engineNotCalledForUnchangedClass(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

568

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED

571

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

572

1.1
Location : resolveSuggestionLookup
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → NO_COVERAGE

575

1.1
Location : resolveSuggestionLookup
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppAiTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppAiTest]/[method:csvMode_oversizedClass_skipsAiLookup_andLeavesAiColumnsEmpty(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

3.3
Location : resolveSuggestionLookup
Killed by : none
changed conditional boundary → SURVIVED Covering tests

4.4
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced comparison check with true → KILLED

5.5
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppAiTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppAiTest]/[method:csvMode_oversizedClass_skipsAiLookup_andLeavesAiColumnsEmpty(java.nio.file.Path)]
removed conditional - replaced comparison check with false → KILLED

580

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppAiTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppAiTest]/[method:csvMode_oversizedClass_skipsAiLookup_andLeavesAiColumnsEmpty(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED

591

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

2.2
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppApplyTagsTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppApplyTagsTest]/[method:applyTags_nonSecurityMethod_notAnnotated(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

596

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED

598

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheMiss_runsCombinedClassificationAndRecordsVerdicts(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED

605

1.1
Location : resolveSuggestionLookup
Killed by : org.egothor.methodatlas.MethodAtlasAppAiTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.MethodAtlasAppAiTest]/[method:plainMode_aiFailureForOneClass_continuesScanningAndFallsBackForThatClass(java.nio.file.Path)]
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::resolveSuggestionLookup → KILLED

622

1.1
Location : serveOrTriageVerdicts
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed conditional - replaced equality check with false → KILLED

2.2
Location : serveOrTriageVerdicts
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withoutVerdicts_issuesExactlyOneDedicatedTriageCall(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

623

1.1
Location : serveOrTriageVerdicts
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withMatchingSignatureAndVerdicts_servesBothWithoutAnyEngineCall(java.nio.file.Path)]
removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED

624

1.1
Location : serveOrTriageVerdicts
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → SURVIVED
Covering tests

626

1.1
Location : serveOrTriageVerdicts
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : serveOrTriageVerdicts
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withoutVerdicts_issuesExactlyOneDedicatedTriageCall(java.nio.file.Path)]
removed conditional - replaced equality check with true → KILLED

627

1.1
Location : serveOrTriageVerdicts
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → NO_COVERAGE

631

1.1
Location : serveOrTriageVerdicts
Killed by : org.egothor.methodatlas.command.ScanOrchestratorCacheTest.[engine:junit-jupiter]/[class:org.egothor.methodatlas.command.ScanOrchestratorCacheTest]/[method:cacheHit_withoutVerdicts_issuesExactlyOneDedicatedTriageCall(java.nio.file.Path)]
removed call to org/egothor/methodatlas/command/CredentialTriageContext::recordVerdicts → KILLED

632

1.1
Location : serveOrTriageVerdicts
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → SURVIVED
Covering tests

637

1.1
Location : serveOrTriageVerdicts
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::serveOrTriageVerdicts → NO_COVERAGE

650

1.1
Location : withSecrets
Killed by : none
replaced return value with null for org/egothor/methodatlas/command/ScanOrchestrator::withSecrets → SURVIVED
Covering tests

Active mutators

Tests examined


Report generated by PIT 1.22.1