File: 15newmatcher.t

package info (click to toggle)
libemail-foldertype-perl 0.812-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 144 kB
  • ctags: 14
  • sloc: perl: 63; makefile: 39
file content (14 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Test::More tests => 3;

use_ok('Email::FolderType',qw(folder_type));

is(folder_type('t/this_is_a_test_matcher'), 'TestMatcher', 'new TestMatcher works');
is(folder_type('t/testmh/.'), 'MH', 'MH still works');



package Email::FolderType::TestMatcher;

sub match { return 1 if $_[0] =~ /this_is_a_test_matcher/; }

1;