blib/lib/Mason/t/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 14 | 15 | 93.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mason::t::Util; | ||||||
2 | $Mason::t::Util::VERSION = '2.24'; | ||||||
3 | 1 | 1 | 756 | use Test::Class::Most parent => 'Mason::Test::Class'; | |||
1 | 28943 | ||||||
1 | 8 | ||||||
4 | 1 | 1 | 76 | use Mason::Util qw(combine_similar_paths); | |||
1 | 2 | ||||||
1 | 75 | ||||||
5 | |||||||
6 | sub test_combine_similar_paths : Tests { | ||||||
7 | 1 | 1 | 0 | 801 | cmp_deeply( [ combine_similar_paths(qw(/foo/bar.m /foo/bar.pm /foo.m /foo.pm)) ], | ||
8 | [ '/foo/bar.{m,pm}', '/foo.{m,pm}' ] ); | ||||||
9 | 1 | 1 | 8 | } | |||
1 | 1 | ||||||
1 | 5 | ||||||
10 | |||||||
11 | 1; |