Skip to content

chore: Update dependencies and improve code formatting#6

Merged
koniz-dev merged 5 commits intomainfrom
wsl2
Dec 6, 2025
Merged

chore: Update dependencies and improve code formatting#6
koniz-dev merged 5 commits intomainfrom
wsl2

Conversation

@koniz-dev
Copy link
Owner

  • Updated Dart SDK constraint in pubspec.yaml to support version 3.8.0.
  • Upgraded _fe_analyzer_shared package version in pubspec.lock to 4.1.1.
  • Enhanced code readability by adjusting formatting in various files, including app_config.dart, dio_exception_mapper.dart, and several test files.
  • Improved consistency in method calls and formatting across multiple test cases.

These changes aim to ensure compatibility with the latest SDK and enhance the overall maintainability of the codebase.

- Updated Dart SDK constraint in `pubspec.yaml` to support version 3.8.0.
- Upgraded `_fe_analyzer_shared` package version in `pubspec.lock` to 4.1.1.
- Enhanced code readability by adjusting formatting in various files, including `app_config.dart`, `dio_exception_mapper.dart`, and several test files.
- Improved consistency in method calls and formatting across multiple test cases.

These changes aim to ensure compatibility with the latest SDK and enhance the overall maintainability of the codebase.
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 83.14607% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/core/logging/log_output.dart 0.00% 6 Missing ⚠️
lib/core/di/providers.dart 63.63% 4 Missing ⚠️
lib/core/utils/result.dart 70.00% 3 Missing ⚠️
lib/core/performance/performance_service.dart 0.00% 1 Missing ⚠️
lib/shared/widgets/optimized_image.dart 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

- Added a test to ensure `FileLogOutput` handles exceptions gracefully when the output sink throws.
- Introduced tests for `incrementMetric` in the performance service to verify correct metric incrementing and exception handling.
- Expanded the `whenLegacy()` method tests in the result utility to cover various success and failure scenarios, including handling null codes.
- Created a new test file for feature flags providers, validating the functionality of data source and repository providers, as well as feature flag initialization and retrieval.

These changes aim to improve the robustness and coverage of the test suite, ensuring better handling of edge cases and enhancing overall reliability.
- Introduced tests for `storageInitializationProvider` to ensure it handles initialization errors gracefully, covering various exception scenarios.
- Added a test to `FileLogOutput` to verify that `clearLogs` handles exceptions without failure.
- Enhanced `PerformanceService` tests to confirm that the constructor manages exceptions when Firebase Performance is unavailable.
- Updated `Result` utility tests to improve coverage for legacy pattern matching and fallback cases for custom failure types.

These changes aim to strengthen the test suite by ensuring robust error handling across multiple components.
- Introduced a test for `storageInitializationProvider` to ensure the creation of `StorageMigrationService` and the execution of `migrateAll`, covering various exception scenarios.
- Expanded the `whenLegacy()` method tests in the result utility to include additional cases for success and failure callbacks, ensuring proper handling of null codes and returning values from callbacks.
- Added tests for `OptimizedImage` to verify behavior with null dimensions and conversion of dimensions to integers.

These changes aim to enhance the robustness and coverage of the test suite, ensuring reliable functionality across storage and result handling components.
- Added tests for `storageInitializationProvider` to ensure it handles errors during initialization and migration processes, covering various exception scenarios.
- Introduced tests for `FileLogOutput` to verify graceful handling of exceptions during log rotation and file checks.
- Expanded `PerformanceService` tests to confirm correct operation execution and error handling when trace is null.
- Improved coverage for the `Result` utility by testing fallback paths for unknown failure types and ensuring all branches in error handling are executed.

These changes aim to strengthen the test suite by ensuring robust error handling and comprehensive coverage across multiple components.
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

📊 Test Coverage Report

Coverage: 89.3%
Status: ✅ Passing

Coverage report is available in the workflow artifacts.

Coverage by Layer

Layer Coverage Target Status
Domain 100.0% 100%
Data 92.1% 90%
Presentation 96.7% 80%
Core 84.7% 80%

@koniz-dev koniz-dev merged commit 7d32680 into main Dec 6, 2025
1 check passed
@koniz-dev koniz-dev deleted the wsl2 branch December 6, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants