commit 90b92fc530a2583025cc937c401eb0da2832ddb7
parent f07ced343a40ec0f507f099e055fcd7f9c912c8b
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Wed, 4 May 2016 00:55:01 +0200
19-unit.t: add test for get_filename_from_link()
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/t/19-unit.t b/t/19-unit.t
@@ -11,7 +11,7 @@ use lib "$RealBin/../SBO-Lib/lib";
use SBO::Lib qw/ script_error usage_error open_fh %config indent get_installed_packages get_sbo_location get_sbo_locations get_local_outdated_versions /;
use Capture::Tiny qw/ capture_merged /;
-plan tests => 37;
+plan tests => 38;
# 1-2: test script_error();
{
@@ -223,3 +223,8 @@ SKIP: {
local $config{LOCAL_OVERRIDES} = 'FALSE';
is(scalar get_local_outdated_versions(), 0, 'get_local_outdated_versions() returned an empty list');
}
+
+# 38: test get_filename_from_link();
+{
+ is (SBO::Lib::get_filename_from_link('/'), undef, "get_filename_from_link() returned undef");
+}