2 instantiations of AnalysisOutcome
AnalyzeCiFailure (1)
Models\CollectionModels.cs (1)
78internal AnalysisOutcome CreateOutcome(string status) => new()
AnalyzeCiFailure.Tests (1)
AnalyzeCiFailureCollectionTests.cs (1)
218var outcome = new AnalyzeCiFailure.AnalysisOutcome
51 references to AnalysisOutcome
AnalyzeCiFailure (11)
EvidencePackageStore.cs (1)
38internal static Task WriteOutcomeAsync(EvidencePaths paths, AnalysisOutcome outcome)
EvidencePreparation.cs (5)
25AnalysisOutcome outcome; 66internal static async Task<AnalysisOutcome> CollectEvidenceAndPrepareAnalysisAsync( 106var noWork = progress.CreateOutcome("no-work"); 120var outcome = progress.CreateOutcome(degraded ? "degraded" : "ready"); 238AnalysisOutcome outcome,
GitHubActionsIntegration.cs (1)
14internal static async Task WriteOutputsAsync(string path, AnalysisOutcome outcome, CancellationToken ct)
Models\CollectionModels.cs (1)
78internal AnalysisOutcome CreateOutcome(string status) => new()
TransientJson.cs (3)
46AnalysisOutcome { SchemaVersion: not 1 }) 50if (value is AnalysisOutcome outcome) 80private static void CheckOutcome(AnalysisOutcome outcome)
AnalyzeCiFailure.Tests (40)
AnalyzeCiFailureCohesionTests.cs (5)
34var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(invocation.Evidence.Outcome)); 55var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(invocation.Replay.Outcome)); 71var outcome = new AnalysisProgress { HasRelevantFailures = relevantFailures }.CreateOutcome("ready");
AnalyzeCiFailureCollectionTests.cs (1)
218var outcome = new AnalyzeCiFailure.AnalysisOutcome
AnalyzeCiFailureDiagnosticsTests.cs (4)
22var outcome = TransientJson.Read<AnalysisOutcome>(File.ReadAllText(Path.Combine(EvidenceDirectory, "collection-outcome.json"))); 120var outcome = TransientJson.Read<AnalysisOutcome>(File.ReadAllText(invocation.Evidence.Outcome));
AnalyzeCiFailureInvocationTests.cs (1)
139Assert.Equal("degraded", TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(output.Outcome)).Status);
AnalyzeCiFailureMigrationTests.cs (10)
74var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json"))); 203var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(EvidenceDirectory, "collection-outcome.json"))); 219var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json"))); 309var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(paths.Outcome)); 619var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json")));
AnalyzeCiFailurePublicationTests.cs (2)
1112var recoveryOutcome = AnalyzeCiFailure.TransientJson.Read<AnalyzeCiFailure.AnalysisOutcome>(
AnalyzeCiFailureStorageTests.cs (8)
47var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json"))); 70var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(new EvidencePaths(EvidenceDirectory).Outcome)); 103var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json"))); 115var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json")));
AnalyzeCiFailureWorkflowCommandsTests.cs (9)
81var outcome = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(EvidenceDirectory, "collection-outcome.json"))); 89var outcome = new AnalysisProgress 115var outcome = progress.CreateOutcome("ready"); 125var failed = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(paths.Outcome)); 129var recovery = TransientJson.Read<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine( 141var outcome = new AnalysisProgress