Skip to main content

ark_data_layer_test 1.0.0 copy "ark_data_layer_test: ^1.0.0" to clipboard
ark_data_layer_test: ^1.0.0 copied to clipboard

Bounded observation of Repository data streams for Ark Data Layer tests.

example/README.md

Executable examples / Запускаемые примеры #

Run all examples from the package directory:

Запуск всех примеров из каталога пакета:

dart pub get
dart test example
File / Файл What it proves / Что проверяет
lifecycle_test.dart Replay, equal commits and the exact final sequence / Начальные данные, одинаковые commit и полную конечную последовательность
refresh_test.dart Successful and failed refresh with a fake source / Успешную и неуспешную загрузку с подменой источника
independent_subscribers_test.dart Cancelling one consumer does not stop another / Отмена одного потребителя не останавливает другого
close_failure_test.dart A failed close still ends the stream / При ошибке очистки поток всё равно завершается

Every file contains its own concrete Repository and cleanup. No server, Flutter, DI container or network connection is needed. These are tests, not applications; run them with dart test, not dart run.

Каждый файл содержит конкретный Repository и освобождение ресурсов. Не нужны сервер, Flutter, DI или сеть. Это тесты, а не приложения: используйте dart test, не dart run.

In the refresh example, names supplied by the fake source are trimmed and empty names are excluded before publication. This is an example-specific business rule, not an automatic rule imposed by Repository or its observer.

В примере загрузки Repository убирает пробелы по краям и исключает пустые имена до публикации. Это правило конкретного примера, а не поведение, которое пакет навязывает всем бизнес-данным.

Start with the complete explanation in English or Russian; refer to the observation contract for deadlines, error precedence and lifecycle boundaries.

0
likes
160
points
162
downloads

Documentation

Documentation
API reference

Publisher

verified publisherarktelos.dev

Weekly Downloads

Bounded observation of Repository data streams for Ark Data Layer tests.

Homepage
Repository (GitLab)
View/report issues

Topics

#testing #data-layer #architecture

License

Apache-2.0 (license)

Dependencies

ark_data_layer

More

Packages that depend on ark_data_layer_test