summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm')
-rwxr-xr-xMaster/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm b/Master/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm
new file mode 100755
index 00000000000..9cc3a6567b7
--- /dev/null
+++ b/Master/tlpkg/tlperl.straw/lib/Test/Deep/Ref.pm
@@ -0,0 +1,36 @@
+use strict;
+use warnings;
+
+package Test::Deep::Ref;
+
+use Test::Deep::Cmp;
+
+use Scalar::Util qw( blessed );
+
+sub test_class
+{
+ my $self = shift;
+ my $got = shift;
+
+ my $exp = $self->{val};
+
+ if ($Test::Deep::Snobby)
+ {
+ return Test::Deep::descend($got, Test::Deep::blessed(blessed($exp)));
+ }
+ else
+ {
+ return 1;
+ }
+}
+
+sub test_reftype
+{
+ my $self = shift;
+ my $got = shift;
+ my $reftype = shift;
+
+ return Test::Deep::descend($got, Test::Deep::reftype($reftype));
+}
+
+1;