Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

GitLab::API::v4::Mock

Name GitLab::API::v4::Mock
Version 0.26
Located at /usr/share/perl5
File /usr/share/perl5/GitLab/API/v4/Mock.pm
Is Core No
Search CPAN for this module GitLab::API::v4::Mock
Documentation GitLab::API::v4::Mock
Module Details GitLab::API::v4::Mock


NAME

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


SYNOPSIS

    use GitLab::API::v4::Mock;

    my $api = GitLab::API::v4::Mock->new();


DESCRIPTION

This module is a subclass of the GitLab::API::v4 manpage. It modifies it to mock the REST client via the GitLab::API::v4::Mock::RESTClient manpage.

This module is meant to be used for writing unit tests.


ATTRIBUTES

url

This attribute is altered from url in the GitLab::API::v4 manpage 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 the GitLab::API::v4 manpage to default to the GitLab::API::v4::Mock::RESTClient manpage.


SUPPORT

See SUPPORT in the GitLab::API::v4 manpage.


AUTHORS

See AUTHORS in the GitLab::API::v4 manpage.


COPYRIGHT AND LICENSE

See COPYRIGHT AND LICENSE in the GitLab::API::v4 manpage.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026