Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bcf64d2899
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.39 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use strict;
use warnings;
use Test::More tests => 1;
use Data::UUID qw(NameSpace_DNS);

my $generator = new Data::UUID;
open(my $bad_fh,"<","/a/failing/path/that/does/not/exist/but/sets/dollarbang");

    eval {
        ok($generator->create_from_name_str( NameSpace_DNS, '1.2.3.4' ), "\$! didn't leak!");;
    };

if (my $msg = $@) {
    ok(undef, "create_from_name_str failed: $msg");
}
Something went wrong with that request. Please try again.