GitLab::API::v4::Mock(3pm)

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.

  1. 11
  2. 12
  3. 13

Authors

See "AUTHORS" in GitLab::API::v4.

License

See "LICENSE" in GitLab::API::v4.

From libgitlab-api-v4-perl 0.27-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.