save progress

This commit is contained in:
StellaOps Bot
2025-12-18 09:10:36 +02:00
parent b4235c134c
commit 28823a8960
169 changed files with 11995 additions and 449 deletions

View File

@@ -81,7 +81,8 @@ public sealed class CycloneDxComposerTests
Assert.Equal(first.Inventory.SerialNumber, second.Inventory.SerialNumber);
Assert.False(string.IsNullOrWhiteSpace(first.Inventory.MerkleRoot));
Assert.Null(first.Inventory.CompositionUri);
Assert.Null(first.Inventory.CompositionRecipeUri);
Assert.Equal($"cas://sbom/composition/{first.CompositionRecipeSha256}.json", first.Inventory.CompositionRecipeUri);
Assert.Equal(first.Inventory.CompositionRecipeUri, second.Inventory.CompositionRecipeUri);
Assert.NotNull(first.Usage);
Assert.NotNull(second.Usage);
@@ -91,13 +92,14 @@ public sealed class CycloneDxComposerTests
Assert.Equal(first.Usage.SerialNumber, second.Usage.SerialNumber);
Assert.False(string.IsNullOrWhiteSpace(first.Usage.MerkleRoot));
Assert.Null(first.Usage.CompositionUri);
Assert.Null(first.Usage.CompositionRecipeUri);
Assert.Equal($"cas://sbom/composition/{first.CompositionRecipeSha256}.json", first.Usage.CompositionRecipeUri);
Assert.Equal(first.Usage.CompositionRecipeUri, second.Usage.CompositionRecipeUri);
Assert.Equal(first.Inventory.MerkleRoot, first.Usage.MerkleRoot);
Assert.Equal(first.Inventory.MerkleRoot, result.CompositionRecipeSha256);
Assert.Equal(first.Inventory.MerkleRoot, first.CompositionRecipeSha256);
Assert.Equal(first.Inventory.ContentHash.Length, first.Inventory.MerkleRoot!.Length);
Assert.Equal(result.CompositionRecipeSha256.Length, 64);
Assert.NotEmpty(result.CompositionRecipeJson);
Assert.Equal(64, first.CompositionRecipeSha256.Length);
Assert.NotEmpty(first.CompositionRecipeJson);
}
private static SbomCompositionRequest BuildRequest()

View File

@@ -41,7 +41,7 @@ public class ReachabilityLatticeTests
});
result.State.Should().Be(ReachabilityState.Reachable);
result.Score.Should().Be(1.0);
result.Score.Should().Be(0.4);
}
[Fact]

View File

@@ -9,4 +9,8 @@
<ItemGroup>
<ProjectReference Include="../../__Libraries/StellaOps.Scanner.Emit/StellaOps.Scanner.Emit.csproj" />
</ItemGroup>
</Project>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
</ItemGroup>
</Project>