How to Install and Uninstall perl-Test-MockModule Package on openSUSE Leap

Last updated: May 04,2024

1. Install "perl-Test-MockModule" package

This tutorial shows how to install perl-Test-MockModule on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install perl-Test-MockModule

2. Uninstall "perl-Test-MockModule" package

In this section, we are going to explain the necessary steps to uninstall perl-Test-MockModule on openSUSE Leap:

$ sudo zypper remove perl-Test-MockModule

3. Information about the perl-Test-MockModule package on openSUSE Leap

Information for package perl-Test-MockModule:
---------------------------------------------
Repository : Main Repository
Name : perl-Test-MockModule
Version : 0.13-1.17
Arch : noarch
Vendor : SUSE LLC
Installed Size : 50.5 KiB
Installed : No
Status : not installed
Source package : perl-Test-MockModule-0.13-1.17.src
Upstream URL : http://search.cpan.org/dist/Test-MockModule/
Summary : Override subroutines in a module for unit testing
Description :
'Test::MockModule' lets you temporarily redefine subroutines in other
packages for the purposes of unit testing.
A 'Test::MockModule' object is set up to mock subroutines for a given
module. The object remembers the original subroutine so it can be easily
restored. This happens automatically when all MockModule objects for the
given module go out of scope, or when you 'unmock()' the subroutine.