File Coverage

blib/lib/Text/Livedoor/Wiki/Plugin/Block/CommentOut.pm
Criterion Covered Total %
statement 19 19 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 28 28 100.0


line stmt bran cond sub pod time code
1             package Text::Livedoor::Wiki::Plugin::Block::CommentOut;
2              
3 5     5   28 use warnings;
  5         13  
  5         226  
4 5     5   31 use strict;
  5         10  
  5         161  
5 5     5   24 use base qw(Text::Livedoor::Wiki::Plugin::Block);
  5         11  
  5         446  
6              
7             sub check {
8 232     232 1 421 my $class = shift;
9 232         329 my $line = shift;
10 232         278 my $args = shift;
11 232         507 my $id = $args->{id};
12 232         1020 my $on_next = $args->{on_next};
13 232 100       762 if( $line =~ /^\/\// ) {
14 6         13 $Text::Livedoor::Wiki::scratchpad->{skip_ajust_block_break} = '1';
15 6         23 return { id => $id };
16             }
17 226         1078 return;
18             }
19              
20             sub get {
21 2     2 1 7 return "";
22             }
23              
24             1;
25              
26             =head1 NAME
27              
28             Text::Livedoor::Wiki::Plugin::Block::CommentOut - Comment Out Block Plugin
29              
30             =head1 DESCRIPTION
31              
32             comment out text so that the text does not show up on HTML.
33             This is NOT the kind of plugin which convert HTML comment tag such as