< Home - < Back

perl-Mock-Sub


Information about the package, perl-Mock-Sub, which is shipped with common Linux distributions. The perl-Mock-Sub package is designed for, Mock package, object and standard subroutines, with unit testing.


Package Name:

perl-Mock-Sub

Summary:

Mock package, object and standard subroutines, with unit testing

Description:

Easy to use and very lightweight module for mocking out sub calls. Very useful for testing areas of your own modules where getting coverage may be difficult due to nothing to test against, and/or to reduce test run time by eliminating the need to call subs that you really don't want or need to test.

Architecture:

noarch

Version:

1.07

Release:

1.el6

Size:

21 k

Repository:

epel

From Repository:

Licence:

GPL+ or Artistic



Handy Yum Commands for perl-Mock-Sub


Control the perl-Mock-Sub package with the following handy commands outlined below.


Command

Description of Command

yum install perl-Mock-Sub

This command will install perl-Mock-Sub on the server.

yum remove perl-Mock-Sub

This command will un-install perl-Mock-Sub on the server. When you run this command, you will be asked if you are sure that you want to remove perl-Mock-Sub, so you have to manually confirm that you want to do this.

yum -y remove perl-Mock-Sub

This command will un-install perl-Mock-Sub on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Mock-Sub when using the -y flag.

yum update perl-Mock-Sub

This command will update perl-Mock-Sub to the latest version. When you run this command, you will be asked if you are sure that you want to remove perl-Mock-Sub, so you have to manually confirm that you want to do this.

yum -y update perl-Mock-Sub

This command will update perl-Mock-Sub to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Mock-Sub when using the -y flag.

yum info perl-Mock-Sub

This command will show you core information about the perl-Mock-Sub package.

yum deplist perl-Mock-Sub

This command will show you the dependencies for perl-Mock-Sub. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update perl-Mock-Sub

This command will check if there is an update waiting on perl-Mock-Sub. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.