Baseflow / Baseflow/flutter_cache_manager

I can't pass a File in FileInfo (overriding getFileStream() for testing)

オープン
#364 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
1

説明

## 💬 Questions and Help

I want to do widget testing on a CircleAvatar, but to mock the image I need to pass an asset file. But, as I pass File('path/to/mock/img'), it shows me the error:

`Abstract classes can't be instantiated.
Try creating an instance of a concrete subtype.`

And, `file 6.1.2` classifies file as abstract. Then, how can I pass file in getFileStream()?

Is there any work around for this? If so, do suggest.

@renefloor

For questions or help we recommend checking:

- The [Flutter tag in Stack Overflow](https://stackoverflow.com/questions/tagged/flutter)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

このissueには、調査すべきソースファイル、テスト、エントリーポイントが記載されていません。まず、期待される成果がコード変更、ドキュメントの更新、使用方法の案内のいずれなのかを明確にしてください。何をもって完了とするかの受け入れ基準は示されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile-dev, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。