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 Xunit;
using StellaOps.TestKit;
namespace StellaOps.Resolver.Tests;
public class EdgeIdTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EdgeId_ComputedDeterministically()
{
// EDGEID-9100-015: EdgeId computed deterministically
@@ -25,7 +27,8 @@ public class EdgeIdTests
Assert.Equal(64, edgeId1.Value.Length); // SHA256 hex
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EdgeId_OrderingConsistentWithStringOrdering()
{
// EDGEID-9100-016: EdgeId ordering is consistent
@@ -43,7 +46,8 @@ public class EdgeIdTests
Assert.Equal(sorted1, sorted2);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void GraphHash_ChangesWhenEdgeAddedOrRemoved()
{
// EDGEID-9100-017: Graph hash changes with edge changes
@@ -63,7 +67,8 @@ public class EdgeIdTests
Assert.NotEqual(graph2.GraphDigest, graph3.GraphDigest);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EdgeDelta_CorrectlyIdentifiesChanges()
{
// EDGEID-9100-018: Delta detection identifies changes
@@ -86,7 +91,8 @@ public class EdgeIdTests
Assert.Empty(delta.ModifiedEdges);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void EdgeId_IsIdempotent()
{
// EDGEID-9100-019: Property test - idempotent computation