File: filter.t

package info (click to toggle)
libspiffy-perl 0.21-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 256 kB
  • ctags: 99
  • sloc: perl: 1,067; makefile: 50
file content (24 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use lib 't', 'lib';
use strict;
use warnings;

package XXX;
use Spiffy -Base; #, '-filter_dump';

const name => 'world';

sub foo {
   "Hello, " . $self->name;
}

sub bar() {
    my $self = shift;
    return $self;
}

package main;
use Test::More tests => 2;

my $xxx = XXX->new;
is($xxx->foo, 'Hello, world');
is(XXX::bar(42), 42);