Raise protocol coverage to 99 percent (#1058)

* Expand protocol coverage with edge-case tests

* Stabilize read receipt transport test

* Stabilize BLE duplicate packet test

---------

Co-authored-by: jack <jackjackbits@users.noreply.github.com>
This commit is contained in:
jack
2026-03-12 17:55:41 -10:00
committed by GitHub
co-authored by jack
parent 8562a76367
commit 264a95b61a
9 changed files with 288 additions and 9 deletions
+8
View File
@@ -44,4 +44,12 @@ struct LocationChannelsTests {
let id2 = try idBridge.deriveIdentity(forGeohash: gh)
#expect(id1.publicKeyHex == id2.publicKeyHex)
}
@Test func geohashNeighborsNearPoleSkipOutOfBoundsCells() {
let nearPole = Geohash.encode(latitude: 89.9999, longitude: 0.0, precision: 8)
let neighbors = Geohash.neighbors(of: nearPole)
#expect(neighbors.isEmpty == false)
#expect(neighbors.count < 8)
}
}