Publish Ludarium source
Public source validation / source (push) Successful in 2m16s

This commit is contained in:
Ludarium release export
2026-09-03 02:08:58 +02:00
commit df869819ce
339 changed files with 46455 additions and 0 deletions
@@ -0,0 +1,24 @@
using Ludarium.Application;
namespace Ludarium.UnitTests;
public sealed class DashboardSummaryTests
{
[Fact]
public void ConfidenceIsUnknownWithoutPresentArtifacts()
{
Assert.Null(Summary(0, 0, 0).ConfidencePercent);
}
[Theory]
[InlineData(100, 100, 100, 100)]
[InlineData(100, 50, 50, 50)]
[InlineData(4, 3, 2, 62.5)]
public void ConfidenceUsesOnlyMeasuredEvidence(long present, long hashed, long recognized, decimal expected)
{
Assert.Equal(expected, Summary(present, hashed, recognized).ConfidencePercent);
}
private static DashboardSummary Summary(long present, long hashed, long recognized) =>
new(0, present, present, 0, 0, 0, 0, hashed, recognized, 0, 0, 0, 0, 0, 0, 0, 0);
}