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

@@ -57,7 +57,8 @@ public class SampleStatementDigestTests
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Hashes_match_expected_samples()
{
// Expected hashes using FIPS profile (SHA-256 for attestation purpose)
@@ -69,6 +70,7 @@ public class SampleStatementDigestTests
["orchestrator-statement.json"] = "d79467d03da33d0b8f848d7a340c8cde845802bad7dadcb553125e8553615b28"
};
using StellaOps.TestKit;
foreach (var (name, statement) in LoadSamples())
{
BuildStatementDigest.ComputeHashHex(_cryptoHash, statement)
@@ -77,7 +79,8 @@ public class SampleStatementDigestTests
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Merkle_root_is_stable_across_sample_set()
{
var statements = LoadSamples().Select(pair => pair.Statement).ToArray();