1GitLab::API::v4::Mock(3Upsme)r Contributed Perl DocumentaGtiitoLnab::API::v4::Mock(3pm)
2
3
4

NAME

6       GitLab::API::v4::Mock - Mock API object for testing.
7

SYNOPSIS

9           use GitLab::API::v4::Mock;
10
11           my $api = GitLab::API::v4::Mock->new();
12

DESCRIPTION

14       This module is a subclass of GitLab::API::v4.  It modifies it to mock
15       the REST client via GitLab::API::v4::Mock::RESTClient.
16
17       This module is meant to be used for writing unit tests.
18

ATTRIBUTES

20   url
21       This attribute is altered from "url" in GitLab::API::v4 to default to
22       "https://example.com/api/v4" and to not be required.
23
24   rest_client_class
25       This attribute is altered from "rest_client_class" in GitLab::API::v4
26       to default to GitLab::API::v4::Mock::RESTClient.
27

SUPPORT

29       See "SUPPORT" in GitLab::API::v4.
30

AUTHORS

32       See "AUTHORS" in GitLab::API::v4.
33
35       See "COPYRIGHT AND LICENSE" in GitLab::API::v4.
36
37
38
39perl v5.30.0                      2019-10-02        GitLab::API::v4::Mock(3pm)
Impressum