File: 02__debug.t

package info (click to toggle)
libpetal-utils-perl 0.06-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: perl: 935; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

##
## Tests for Petal::Utils :debug modifiers
##

use strict;
#use warnings;

use Test::More qw( no_plan );

use Carp;
use t::LoadPetal;

use Petal::Utils qw( :debug );

my $hash = {
	debug => { name => 'test', array => [ 1..3 ] },
};
my $template = Petal->new('debug.html');
my $out      = $template->process( $hash );

# Dump
like($out, qr/dump: \$VAR1/, 'dump');