{"id":15649945,"url":"https://github.com/book/git-repository-plugin-test","last_synced_at":"2025-03-30T00:13:44.957Z","repository":{"id":12990160,"uuid":"15669117","full_name":"book/Git-Repository-Plugin-Test","owner":"book","description":"Helper methods for testing interactions with Git","archived":false,"fork":false,"pushed_at":"2019-09-29T06:42:34.000Z","size":168,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T01:45:21.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ebalderama/hurdlr","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/book.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-06T08:30:32.000Z","updated_at":"2019-09-29T07:49:57.000Z","dependencies_parsed_at":"2022-09-18T23:12:23.828Z","dependency_job_id":null,"html_url":"https://github.com/book/Git-Repository-Plugin-Test","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FGit-Repository-Plugin-Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FGit-Repository-Plugin-Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FGit-Repository-Plugin-Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FGit-Repository-Plugin-Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/book","download_url":"https://codeload.github.com/book/Git-Repository-Plugin-Test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258871,"owners_count":20748573,"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":[],"created_at":"2024-10-03T12:32:38.278Z","updated_at":"2025-03-30T00:13:44.929Z","avatar_url":"https://github.com/book.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nGit::Repository::Plugin::Test - Helper methods for testing interactions with Git\n\n# VERSION\n\nversion 0.007\n\n# SYNOPSIS\n\n    use Test::More tests =\u003e 2;\n    use Git::Repository qw(Test);\n\n    my $repo = Git::Repository-\u003enew(...);\n\n    # run Git commands as tests\n    $repo-\u003erun_exit_ok('status');\n    $repo-\u003erun_exit_is(1, 'nonexistant-subcommand');\n\n# DESCRIPTION\n\nAdds `run_exit_ok` and `run_exit_is` methods to the Git::Repository object\nthat can be used for testing Git operations.\n\n# METHODS\n\n[Git::Repository::Plugin::Test](https://metacpan.org/pod/Git::Repository::Plugin::Test) adds the\nfollowing methods:\n\n## run\\_exit\\_ok(@cmd)\n\nLike [Git::Repository](https://metacpan.org/pod/Git::Repository)'s `run` but exceptions are caught and\nreported as test failures.\n\n## run\\_exit\\_is($expected\\_exit\\_code, @cmd)\n\nLike [Git::Repository](https://metacpan.org/pod/Git::Repository)'s `run` but exceptions are caught and\nreported as test failures unless exit code matches expected exit code.\n\n## branch\\_exists($branchname)\n=head2 branch\\_not\\_exists($branchname)\n\nTest for the existance of a branch.\n\n# SEE ALSO\n\n[Git::Repository](https://metacpan.org/pod/Git::Repository), [Test::Builder](https://metacpan.org/pod/Test::Builder), [Git::Repository::Plugin::TestSetUp](https://metacpan.org/pod/Git::Repository::Plugin::TestSetUp)\n\n# AUTHOR\n\nNathaniel G. Nutter \u003cnnutter@cpan.org\u003e\n\n# COPYRIGHT\n\nCopyright 2013 - Nathaniel G. Nutter\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fgit-repository-plugin-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbook%2Fgit-repository-plugin-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fgit-repository-plugin-test/lists"}