--- /dev/null
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize {
+ [ map { _is_scoped($_) ? $_ : [ [ [ 'pc', 'scope' ] ], ' ', @$_ ] }
+ @{ shift() } ]
+}
+
+$c->helpers->log->debug(
+ sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+ }
+) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(
+ sub ($code) {
+ return $c->render( text => '', status => $code );
+ }
+);
--- /dev/null
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize { [map { _is_scoped($_) ? $_ : [[['pc', 'scope']], ' ', @$_] } @{shift()}] }
+
+$c->helpers->log->debug(sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+}) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(sub ($code) {
+ return $c->render(text => '', status => $code);
+});
--- /dev/null
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize { [
+ map { _is_scoped($_) ? $_ : [ [ [ 'pc', 'scope' ] ], ' ', @$_ ] }
+ @{ shift() } ] }
+
+$c->helpers->log->debug( sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+} ) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(
+ sub ($code) {
+ return $c->render( text => '', status => $code );
+ }
+);
--- /dev/null
+# perltidyrc from git #47
+-pbp # Start with Perl Best Practices
+-w # Show all warnings
+-iob # Ignore old breakpoints
+-l=120 # 120 characters per line
+-mbl=2 # No more than 2 blank lines
+-i=2 # Indentation is 2 columns
+-ci=2 # Continuation indentation is 2 columns
+-vt=0 # Less vertical tightness
+-pt=2 # High parenthesis tightness
+-bt=2 # High brace tightness
+-sbt=2 # High square bracket tightness
+-wn # Weld nested containers
+-isbc # Don't indent comments without leading space
+-nst # Don't output to STDOUT
#14 wnxl.wnxl3
#15 wnxl.wnxl4
#16 align34.def
+#17 git47.def
+#18 git47.git47
# To locate test #13 you can search for its name or the string '#13'
# -bot is default so we test -nbot
-nbot
----------
- 'def' => "",
+ 'def' => "",
+ 'git47' => <<'----------',
+# perltidyrc from git #47
+-pbp # Start with Perl Best Practices
+-w # Show all warnings
+-iob # Ignore old breakpoints
+-l=120 # 120 characters per line
+-mbl=2 # No more than 2 blank lines
+-i=2 # Indentation is 2 columns
+-ci=2 # Continuation indentation is 2 columns
+-vt=0 # Less vertical tightness
+-pt=2 # High parenthesis tightness
+-bt=2 # High brace tightness
+-sbt=2 # High square bracket tightness
+-wn # Weld nested containers
+-isbc # Don't indent comments without leading space
+-nst # Don't output to STDOUT
+----------
'hash_bang' => "-x",
'listop1' => <<'----------',
# -bok is default so we test nbok
: 1;
----------
+ 'git47' => <<'----------',
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize { [
+ map { _is_scoped($_) ? $_ : [ [ [ 'pc', 'scope' ] ], ' ', @$_ ] }
+ @{ shift() } ] }
+
+$c->helpers->log->debug( sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+} ) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(
+ sub ($code) {
+ return $c->render( text => '', status => $code );
+ }
+);
+----------
+
'hash_bang' => <<'----------',
else { $body .= $line; }
#16...........
},
+
+ 'git47.def' => {
+ source => "git47",
+ params => "def",
+ expect => <<'#17...........',
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize {
+ [ map { _is_scoped($_) ? $_ : [ [ [ 'pc', 'scope' ] ], ' ', @$_ ] }
+ @{ shift() } ]
+}
+
+$c->helpers->log->debug(
+ sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+ }
+) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(
+ sub ($code) {
+ return $c->render( text => '', status => $code );
+ }
+);
+#17...........
+ },
+
+ 'git47.git47' => {
+ source => "git47",
+ params => "git47",
+ expect => <<'#18...........',
+# cannot weld here
+$promises[$i]->then(
+ sub { $all->resolve(@_); () },
+ sub {
+ $results->[$i] = [@_];
+ $all->reject(@$results) if --$remaining <= 0;
+ return ();
+ }
+);
+
+sub _absolutize { [map { _is_scoped($_) ? $_ : [[['pc', 'scope']], ' ', @$_] } @{shift()}] }
+
+$c->helpers->log->debug(sub {
+ my $req = $c->req;
+ my $method = $req->method;
+ my $path = $req->url->path->to_abs_string;
+ $c->helpers->timing->begin('mojo.timer');
+ return qq{$method "$path"};
+}) unless $stash->{'mojo.static'};
+
+# A single signature var can weld
+return Mojo::Promise->resolve($query_params)->then(&_reveal_event)->then(sub ($code) {
+ return $c->render(text => '', status => $code);
+});
+#18...........
+ },
};
my $ntests = 0 + keys %{$rtests};