Skip to content

Commit aef9914

Browse files
committed
Document TestDatabase
1 parent d00f781 commit aef9914

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
@@ -154,6 +154,11 @@ class TestConnector extends PowerSyncBackendConnector {
154154
}
155155
}
156156

157+
/// A [PowerSyncDatabase] implemented by a single in-memory database connection
158+
/// and a mock-HTTP sync client.
159+
///
160+
/// This ensures tests for sync cover the `ConnectionManager` and other methods
161+
/// exposed by the mixin.
157162
final class TestDatabase
158163
with SqliteQueries, PowerSyncDatabaseMixin
159164
implements PowerSyncDatabase {

0 commit comments

Comments
 (0)