test_harness/test_runner library
Shared test infrastructure for store integration tests.
Provides pass/fail reporting, stream helpers, and assertion utilities.
Classes
- TestContext
- Context for a test run.
Functions
-
assertEqual<
T> (T actual, T expected, String context) → bool - Assert two values are equal.
-
assertNotNull(
Object? value, String context) → bool - Assert a value is not null.
-
assertTrue(
bool condition, String context) → bool - Assert a condition is true.
-
openStream(
BasicHost host, PeerId serverPeerId, String protocolId, {int maxRetries = 3}) → Future< P2PStream> - Open a new protocol stream to the server with retry logic.
-
report(
String tag, String name, bool ok, [String? detail]) → void - Report a test result to stderr.