File: output.t

package info (click to toggle)
libdevel-stacktrace-ashtml-perl 0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 188 kB
  • sloc: perl: 174; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use Test::More;
use Devel::StackTrace::AsHTML;

my $html;

sub foo {
    my $t = Devel::StackTrace->new;
    $html = $t->as_html;
}

sub bar { foo("bar") }
bar(2);

like $html, qr/match.*bar\(2\)/;
like $html, qr!t[\\/]output\.t line 8.*\n.*in main::foo!;

done_testing;