{"id":20144015,"url":"https://github.com/bedirhanssaglam/mockify","last_synced_at":"2026-05-01T23:31:15.235Z","repository":{"id":242923328,"uuid":"810954957","full_name":"bedirhanssaglam/mockify","owner":"bedirhanssaglam","description":"Mockify is a Dart class used for mocking function calls and verifying method invocations in Flutter.","archived":false,"fork":false,"pushed_at":"2024-06-05T17:02:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T23:43:44.285Z","etag":null,"topics":["dart","flutter","mock","mockito","testing"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bedirhanssaglam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T17:00:56.000Z","updated_at":"2024-06-05T17:03:16.000Z","dependencies_parsed_at":"2024-06-05T19:23:24.887Z","dependency_job_id":null,"html_url":"https://github.com/bedirhanssaglam/mockify","commit_stats":null,"previous_names":["bedirhanssaglam/mockify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bedirhanssaglam/mockify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedirhanssaglam%2Fmockify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedirhanssaglam%2Fmockify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedirhanssaglam%2Fmockify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedirhanssaglam%2Fmockify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bedirhanssaglam","download_url":"https://codeload.github.com/bedirhanssaglam/mockify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedirhanssaglam%2Fmockify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["dart","flutter","mock","mockito","testing"],"created_at":"2024-11-13T22:08:26.354Z","updated_at":"2026-05-01T23:31:15.192Z","avatar_url":"https://github.com/bedirhanssaglam.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mockify\n\nMockify is a Dart class used for mocking function calls and verifying method invocations.\n\n## Basic Example\n\n\n```dart\nvoid main() {\n  group('Calculator tests', () {\n    late Mockify mockify;\n\n    setUp(() {\n      mockify = Mockify();\n    });\n\n    test('Subtract method test with negative result', () {\n      mockify.when(#subtract, (args) =\u003e args[0] - args[1]);\n\n      final resultSubtract = mockify.call\u003cint\u003e(#subtract, [2, 5]);\n      expect(resultSubtract, -3);\n\n      mockify.verify(#subtract, called: 1);\n    });\n  });\n}\n```\n\n## Running Tests\nTo run tests, you can use the following command in the terminal at the root of project:\n\n```bash\ndart test\n```\n\nor\n\n```bash\nflutter test\n```\n\nThese commands will find test files in project and report the test results.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedirhanssaglam%2Fmockify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbedirhanssaglam%2Fmockify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedirhanssaglam%2Fmockify/lists"}