Skip to content

Commit 1c87293

Browse files
committed
Document TestDatabase
1 parent d3aa29a commit 1c87293

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/powersync_core/test/utils/abstract_test_utils.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ class TestConnector extends PowerSyncBackendConnector {
150150
}
151151
}
152152

153+
/// A [PowerSyncDatabase] implemented by a single in-memory database connection
154+
/// and a mock-HTTP sync client.
155+
///
156+
/// This ensures tests for sync cover the `ConnectionManager` and other methods
157+
/// exposed by the mixin.
153158
final class TestDatabase
154159
with SqliteQueries, PowerSyncDatabaseMixin
155160
implements PowerSyncDatabase {

0 commit comments

Comments
 (0)