277 |
# $source =~ s{^.*<body[^>]+>}{}s; |
# $source =~ s{^.*<body[^>]+>}{}s; |
278 |
# $source =~ s{</body.*$}{}s; |
# $source =~ s{</body.*$}{}s; |
279 |
|
|
280 |
my $runnable = join("\n", |
my $runnable = join("</dd><dd>", |
281 |
map { |
map { |
282 |
$introspect->{runnable}->{$_} = {}; |
$introspect->{runnable}->{$_} = {}; |
283 |
my $short = $_; |
my $short = $_; |
285 |
qq|<a target="$class" href="/$class/$_" title="/$class/$_">$short</a>| |
qq|<a target="$class" href="/$class/$_" title="/$class/$_">$short</a>| |
286 |
} $self->class_runnable( $class ) |
} $self->class_runnable( $class ) |
287 |
); |
); |
288 |
$runnable = "Runnable: $runnable" if $runnable; |
$runnable = "<dt>runnable</dt><dd>$runnable</dd>" if $runnable; |
289 |
|
|
290 |
my $has_tests = ''; |
my $has_tests = ''; |
291 |
my @tests = grep { defined $_ } $self->has_tests; |
my @tests = grep { defined $_ } $self->has_tests; |
292 |
if ( @tests ) { |
if ( @tests ) { |
293 |
$has_tests = |
$has_tests |
294 |
'Test' . ( $#tests > 0 ? 's' : '' ) . ': ' . |
= qq|<dt>test| |
295 |
join("\n", map { |
. ( $#tests > 0 ? 's' : '' ) |
296 |
qq|<a target="$class" href="/Frey::Test::Runner/as_markup?test=$_">$_</a>| |
. qq|<dt><dd>| |
297 |
} @tests ); |
. join("</dd><dd>", map { |
298 |
|
qq|<a target="$class" href="/Frey::Test::Runner/as_markup?test=$_">$_</a>| |
299 |
|
} @tests ) |
300 |
|
. qq|</dd>| |
301 |
|
; |
302 |
$introspect->{tests} = [ @tests ], |
$introspect->{tests} = [ @tests ], |
303 |
} |
} |
304 |
|
|
328 |
top: 1em; |
top: 1em; |
329 |
right: 1em; |
right: 1em; |
330 |
z-index: 10; |
z-index: 10; |
331 |
background: #fff; |
background: #ffc; |
332 |
padding: 0.2em; |
padding: 0.5em; |
333 |
border: 1px dashed #ee8; |
width: 20%; |
334 |
|
font-size: 80%; |
335 |
|
} |
336 |
|
.right dl dd { |
337 |
|
margin-left: 1em; |
338 |
} |
} |
339 |
|); |
|); |
340 |
|
|
341 |
return join("\n", |
my $right |
342 |
|
= qq| |
343 |
|
<dl> |
344 |
|
$runnable |
345 |
|
$has_tests |
346 |
|
</dl> |
347 |
|
| |
348 |
|
. join(' ', |
349 |
|
$pod ? qq|<a class="frey-skip" style="float: left;" href="#___top" title="Skip to POD" >pod</a>| : '', |
350 |
|
$source ? qq|<a class="frey-skip" style="float: right;" href="#source" title="Skip to source" >source</a>| : '' |
351 |
|
) |
352 |
|
; |
353 |
|
|
354 |
|
return |
355 |
qq| |
qq| |
356 |
<h1>$class</h1> |
<h1>$class</h1> |
357 |
<div class="frey-introspect"> |
<div class="frey-introspect"> |
359 |
<br>$includes |
<br>$includes |
360 |
</div> |
</div> |
361 |
<div class="right"> |
<div class="right"> |
362 |
$runnable |
$right |
|
|, |
|
|
$has_tests, |
|
|
$pod ? qq|<a class="frey-skip" href="#___top" title="Skip to POD" >pod</a>| : '', |
|
|
$source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '', |
|
|
qq| |
|
363 |
</div> |
</div> |
364 |
$table |
$table |
365 |
$pod |
$pod |
367 |
|
|
368 |
<h1>Source</h1><a name="source"></a> |
<h1>Source</h1><a name="source"></a> |
369 |
<div class="frey-source">$source</div> |
<div class="frey-source">$source</div> |
370 |
|, |
| |
371 |
); |
; |
372 |
} |
} |
373 |
|
|
374 |
=head1 SEE ALSO |
=head1 SEE ALSO |