Baseflow / Baseflow/flutter_cached_network_image

Export FileSystem to allow testing of the CacheManager

Open
#710 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

## 🏗 Enhancement Proposal

Our project extends CacheManager which allows for a Config object to be passed in. We are unable to test it because we can not mock FileSystem as it's not an export to the package. If this was exported then a mocked FileSystem could be passed in.

### Pitch

Export the FileSystem abstraction to allow tests to happen at the cache manager level. Right now, it is not available to external packages.

### Platforms affected (mark all that apply)
- [x] :iphone: iOS
- [x] :robot: Android

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.