17 references to Parse
AnalyzeCiFailure (6)
AnalysisPublisher.Overflow.cs (2)
113ReadNormalizedNumber(Field(value, "run_id")) == NormalizedJsonNumber.Parse(runId)); 128item.Cause.JobIds.Contains(NormalizedJsonNumber.Parse(job.Id.ToString(CultureInfo.InvariantCulture)))))
AnalysisValidator.cs (1)
322private static NormalizedJsonNumber Id(long value) => NormalizedJsonNumber.Parse(Decimal(value));
CiFailureJson.cs (2)
86=> value is { ValueKind: JsonValueKind.Number } number ? NormalizedJsonNumber.Parse(number.GetRawText()) : null; 149=> node is JsonValue value && value.GetValueKind() == JsonValueKind.Number ? NormalizedJsonNumber.Parse(value.ToJsonString()) : null;
TestResultArtifacts.cs (1)
128ReadNormalizedNumber(artifact.SizeInBytes) == NormalizedJsonNumber.Parse(((long)size).ToString(CultureInfo.InvariantCulture));
AnalyzeCiFailure.Tests (11)
AnalyzeCiFailurePublicationTests.cs (1)
1067var id = AnalyzeCiFailure.NormalizedJsonNumber.Parse("1");
AnalyzeCiFailureRuleTests.cs (9)
136new("Suite.Test(value: \"A:B\")", "Linux", NormalizedJsonNumber.Parse("1")), 137new("Suite.Test(value: \"a:b\")", "Windows", NormalizedJsonNumber.Parse("2")), 138new("Suite.Test(value: \"a:b\")", "Linux", NormalizedJsonNumber.Parse("1")), 155ImmutableArray<TestIdentity> collected = [new("Suite.Test(1)", "Linux", NormalizedJsonNumber.Parse("1")), new("Suite.Test(2)", "Windows", NormalizedJsonNumber.Parse("2"))]; 189_ => Cause("infra", "infra-failure", "", ["1"]) with { Tests = [new TestObservation("Suite.Test(1)", NormalizedJsonNumber.Parse("1"))] }, 561private static FailedJob TrustedJob(string id, string name) => new(NormalizedJsonNumber.Parse(id), id, name); 569jobIds.Select(NormalizedJsonNumber.Parse).ToImmutableArray(), 570type == "flaky-test" ? jobIds.Select(jobId => new TestObservation(testName, NormalizedJsonNumber.Parse(jobId))).ToImmutableArray() : default);
AnalyzeCiFailureVerdictMatrixTests.cs (1)
32new FailedJob(NormalizedJsonNumber.Parse((index + 1).ToString()), (index + 1).ToString(), $"Job {index + 1}")).ToImmutableArray();