File: 03.accessor.t

package info (click to toggle)
libnet-ssl-expiredate-perl 1.25-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 547; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- mode: cperl; -*-
use Test::Base;
use Net::SSL::ExpireDate;
use FindBin;

plan tests => 2 * blocks;

run {
    my $block = shift;
    my $ed = Net::SSL::ExpireDate->new( $block->type => $block->target );

    is $ed->type,   $block->type,   $block->name.': type';
    is $ed->target, $block->target, $block->name.': target';
}

__END__
=== rt.cpan.org
--- type: ssl
--- target: rt.cpan.org
=== cert.pem
--- type: file
--- target eval
"$FindBin::Bin/cert.pem";