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

@@ -5,11 +5,14 @@ using StellaOps.Scanner.Reachability;
using StellaOps.Scanner.Reachability.Gates;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Scanner.Reachability.Tests;
public class RichGraphWriterTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task WritesCanonicalGraphAndMeta()
{
var writer = new RichGraphWriter(CryptoHashFactory.CreateDefault());
@@ -38,7 +41,8 @@ public class RichGraphWriterTests
Assert.Equal(1, result.EdgeCount);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task CarriesSymbolMetadataToRichGraph()
{
var writer = new RichGraphWriter(CryptoHashFactory.CreateDefault());
@@ -65,7 +69,8 @@ public class RichGraphWriterTests
Assert.Contains("\"symbol\":{\"mangled\":\"_Zssl_read\",\"demangled\":\"ssl_read\",\"source\":\"DWARF\",\"confidence\":0.9}", json);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task WritesGatesOnEdgesWhenPresent()
{
var writer = new RichGraphWriter(CryptoHashFactory.CreateDefault());
@@ -109,7 +114,8 @@ public class RichGraphWriterTests
Assert.Contains("\"guard_symbol\":\"sym:dotnet:B\"", json);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task UsesBlake3HashForDefaultProfile()
{
// WIT-013: Verify BLAKE3 is used for graph hashing