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

@@ -9,11 +9,14 @@ using StellaOps.Scanner.Diff;
using StellaOps.Scanner.Core.Utility;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Scanner.Diff.Tests;
public sealed class ComponentDifferTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Compute_CapturesAddedRemovedAndChangedComponents()
{
var oldFragments = new[]
@@ -173,7 +176,8 @@ public sealed class ComponentDifferTests
Assert.False(removedJson.TryGetProperty("introducingLayer", out _));
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Compute_UsageView_FiltersComponents()
{
var oldFragments = new[]
@@ -218,7 +222,8 @@ public sealed class ComponentDifferTests
Assert.False(parsed.RootElement.TryGetProperty("newImageDigest", out _));
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Compute_MetadataChange_WhenEvidenceDiffers()
{
var oldFragments = new[]
@@ -277,7 +282,8 @@ public sealed class ComponentDifferTests
Assert.Equal(1, change.OldComponent!.Evidence.Length);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Compute_MetadataChange_WhenBuildIdDiffers()
{
var oldFragments = new[]

View File

@@ -8,5 +8,6 @@
<ItemGroup>
<ProjectReference Include="../../__Libraries/StellaOps.Scanner.Diff/StellaOps.Scanner.Diff.csproj" />
<ProjectReference Include="../../../__Libraries/StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
</Project>