File: Class.t

package info (click to toggle)
libfennec-perl 2.018-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: perl: 2,083; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use Fennec class => 'Data::Dumper';

ok( $INC{'Data/Dumper.pm'}, "Loaded \$CLASS" );
can_ok( __PACKAGE__, 'class' );
lives_ok { is( $CLASS, 'Data::Dumper', "Imported \$CLASS" ) };

tests method => sub {
    my $self = shift;
    is( $self->class, 'Data::Dumper', "Injected 'class' method" );
};

done_testing;