File: 0100_output.t

package info (click to toggle)
libperl-metrics-simple-perl 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 316 kB
  • sloc: perl: 1,472; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use strict;
use warnings;

use FindBin qw($Bin);
use lib "$Bin/../lib";

use Test::More tests => 2;

my $CLASS_TO_TEST = 'Perl::Metrics::Simple::Output';

use_ok($CLASS_TO_TEST);

test_new();

exit;

sub test_new {
    my $fake_analysis = bless {}, 'Perl::Metrics::Simple::Analysis';
    my $subject = $CLASS_TO_TEST->new($fake_analysis);

    isa_ok( $subject, $CLASS_TO_TEST );
}