Search packages, repositories and app categories

GitHub repositoryatn832/firebase_storage_mocks

firebase_storage_mocks

atn832/firebase_storage_mocks open-source repository details.

firebase_storage_mocks project cover
Stars
10
Forks
27
Last push (UTC)
Jun 5, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Firebase Storage Mocks

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

pub package

Usage

A simple usage example: (assumes assets/someimage.png exists in project and is included in assets section of pubspec.yaml)

import 'package:firebase_storage_mocks/firebase_storage_mocks.dart';
import 'package:flutter/services.dart' show rootBundle;

main() async {
  final storage = MockFirebaseStorage();
  const filename = 'someimage.png';
  final storageRef = storage.ref().child(filename);
  final localImage = await rootBundle.load("assets/$filename");
  final task = await storageRef.putData(localImage.buffer.asUint8List());
  // Prints 'gs://some-bucket//someimage.png'.
  print(task.ref.fullPath);
}

Compatibility table

firebase_storage firebase_storage_mocks
13.0.0 0.8.0
12.0.0 0.7.0
11.0.0 0.6.0
10.0.0 0.5.1

Features and bugs

Please file feature requests and bugs at the issue tracker.

atn GitHub avatar
GitHub author

atn ↗

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 6 items

  • flutter{"sdk":"flutter"}
  • firebase_storage^13.0.0
  • flutter_testDevelopment{"sdk":"flutter"}
  • fileDevelopment^6.1.2
  • pedanticDevelopment^1.0.0
  • testDevelopment^1.16.5

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗