{"id":13550852,"url":"https://github.com/ciriousjoker/fake_firebase_performance","last_synced_at":"2026-05-20T05:39:13.905Z","repository":{"id":61973224,"uuid":"445766363","full_name":"ciriousjoker/fake_firebase_performance","owner":"ciriousjoker","description":"Flutter package: Fake Firebase Performance for use during Flutter unit \u0026 widget tests.","archived":false,"fork":false,"pushed_at":"2022-01-08T08:43:47.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T18:50:08.085Z","etag":null,"topics":["fake","firebase","firebase-performance","firebase-performance-monitoring","flutter-test","mock","unit-testing"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/fake_firebase_performance","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ciriousjoker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-08T08:35:15.000Z","updated_at":"2024-08-08T13:45:55.000Z","dependencies_parsed_at":"2022-10-24T13:30:37.440Z","dependency_job_id":null,"html_url":"https://github.com/ciriousjoker/fake_firebase_performance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ciriousjoker/fake_firebase_performance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciriousjoker","download_url":"https://codeload.github.com/ciriousjoker/fake_firebase_performance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciriousjoker%2Ffake_firebase_performance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267621597,"owners_count":24116900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fake","firebase","firebase-performance","firebase-performance-monitoring","flutter-test","mock","unit-testing"],"created_at":"2024-08-01T12:01:38.523Z","updated_at":"2026-05-20T05:39:08.850Z","avatar_url":"https://github.com/ciriousjoker.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# Fake Firebase Performance\n\n[![pub package](https://img.shields.io/pub/v/fake_firebase_performance.svg)](https://pub.dartlang.org/packages/fake_firebase_performance)\n\nFakes to write unit tests for apps using Firebase Performance monitoring. Instantiate a `FakeFirebasePerformance`, then pass it around your project to replace `FirebasePerformance.instance`. This fake acts like `FirebasePerformance` except it will load mocked data instead.\n\n## Usage\n\n### A simple usage example\n\n```dart\nimport 'package:fake_firebase_performance/fake_firebase_performance.dart';\n\nvoid main() async {\n  final perf = FakeFirebasePerformance();\n\n  perf.isPerformanceCollectionEnabled(); // will return false\n\n  perf.newTrace('test'); // will do nothing\n  perf.newHttpMetric(\"https://example.com/\", HttpMethod.Get); // will do nothing\n}\n```\n\nThis `perf` object needs to replace the real `FirebasePerformance.instance` during testing. You can do this for example with [Riverpod](https://pub.dev/packages/riverpod) or by doing something like this:\n\n```dart\nawait tester.pumpWidget(\n  MaterialApp(\n    title: 'FirebasePerformance Example',\n    home: MyApp(overrideFirebasePerformance: perf),\n  ),\n);\n```\n\n## Missing functionality\n\n- `perf.app` will throw\n- `perf.pluginConstants` is empty\n- `perf.newTrace()` does nothing\n- `perf.newHttpMetric()` does nothing\n\n## Compatibility table\n\n| firebase_performance | fake_firebase_performance |\n| -------------------- | ------------------------- |\n| \u003e=0.8.0              | 1.0.0                     |\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker](https://github.com/CiriousJoker/fake_firebase_performance/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciriousjoker%2Ffake_firebase_performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciriousjoker%2Ffake_firebase_performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciriousjoker%2Ffake_firebase_performance/lists"}