File Coverage

blib/lib/Test/Run/CmdLine/Plugin/TrimDisplayedFilenames.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Test::Run::CmdLine::Plugin::TrimDisplayedFilenames;
2              
3 2     2   482821 use strict;
  2         6  
  2         75  
4 2     2   11 use warnings;
  2         3  
  2         107  
5              
6 2     2   42 use 5.014;
  2         7  
7              
8             =head1 NAME
9              
10             Test::Run::CmdLine::Plugin::TrimDisplayedFilenames - trim the filenames
11             that are displayed by the harness to make them more managable.
12              
13             =head1 DESCRIPTION
14              
15             This is a L<Test::Run::CmdLine> plugin that allows one to trim the
16             filenames that are displayed by the harness. It accepts
17             the parameter by using the C<'HARNESS_TRIM_FNS'>
18             environment variable. A few sample ones are:
19              
20             fromre:\At\z
21              
22             (to match everything up to a "t" directory.)
23              
24             keep:3
25              
26             (to keep only 3 components).
27              
28             =head1 VERSION
29              
30             Version 0.0127
31              
32             =cut
33              
34             our $VERSION = '0.0127';
35              
36             =head1 METHODS
37              
38             =cut
39              
40             =head2 $self->private_backend_plugins()
41              
42             Returns the Backend Plugins as specified by this plugin. See
43             L<Test::Run::CmdLine> for more information.
44              
45             =cut
46              
47             sub private_backend_plugins
48             {
49 1     1 1 5 my $self = shift;
50              
51 1         112 return [qw(TrimDisplayedFilenames)];
52             }
53              
54             =head2 $self->private_non_direct_backend_env_mapping()
55              
56             Returns the non-direct Backend Environment Mappings, that will specify
57             the YAML information. See L<Test::Run::CmdLine> for more information.
58              
59             =cut
60              
61             sub private_non_direct_backend_env_mapping
62             {
63 1     1 1 3 my $self = shift;
64              
65             return [
66             {
67 1         3193 type => "direct",
68             env => "HARNESS_TRIM_FNS",
69             arg => "trim_displayed_filenames_query",
70             },
71             ];
72             }
73              
74             =head1 AUTHOR
75              
76             Shlomi Fish, C<< <shlomif at cpan.org> >>
77              
78             =head1 BUGS
79              
80             Please report any bugs or feature requests to
81             C<bug-test-run-plugin-alternateinterpreters at rt.cpan.org>, or through the web interface at
82             L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test::Run::Plugin::TrimDisplayedFilenames>.
83             I will be notified, and then you'll automatically be notified of progress on
84             your bug as I make changes.
85              
86             =head1 SUPPORT
87              
88             You can find documentation for this module with the perldoc command.
89              
90             perldoc Test::Run::CmdLine::Plugin::TrimDisplayedFilenames
91              
92             You can also look for information at:
93              
94             =over 4
95              
96             =item * CPAN Ratings
97              
98             L<http://cpanratings.perl.org/d/Test::Run::Plugin::TrimDisplayedFilenames>
99              
100             =item * RT: CPAN's request tracker
101              
102             L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test::Run::Plugin::TrimDisplayedFilenames>
103              
104             =item * MetaCPAN
105              
106             L<http://metacpan.org/release/Test-Run-Plugin-TrimDisplayedFilenames>
107              
108             =back
109              
110             =head1 SEE ALSO
111              
112             L<Test::Run::Plugin::TrimDisplayedFilenames>, L<Test::Run>,
113             L<Test::Run::CmdLine>, L<TAP::Parser>
114              
115             =head1 COPYRIGHT & LICENSE
116              
117             Copyright 2007 Shlomi Fish, all rights reserved.
118              
119             This program is released under the following license: MIT X11.
120              
121             =cut
122