Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -7,11 +7,13 @@
|
||||
using System.Text.Json;
|
||||
using Xunit;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Resolver.Tests;
|
||||
|
||||
public class VerdictDigestTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDigest_IsDeterministic()
|
||||
{
|
||||
// VDIGEST-9100-016: Same verdict → same digest
|
||||
@@ -24,7 +26,8 @@ public class VerdictDigestTests
|
||||
Assert.Equal(verdict1.VerdictDigest, verdict2.VerdictDigest);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDigest_ChangesWhenStatusChanges()
|
||||
{
|
||||
// VDIGEST-9100-017: Digest changes with status
|
||||
@@ -37,7 +40,8 @@ public class VerdictDigestTests
|
||||
Assert.NotEqual(passVerdict.VerdictDigest, failVerdict.VerdictDigest);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDigest_ChangesWhenEvidenceChanges()
|
||||
{
|
||||
// VDIGEST-9100-018: Digest changes with evidence
|
||||
@@ -51,7 +55,8 @@ public class VerdictDigestTests
|
||||
Assert.NotEqual(verdict1.VerdictDigest, verdict2.VerdictDigest);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDelta_CorrectlyIdentifiesChangedVerdicts()
|
||||
{
|
||||
// VDIGEST-9100-019: Delta detection identifies changed verdicts
|
||||
@@ -95,7 +100,8 @@ public class VerdictDigestTests
|
||||
Assert.Equal(nodeId2, delta.ChangedVerdicts[0].Old.Node);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDelta_HandlesAddedRemovedNodes()
|
||||
{
|
||||
// VDIGEST-9100-020: Delta handles added/removed nodes
|
||||
@@ -136,7 +142,8 @@ public class VerdictDigestTests
|
||||
Assert.Equal(nodeId2, delta.RemovedVerdicts[0].Node);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void VerdictDigest_ExcludesItselfFromComputation()
|
||||
{
|
||||
// VDIGEST-9100-021: Property test - no recursion
|
||||
|
||||
Reference in New Issue
Block a user