GitLab::API::v4::Mock - Mock API object for testing.
use GitLab::API::v4::Mock; my $api = GitLab::API::v4::Mock->new();
This module is a subclass of GitLab::API::v4. It modifies it to mock the REST client via GitLab::API::v4::Mock::RESTClient.
This module is meant to be used for writing unit tests.
This attribute is altered from "url" in GitLab::API::v4 to default to https://example.com/api/v4 and to not be required.
https://example.com/api/v4
This attribute is altered from "rest_client_class" in GitLab::API::v4 to default to GitLab::API::v4::Mock::RESTClient.
See "SUPPORT" in GitLab::API::v4.
See "AUTHORS" in GitLab::API::v4.
See "COPYRIGHT AND LICENSE" in GitLab::API::v4.
To install GitLab::API::v4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GitLab::API::v4
CPAN shell
perl -MCPAN -e shell install GitLab::API::v4
For more information on module installation, please visit the detailed CPAN module installation guide.