Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -11,6 +11,8 @@ using StellaOps.Scanner.Worker.Orchestration;
|
||||
using StellaOps.Signals.Storage;
|
||||
using Xunit;
|
||||
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Scanner.Integration.Tests;
|
||||
|
||||
/// <summary>
|
||||
@@ -41,7 +43,8 @@ public class PoEPipelineTests : IDisposable
|
||||
);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ScanWithVulnerability_GeneratesPoE_StoresInCas()
|
||||
{
|
||||
// Arrange
|
||||
@@ -98,7 +101,8 @@ public class PoEPipelineTests : IDisposable
|
||||
Assert.Equal(dsseBytes, artifact.DsseBytes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ScanWithUnreachableVuln_DoesNotGeneratePoE()
|
||||
{
|
||||
// Arrange
|
||||
@@ -124,7 +128,8 @@ public class PoEPipelineTests : IDisposable
|
||||
Assert.Empty(results);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task PoEGeneration_ProducesDeterministicHash()
|
||||
{
|
||||
// Arrange
|
||||
@@ -141,7 +146,8 @@ public class PoEPipelineTests : IDisposable
|
||||
Assert.StartsWith("blake3:", hash1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task PoEStorage_PersistsToCas_RetrievesCorrectly()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
Reference in New Issue
Block a user