47 references to Read
AnalyzeCiFailure (2)
AnalysisRerunner.cs (1)
54
var request = TransientJson.
Read
<WorkflowRerunRequest>(requests[0].GetRawText());
TransientJson.cs (1)
65
internal static T ReadUtf8<T>(ReadOnlySpan<byte> bytes) =>
Read
<T>(DecodeUtf8(bytes));
AnalyzeCiFailure.Tests (45)
AnalyzeCiFailureBestEffortTests.cs (1)
67
var reloaded = TransientJson.
Read
<EvidenceBundle>(TransientJson.Write(partial));
AnalyzeCiFailureCohesionTests.cs (2)
34
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(invocation.Evidence.Outcome));
55
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(invocation.Replay.Outcome));
AnalyzeCiFailureCollectionTests.cs (1)
58
var bundle = AnalyzeCiFailure.TransientJson.
Read
<AnalyzeCiFailure.EvidenceBundle>(json);
AnalyzeCiFailureDiagnosticsTests.cs (2)
22
var outcome = TransientJson.
Read
<AnalysisOutcome>(File.ReadAllText(Path.Combine(EvidenceDirectory, "collection-outcome.json")));
120
var outcome = TransientJson.
Read
<AnalysisOutcome>(File.ReadAllText(invocation.Evidence.Outcome));
AnalyzeCiFailureEvidenceTests.cs (1)
179
TransientJson.
Read
<EvidenceBundle>(document.ToJsonString()),
AnalyzeCiFailureInvocationTests.cs (3)
127
var evidence = TransientJson.
Read
<EvidenceBundle>(original);
136
var replayed = TransientJson.
Read
<EvidenceBundle>(await File.ReadAllTextAsync(output.Bundle));
139
Assert.Equal("degraded", TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(output.Outcome)).Status);
AnalyzeCiFailureMigrationTests.cs (11)
74
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json")));
122
var bundle = TransientJson.
Read
<EvidenceBundle>(await File.ReadAllTextAsync(Path.Combine(root, "evidence.json")));
203
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(EvidenceDirectory, "collection-outcome.json")));
216
var bundle = TransientJson.
Read
<EvidenceBundle>(await File.ReadAllTextAsync(Path.Combine(root, "evidence.json")));
219
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json")));
309
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(paths.Outcome));
515
var evidence = TransientJson.
Read
<EvidenceBundle>(await File.ReadAllTextAsync(Path.Combine(data, "evidence.json")));
597
var proposal = TransientJson.
Read
<AnalysisProposal>(examples[0]);
599
var newCause = TransientJson.
Read
<ProposedCause>(examples[1]);
619
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(root, "collection-outcome.json")));
690
var bundle = TransientJson.
Read
<EvidenceBundle>(await File.ReadAllTextAsync(Path.Combine(root, "evidence.json")));
AnalyzeCiFailurePublicationTests.cs (1)
1112
var recoveryOutcome = AnalyzeCiFailure.TransientJson.
Read
<AnalyzeCiFailure.AnalysisOutcome>(
AnalyzeCiFailureRuleTests.cs (2)
63
TransientJson.
Read
<EvidenceBundle>(facts.ToJsonString()),
64
TransientJson.
Read
<AnalysisProposal>(decisions.ToJsonString()),
AnalyzeCiFailureStorageTests.cs (4)
47
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json")));
70
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(new EvidencePaths(EvidenceDirectory).Outcome));
103
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json")));
115
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(recovery, "collection-outcome.json")));
AnalyzeCiFailureTextTests.cs (3)
176
Assert.Equal(expected, AnalyzeCiFailure.TransientJson.
Read
<AnalyzeCiFailure.ProposedJobDecision>(document.ToJsonString()).Reason);
181
AnalyzeCiFailure.TransientJson.
Read
<AnalyzeCiFailure.ProposedJobDecision>(document.ToJsonString()));
202
Assert.Throws<AnalyzeCiFailure.ValidationException>(() => AnalyzeCiFailure.TransientJson.
Read
<AnalyzeCiFailure.CollectedSubjectPr>(
AnalyzeCiFailureTransientContractTests.cs (11)
41
var proposal = TransientJson.
Read
<AnalysisProposal>(json.ToJsonString());
63
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal);
108
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal) with
133
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal);
163
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal) with
185
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal);
200
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal);
256
var proposal = TransientJson.
Read
<AnalysisProposal>(Proposal);
259
Assert.Equal(proposal, TransientJson.
Read
<AnalysisProposal>(TransientJson.Write(proposal)) with { Jobs = proposal.Jobs, Tests = proposal.Tests, Causes = proposal.Causes });
292
Assert.Throws<ValidationException>(() => TransientJson.
Read
<AnalysisProposal>(Proposal.Replace(original, replacement, StringComparison.Ordinal)));
299
var error = Assert.Throws<ValidationException>(() => TransientJson.
Read
<AnalysisProposal>(text));
AnalyzeCiFailureWorkflowCommandsTests.cs (3)
81
var outcome = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(EvidenceDirectory, "collection-outcome.json")));
125
var failed = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(paths.Outcome));
129
var recovery = TransientJson.
Read
<AnalysisOutcome>(await File.ReadAllTextAsync(Path.Combine(