line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dezi::Test::Doc; |
2
|
7
|
|
|
7
|
|
37
|
use Moose; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
43
|
|
3
|
|
|
|
|
|
|
with 'Dezi::Role'; |
4
|
7
|
|
|
7
|
|
46627
|
use SWISH::3 qw( :constants ); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# make accessor all built-ins |
7
|
|
|
|
|
|
|
for my $attr ( keys %{ SWISH_DOC_PROP_MAP() } ) { |
8
|
|
|
|
|
|
|
has $attr => ( is => 'ro', isa => 'Str' ); |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# and any we use in our tests |
12
|
|
|
|
|
|
|
my @attrs = qw( swishdefault swishtitle swishdescription ); |
13
|
|
|
|
|
|
|
for my $attr (@attrs) { |
14
|
|
|
|
|
|
|
has $attr => ( is => 'ro', isa => 'Str' ); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub uri { shift->swishdocpath } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub property { |
20
|
|
|
|
|
|
|
my $self = shift; |
21
|
|
|
|
|
|
|
my $prop = shift or confess "property required"; |
22
|
|
|
|
|
|
|
return $self->$prop; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Dezi::Test::Doc - test Document class for Dezi::Test::Result |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 METHODS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 SWISH_DOC_PROP_MAP |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
All attributes defined in L<SWISH::3> SWISH_DOC_PROP_MAP hash. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 swishdefault |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 swishtitle |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 swishdescription |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 uri |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Alias for swishdocpath. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 property( I<attribute> ) |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Alias for calling I<attribute> directly as a method. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Peter Karman, E<lt>karpet@dezi.orgE<gt> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 BUGS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Please report any bugs or feature requests to C<bug-dezi-app at rt.cpan.org>, or through |
62
|
|
|
|
|
|
|
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-App>. |
63
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SUPPORT |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
perldoc Dezi::App |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
You can also look for information at: |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=over 4 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * Website |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
L<http://dezi.org/> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * IRC |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
#dezisearch at freenode |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * Mailing list |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L<https://groups.google.com/forum/#!forum/dezi-search> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dezi-App> |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Dezi-App> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * CPAN Ratings |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Dezi-App> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * Search CPAN |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
L<https://metacpan.org/dist/Dezi-App/> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=back |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Copyright 2014 by Peter Karman |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
110
|
|
|
|
|
|
|
it under the terms of the GPL v2 or later. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 SEE ALSO |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
L<http://dezi.org/>, L<http://swish-e.org/>, L<http://lucy.apache.org/> |
115
|
|
|
|
|
|
|
|