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

@@ -57,7 +57,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
public Task DisposeAsync() => Task.CompletedTask;
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task SaveAsync_SameManifestHash_Twice_CanRetrieveByHash()
{
// Arrange
@@ -87,7 +88,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task GetByHashAsync_SameHash_ReturnsConsistentResult()
{
// Arrange
@@ -112,7 +114,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
distinctIds.Should().HaveCount(1, "same hash should always return same manifest");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task GetByScanIdAsync_SameId_ReturnsConsistentResult()
{
// Arrange
@@ -135,7 +138,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
});
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task MarkCompletedAsync_Twice_IsIdempotent()
{
// Arrange
@@ -160,7 +164,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
after2!.ScanCompletedAt.Should().NotBeNull();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task MarkCompletedAsync_NonExistent_DoesNotThrow()
{
// Arrange
@@ -174,7 +179,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
await action.Should().NotThrowAsync();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task SaveAsync_MultipleDifferentScans_AllPersisted()
{
// Arrange
@@ -196,7 +202,8 @@ public sealed class ScanResultIdempotencyTests : IAsyncLifetime
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task SaveAsync_MultipleManifstsForSameScan_AllRetrievable()
{
// Arrange - Same scan ID, different manifests (e.g., scan retry)