GitLab::API::v4::Mock(3pm) | User Contributed Perl Documentation | GitLab::API::v4::Mock(3pm) |
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.
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.
2023-02-23 | perl v5.36.0 |