29 lines
793 B
C#
29 lines
793 B
C#
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using IntegrationTests.Helpers;
|
|
|
|
namespace IntegrationTests;
|
|
|
|
/// <summary>
|
|
/// Logic partial of LibraryVersion
|
|
/// </summary>
|
|
public static partial class LibraryVersion
|
|
{
|
|
public static TheoryData<string> GetPlatformVersions(string integrationName)
|
|
{
|
|
var anyPlatformVersions = new TheoryData<string>(LookupMap[integrationName]);
|
|
var platformKey = $"{integrationName}_{EnvironmentTools.GetPlatform()}";
|
|
|
|
if (LookupMap.TryGetValue(platformKey, out var platformVersions))
|
|
{
|
|
foreach (var platformVersion in platformVersions)
|
|
{
|
|
anyPlatformVersions.Add(platformVersion);
|
|
}
|
|
}
|
|
|
|
return anyPlatformVersions;
|
|
}
|
|
}
|