diff options
| author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 00:55:01 +0200 | 
|---|---|---|
| committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-04 00:55:01 +0200 | 
| commit | 90b92fc530a2583025cc937c401eb0da2832ddb7 (patch) | |
| tree | df1b6bed03584b59c94c557ca94256644bd06c7d /t | |
| parent | f07ced343a40ec0f507f099e055fcd7f9c912c8b (diff) | |
| download | sbotools2-90b92fc530a2583025cc937c401eb0da2832ddb7.tar.xz | |
19-unit.t: add test for get_filename_from_link()
Diffstat (limited to 't')
| -rwxr-xr-x | t/19-unit.t | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/t/19-unit.t b/t/19-unit.t index e93c539..80ba3f0 100755 --- 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"); +} | 
