easy_mock_io 0.1.0
easy_mock_io: ^0.1.0 copied to clipboard
In-memory dart:io for Flutter tests. MockMemoryIO.init() swaps IOOverrides.global for a MemoryFileSystem, so File and Directory access runs in memory and never touches disk. File locks are no-ops (par [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add easy_mock_ioWith Flutter:
$ flutter pub add easy_mock_ioThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
easy_mock_io: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:easy_mock_io/easy_mock_io.dart';