firebase_storage_mocks 0.2.0 copy "firebase_storage_mocks: ^0.2.0" to clipboard
firebase_storage_mocks: ^0.2.0 copied to clipboard

outdated

Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.

Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.

Usage #

A simple usage example:

import 'package:firebase_storage_mocks/firebase_storage_mocks.dart';

main() {
  final storage = MockFirebaseStorage('someimage.png');
  final storageRef = storage.ref().child(filename);
  final image = File(filename);
  final task = storageRef.putFile(image);
  await task.onComplete;
  // Prints 'gs://some-bucket//someimage.png'.
  print(await getGsLink(storageRef));
}

Future<String> getGsLink(StorageReference storageRef) async {
  return 'gs://' + await storageRef.getBucket() + '/' + storageRef.path;
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

37
likes
0
pub points
88%
popularity

Publisher

verified publisherwafrat.com

Mocks for Firebase Storage. Use this package to write unit tests involving Firebase Storage.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

firebase_storage, flutter, mockito

More

Packages that depend on firebase_storage_mocks