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

@@ -6,11 +6,13 @@ using StellaOps.Evidence.Services;
using StellaOps.Evidence.Validation;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Evidence.Tests;
public class EvidenceIndexTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EvidenceLinker_BuildsIndexWithDigest()
{
var linker = new EvidenceLinker();
@@ -24,7 +26,8 @@ public class EvidenceIndexTests
index.Sboms.Should().HaveCount(1);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EvidenceValidator_FlagsMissingSbom()
{
var index = CreateIndex() with { Sboms = [] };
@@ -34,7 +37,8 @@ public class EvidenceIndexTests
result.IsValid.Should().BeFalse();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EvidenceSerializer_RoundTrip_PreservesFields()
{
var index = CreateIndex();
@@ -43,7 +47,8 @@ public class EvidenceIndexTests
deserialized.Should().BeEquivalentTo(index);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EvidenceQueryService_BuildsSummary()
{
var index = CreateIndex();

View File

@@ -16,5 +16,6 @@
<ItemGroup>
<ProjectReference Include="..\..\StellaOps.Evidence\StellaOps.Evidence.csproj" />
<ProjectReference Include="../../StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
</Project>