Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f4d85933

Von Sven Schöling vor fast 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
24 24
my @testitems = @Support::Files::testitems;
25 25

  
26 26
foreach my $file (@testitems) {
27
  next unless -f $file;
27 28
  my $clean = 1;
28
  my $doc = PPI::Document->new($file);
29
  my $doc = PPI::Document->new($file) or do {
30
    ok 0, "PPI error for file $file: " . PPI::Document::errstr();
31
    next;
32
  };
29 33
  my $stmts = $doc->find('Statement::Variable');
30 34

  
31 35
  for my $var (@{ $stmts || [] }) {

Auch abrufbar als: Unified diff