Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f4d85933

Von Sven Schöling vor mehr als 13 Jahren hinzugefügt

  • ID f4d859337868ec181836a6acbefc3c764993b80f
  • Vorgänger 5310b7f1
  • Nachfolger 4000444b

Test zu post if robuster gegen PPI Parsingfehler gemacht.

Unterschiede anzeigen:

t/structure/no_lexicals_in_postif.t
my @testitems = @Support::Files::testitems;
foreach my $file (@testitems) {
next unless -f $file;
my $clean = 1;
my $doc = PPI::Document->new($file);
my $doc = PPI::Document->new($file) or do {
ok 0, "PPI error for file $file: " . PPI::Document::errstr();
next;
};
my $stmts = $doc->find('Statement::Variable');
for my $var (@{ $stmts || [] }) {

Auch abrufbar als: Unified diff