File: Class.pm

package info (click to toggle)
libtest-deep-perl 0.113-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 464 kB
  • ctags: 254
  • sloc: perl: 2,144; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;

package Test::Deep::Class;

use Test::Deep::Cmp;

sub init
{
	my $self = shift;

	my $snobby = shift;
	my $val = shift;

	$self->{snobby} = $snobby;
	$self->{val} = $val;
}

sub descend
{
	my $self = shift;
	my $got = shift;

	local $Test::Deep::Snobby = $self->{snobby};

	Test::Deep::wrap($self->{val})->descend($got);
}

1;