From 1487949011452ca0852f6a068c73670ef6dd9430 Mon Sep 17 00:00:00 2001 From: alex_h Date: Tue, 14 Jan 2014 14:18:46 +1300 Subject: [PATCH] bug 11544: increasing test coverage for Installer_PerlModules.pm To test 1. run prove t/Installer_PerlModules.t 2. apply patch 3. run prove t/Installer_PerlModules.t notices more tests are run Signed-off-by: Magnus Enger Adds another passing test. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Tests pass :) Signed-off-by: Galen Charlton --- t/Installer_PerlModules.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/Installer_PerlModules.t b/t/Installer_PerlModules.t index c3ed715429..1d5a00c4d4 100755 --- a/t/Installer_PerlModules.t +++ b/t/Installer_PerlModules.t @@ -6,7 +6,7 @@ use strict; use warnings; -use Test::More tests => 16; +use Test::More tests => 17; BEGIN { use_ok('C4::Installer::PerlModules'); @@ -36,3 +36,4 @@ my @module_list = $modules->module_list; %params = map { $_ => 1 } @module_list; ok (exists($params{"DBI"}), 'DBI exists in array'); is ($modules->required('module'=>"String::Random"),1, 'String::Random should return 1 since required'); +ok (!$modules->version_info(), "Testing empty modules"); -- 2.39.5