line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Prove::Base; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
2877
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
53
|
|
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
1407
|
use Cwd 'abs_path'; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
1607
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = 0.09; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'prefix'; |
10
|
|
|
|
|
|
|
has 'conf'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub add_template_path { |
13
|
7
|
|
|
7
|
1
|
65
|
my ($self, $renderer, $class) = @_; |
14
|
|
|
|
|
|
|
|
15
|
7
|
|
|
|
|
53
|
$class =~ s{::}{/}g; |
16
|
7
|
|
|
|
|
19
|
$class .= '.pm'; |
17
|
|
|
|
|
|
|
|
18
|
7
|
|
|
|
|
346
|
my $public = abs_path $INC{$class}; |
19
|
7
|
|
|
|
|
49
|
$public =~ s/\.pm$//; |
20
|
|
|
|
|
|
|
|
21
|
7
|
|
|
|
|
16
|
push @{$renderer->paths}, "$public/templates"; |
|
7
|
|
|
|
|
57
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Mojolicious::Plugin::Prove::Base |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 0.09 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 METHODS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 add_template_path |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Adds the path to templates for some loaded classes |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Renee Baecker <reneeb@cpan.org> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Renee Baecker. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is free software, licensed under: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|