-
-
30 Aug 2019 08:12:04 UTC
- Distribution: Devel-PerlySense
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (86 / 107 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (433.75KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- App::Ack
- Cache::Cache
- Cache::FileCache
- Carp
- Cwd
- Data::Dumper
- Digest::SHA
- Exporter
- File::Basename
- File::Find
- File::Find::Rule
- File::Path
- File::Slurp
- File::Spec::Functions
- File::chdir
- Getopt::Long
- Graph::Easy
- HTTP::Date
- IO::String
- List::AllUtils
- List::MoreUtils
- List::Util
- Module::Pluggable
- Module::Runtime
- Moo
- POSIX
- PPI
- PPI::Document
- PPI::Dumper
- Params::Util
- Path::Class
- Path::Tiny
- Perl::Critic
- Perl::Tidy
- Pod::Text
- Pod::Usage
- Spiffy
- Storable
- Sub::Exporter
- Text::Table
- Time::HiRes
- Tree::Parser
- YAML::Tiny
- base
- lib
- strict
- utf8
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Close()
Discard the current document no-questions-asked (i.e. even if it's not saved).
Note that this object is in an unusable state until a new document is created or opened.
}, " Got POD"); is($oLocation->rhProperty->{name}, "Close", " Got name ok"); is($oLocation->rhProperty->{docType}, "hint", " Got docType ok"); is($oLocation->rhProperty->{found}, "method", " Got found ok");
ok($oLocation = $oDocument->oLocationPod(name => "Write", lookFor => "method"), "Found correct POD line (inside POD block)"); is($oLocation->file, $fileOrigin, " Got file"); is($oLocation->row, 391, " row"); is($oLocation->col, 1, " col"); is($oLocation->rhProperty->{pod}, q{=head1 METHODS - ADDING TEXT
Write($text)
Append $text to the document (using the current style etc).
}, " Got POD"); is($oLocation->rhProperty->{name}, "Write", " Got name ok"); is($oLocation->rhProperty->{docType}, "hint", " Got docType ok"); is($oLocation->rhProperty->{found}, "method", " Got found ok");
ok($oLocation = $oDocument->oLocationPod(name => "hasWrittenParagraph", lookFor => "method"), "Found correct POD line =item"); is($oLocation->file, $fileOrigin, " Got file"); is($oLocation->row, 1193, " row"); is($oLocation->col, 1, " col"); is($oLocation->rhProperty->{pod}, q{=head1 PRIVATE PROPERTIES
- hasWrittenParagraph
-
Whether the writer has written a paragraph yet.
ok($oLocation = $oDocument->oLocationPod(name => "hasWrittenText", lookFor => "method"), "Found correct POD line =item ()"); is($oLocation->file, $fileOrigin, " Got file"); is($oLocation->row, 1198, " row"); is($oLocation->col, 1, " col"); is($oLocation->rhProperty->{pod}, q{=head1 PRIVATE PROPERTIES
- hasWrittenText
-
Whether the writer has written any text or paragraph yet.
note("Base classes");
$dirData = "data/project-lib"; my $rexFileDest = qr/Game.Object.Worm.pm/;
ok($oDocument = Devel::PerlySense::Document->new(oPerlySense => Devel::PerlySense->new()), "new ok"); $fileOrigin = "$dirData/Game/Object/Worm/Bot.pm"; ok($oDocument->parse(file => $fileOrigin), "Parsed file ok");
ok(! $oDocument->oLocationPod(name => "loadFile", lookFor => "method", ignoreBaseModules => 1), "Did not find anything in current package only");
ok($oLocation = $oDocument->oLocationPod(name => "loadFile", lookFor => "method"), "Found correct POD in base package"); like($oLocation->file, $rexFileDest, " Got file"); is($oLocation->row, 355, " row"); is($oLocation->col, 1, " col");
__END__
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 79:
=back doesn't take any parameters, but you said =back }, " Got POD"); is($oLocation->rhProperty->{name}, "hasWrittenParagraph", " Got name ok"); is($oLocation->rhProperty->{docType}, "hint", " Got docType ok"); is($oLocation->rhProperty->{found}, "method", " Got found ok");
- Around line 101:
=back doesn't take any parameters, but you said =back }, " Got POD"); is($oLocation->rhProperty->{name}, "hasWrittenText", " Got name ok"); is($oLocation->rhProperty->{docType}, "hint", " Got docType ok"); is($oLocation->rhProperty->{found}, "method", " Got found ok");
Module Install Instructions
To install Devel::PerlySense, copy and paste the appropriate command in to your terminal.
cpanm Devel::PerlySense
perl -MCPAN -e shell install Devel::PerlySense
For more information on module installation, please visit the detailed CPAN module installation guide.