/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/RunTests/AssemblyInfo.cs
30 строк
1 KB
Jared Parsons
Add IAsyncLifetime overhead adjustment to test scheduling (#83915)
04 июн 2026, 01:37
Не верифицирован
04 июн 2026, 01:37
94debb3
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.IO; namespace RunTests; public readonly record struct AssemblyInfo(string AssemblyPath) : IComparable<AssemblyInfo> { public string AssemblyName => Path.GetFileName(AssemblyPath); public int CompareTo(AssemblyInfo other) { // Ensure we have a consistent ordering by ordering by assembly path. return string.Compare(this.AssemblyPath, other.AssemblyPath, StringComparison.Ordinal); } } public readonly record struct TypeInfo(string Name, string FullyQualifiedName, ImmutableArray<TestMethodInfo> Tests) { public override string ToString() => $"[Type]{FullyQualifiedName}"; } public readonly record struct TestMethodInfo(string Name, string FullyQualifiedName, TimeSpan ExecutionTime, bool HasAsyncLifetime) { public override string ToString() => $"[Method]{FullyQualifiedName}"; }