flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Export FileSystem to allow testing of the CacheManager

Open sampontec opened this issue 3 years ago • 0 comments

🏗 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

sampontec avatar Feb 11 '22 15:02 sampontec