Fix audit findings for coverage, architecture checks, and XML docs
All checks were successful
NuGet Publish / build-and-pack (push) Successful in 45s
NuGet Publish / publish-to-gitea (push) Successful in 52s

This commit is contained in:
Joseph Doherty
2026-02-20 15:43:25 -05:00
parent 5528806518
commit 3ffd468c79
99 changed files with 23746 additions and 9548 deletions

View File

@@ -9,6 +9,9 @@ public class DictionaryPageTests
{
private const int PageSize = 16384;
/// <summary>
/// Verifies dictionary page initialization sets expected defaults.
/// </summary>
[Fact]
public void Initialize_ShouldSetupEmptyPage()
{
@@ -26,6 +29,9 @@ public class DictionaryPageTests
freeSpaceEnd.ShouldBe((ushort)PageSize);
}
/// <summary>
/// Verifies insert adds entries and keeps them ordered.
/// </summary>
[Fact]
public void Insert_ShouldAddEntryAndSort()
{
@@ -58,6 +64,9 @@ public class DictionaryPageTests
entries[2].Value.ShouldBe((ushort)30);
}
/// <summary>
/// Verifies key lookup returns the expected value.
/// </summary>
[Fact]
public void TryFind_ShouldReturnCorrectValue()
{
@@ -76,6 +85,9 @@ public class DictionaryPageTests
found.ShouldBeFalse();
}
/// <summary>
/// Verifies inserts fail when the page is full.
/// </summary>
[Fact]
public void Overflow_ShouldReturnFalse_WhenFull()
{
@@ -105,6 +117,9 @@ public class DictionaryPageTests
inserted.ShouldBeFalse();
}
/// <summary>
/// Verifies global lookup finds keys across chained dictionary pages.
/// </summary>
[Fact]
public void Chaining_ShouldFindKeysInLinkedPages()
{
@@ -158,6 +173,9 @@ public class DictionaryPageTests
if (File.Exists(Path.ChangeExtension(dbPath, ".wal"))) File.Delete(Path.ChangeExtension(dbPath, ".wal"));
}
/// <summary>
/// Verifies global enumeration returns keys across chained dictionary pages.
/// </summary>
[Fact]
public void FindAllGlobal_ShouldRetrieveAllKeys()
{