{"id":24343469,"url":"https://github.com/nigelhorne/test-mockingbird","last_synced_at":"2025-10-08T10:19:08.157Z","repository":{"id":271594298,"uuid":"913956530","full_name":"nigelhorne/Test-Mockingbird","owner":"nigelhorne","description":"Advanced mocking library for Perl with support for dependency injection and spies","archived":false,"fork":false,"pushed_at":"2025-06-14T12:49:59.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T18:09:52.313Z","etag":null,"topics":["cpan","cpan-module","perl","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Test::Mockingbird","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigelhorne.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-01-08T17:10:57.000Z","updated_at":"2025-06-14T12:50:03.000Z","dependencies_parsed_at":"2025-01-08T18:26:46.017Z","dependency_job_id":"af2f9649-a481-40a4-a054-ad951a83afee","html_url":"https://github.com/nigelhorne/Test-Mockingbird","commit_stats":null,"previous_names":["nigelhorne/test-mockingbird"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nigelhorne/Test-Mockingbird","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FTest-Mockingbird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FTest-Mockingbird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FTest-Mockingbird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FTest-Mockingbird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigelhorne","download_url":"https://codeload.github.com/nigelhorne/Test-Mockingbird/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FTest-Mockingbird/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211570,"owners_count":23125537,"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","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":["cpan","cpan-module","perl","perl5"],"created_at":"2025-01-18T08:35:03.550Z","updated_at":"2025-10-08T10:19:08.137Z","avatar_url":"https://github.com/nigelhorne.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nTest::Mockingbird - Advanced mocking library for Perl with support for dependency injection and spies\n\n# VERSION\n\nVersion 0.02\n\n# SYNOPSIS\n\n    use Test::Mockingbird;\n\n    # Mocking\n    Test::Mockingbird::mock('My::Module', 'method', sub { return 'mocked!' });\n\n    # Spying\n    my $spy = Test::Mockingbird::spy('My::Module', 'method');\n    My::Module::method('arg1', 'arg2');\n    my @calls = $spy-\u003e(); # Get captured calls\n\n    # Dependency Injection\n    Test::Mockingbird::inject('My::Module', 'Dependency', $mock_object);\n\n    # Unmocking\n    Test::Mockingbird::unmock('My::Module', 'method');\n\n    # Restore everything\n    Test::Mockingbird::restore_all();\n\n# DESCRIPTION\n\nTest::Mockingbird provides powerful mocking, spying, and dependency injection capabilities to streamline testing in Perl.\n\n# METHODS\n\n## mock($package, $method, $replacement)\n\nMocks a method in the specified package.\n\n## unmock($package, $method)\n\nRestores the original method for a mocked method.\n\n## spy($package, $method)\n\nSpies on a method, tracking calls and arguments.\n\n## inject($package, $dependency, $mock\\_object)\n\nInjects a mock object for a dependency.\n\n## restore\\_all()\n\nRestores all mocked methods and dependencies to their original state.\n\n# SUPPORT\n\nThis module is provided as-is without any warranty.\n\nPlease report any bugs or feature requests to `bug-test-mockingbird at rt.cpan.org`,\nor through the web interface at\n[http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Mockingbird](http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Mockingbird).\nI will be notified, and then you'll\nautomatically be notified of progress on your bug as I make changes.\n\nYou can find documentation for this module with the perldoc command.\n\n    perldoc Test::Mockingbird\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Ftest-mockingbird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigelhorne%2Ftest-mockingbird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Ftest-mockingbird/lists"}