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