test_helper library

Dependency-light TestHelper sub-library for diene_auth_engine.

Fakes, builders, and plain-throw assertions ONLY — NO test-framework deps (no test / matcher / mocking packages), so importing it adds nothing to a consumer's production dependency graph.

Classes

AuthExpect
Plain-throw assertion helpers for auth-engine Result/Option/phase tests.
AuthFixtures
Dependency-light builders for auth-engine tests. NO test-framework deps.
FakeAppHandoffApi
Scriptable AppHandoffApi fake.
FakeAuth
Scriptable IAuth fake. Successive fetchAllTokens calls return successive batches (the last repeats), modelling the force-refresh claim-repair path.
FakeAuthProvider
Scriptable AuthProvider fake — drive token mint/refresh/failure without a real IdP.
FakeClipboardCarrierSource
Fake iOS clipboard carrier source.
FakeInstallReferrerSource
Fake Install Referrer source.
FakeLandscapeSelectorSource
Fake Doc B source returning a fixed doc (or throwing).
FakeRegionPinger
Fake region pinger backed by a latency map keyed by landscape name; a null entry (or a missing name) is unhealthy.
FakeUserDirectory
Scriptable UserDirectory fake.
MemoryHomeClaimStore
In-memory HomeClaimStore.

Exceptions / Errors

AuthAssertionError
Raised by the plain-throw assertion helpers on a failed expectation. Kept framework-free so the TestHelper stays dependency-light (no matcher).