Debian Codegraph @

t/13-category-hash-bug.t

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 use strictscip-perl cpan XML-Feed v1.0.0 strict/;
2 use warningsscip-perl cpan XML-Feed v1.0.0 warnings/;
3 use Test::Morescip-perl cpan XML-Feed v1.0.0 Test/More/;
4
5 eval { requirescip-perl cpan XML-Feed v1.0.0 main/require(). XML::RSS::LibXML };
6 planscip-perl cpan XML-Feed v1.0.0 main/plan(). skip_all => "XML::RSS::LibXML is required." if $@scip-perl cpan XML-Feed v1.0.0 main/`$@`.;
•7 planscip-perl cpan XML-Feed v1.0.0 main/plan(). skip_all => "category-bug.xml does not exist" if(! -f "t/samples/category-bug.xml");
8
9 planscip-perl cpan XML-Feed v1.0.0 main/plan(). tests => 20;
10
11 use XML::Feedscip-perl cpan XML-Feed v1.0.0 XML/Feed/;
12
13 for my $parser (qw( XML::RSS XML::RSS::LibXML )) {
14 $XML::Feed::Format::RSS::PREFERRED_PARSERscip-perl cpan XML-Feed v1.0.0 XML/Feed/Format/RSS/$PREFERRED_PARSER. = $parser;
15
16 my $f = XML::Feed->parsescip-perl cpan XML-Feed v1.0.0 XML/Feed/parse().("t/samples/category-bug.xml");
17 for my $e ($f->entriesscip-perl cpan XML-Feed v1.0.0 XML/Feed/entries().) {
18 eval { $e->categoryscip-perl cpan XML-Feed v1.0.0 main/category(). };
19 ok !$@scip-perl cpan XML-Feed v1.0.0 main/`$@`., $@scip-perl cpan XML-Feed v1.0.0 main/`$@`.;
20 }
21 }