GitLab::API::v4::Mock3pm
Mock api object for testing.
Usage
use GitLab::API::v4::Mock;my $api = GitLab::API::v4::Mock->new();
Overview
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.
Attributes
url
This attribute is altered from "url" in GitLab::API::v4 to default to "https://example.com/api/v4" and to not be required.
rest_client_class
This attribute is altered from "rest_client_class" in GitLab::API::v4 to default to GitLab::API::v4::Mock::RESTClient.
Support
See "SUPPORT" in GitLab::API::v4.
Releases
3 releases since Debian 11 (Bullseye); the text changed 2 times.