Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -30,6 +30,8 @@ using StellaOps.Concelier.Testing;
using Xunit;
using Xunit.Abstractions;
using StellaOps.TestKit;
namespace StellaOps.Concelier.Connector.Kisa.Tests;
[Collection(ConcelierFixtureCollection.Name)]
@@ -49,7 +51,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
_output = output;
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_ProducesCanonicalAdvisory()
{
await using var provider = await BuildServiceProviderAsync();
@@ -104,7 +107,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
pendingMappings!.AsDocumentArray.Should().BeEmpty();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_ExclusiveUpperBound_ProducesExclusiveNormalizedRule()
{
await using var provider = await BuildServiceProviderAsync();
@@ -136,7 +140,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be(">= 3.2.0 < 4.0.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_ExclusiveLowerBound_ProducesExclusiveNormalizedRule()
{
await using var provider = await BuildServiceProviderAsync();
@@ -169,7 +174,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be("> 1.2.0 <= 2.4.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_SingleBound_ProducesMinimumOnlyConstraint()
{
await using var provider = await BuildServiceProviderAsync();
@@ -208,7 +214,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be(">= 5.0.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_UpperBoundOnlyExclusive_ProducesLessThanRule()
{
await using var provider = await BuildServiceProviderAsync();
@@ -241,7 +248,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be("< 3.5.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_UpperBoundOnlyInclusive_ProducesLessThanOrEqualRule()
{
await using var provider = await BuildServiceProviderAsync();
@@ -273,7 +281,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be("<= 4.2.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_LowerBoundOnlyExclusive_ProducesGreaterThanRule()
{
await using var provider = await BuildServiceProviderAsync();
@@ -306,7 +315,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be("> 1.9.0");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task FetchParseMap_InvalidSegment_ProducesFallbackRange()
{
await using var provider = await BuildServiceProviderAsync();
@@ -332,7 +342,8 @@ public sealed class KisaConnectorTests : IAsyncLifetime
.WhoseValue.Should().Be("지원 버전: 최신 업데이트 적용");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Telemetry_RecordsMetrics()
{
await using var provider = await BuildServiceProviderAsync();

View File

@@ -8,6 +8,7 @@ using StellaOps.Concelier.Connector.Common.Html;
using StellaOps.Concelier.Connector.Kisa.Internal;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Concelier.Connector.Kisa.Tests;
public sealed class KisaDetailParserTests
@@ -15,7 +16,8 @@ public sealed class KisaDetailParserTests
private static readonly Uri DetailApiUri = new("https://test.local/rssDetailData.do?IDX=5868");
private static readonly Uri DetailPageUri = new("https://test.local/detailDos.do?IDX=5868");
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void ParseHtmlPayload_ProducesExpectedModels()
{
var parser = new KisaDetailParser(new HtmlContentSanitizer());

View File

@@ -10,6 +10,7 @@
<ProjectReference Include="../../__Libraries/StellaOps.Concelier.Connector.Common/StellaOps.Concelier.Connector.Common.csproj" />
<ProjectReference Include="../StellaOps.Concelier.Connector.Common.Tests/StellaOps.Concelier.Connector.Common.Tests.csproj" />
<ProjectReference Include="../../../__Tests/__Libraries/StellaOps.Concelier.Testing/StellaOps.Concelier.Testing.csproj" />
<ProjectReference Include="../../../__Libraries/StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />