summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-05-31 12:28:19 -0500
committerJesse Luehrs <doy@tozt.net>2010-05-31 12:28:19 -0500
commit640de3695dc6b9a77793ee3c1c03c5f062906295 (patch)
treef8c29cfd27a9be94090c6f5d151f39e02628ef13 /t
parent4ada57e0b39192a0002ff703b7af0f3bd99003fa (diff)
downloadpackage-stash-640de3695dc6b9a77793ee3c1c03c5f062906295.tar.gz
package-stash-640de3695dc6b9a77793ee3c1c03c5f062906295.zip
named args for add_package_symbol
Diffstat (limited to 't')
-rw-r--r--t/006-addsub.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/006-addsub.t b/t/006-addsub.t
index b5a5822..3c0dfc8 100644
--- a/t/006-addsub.t
+++ b/t/006-addsub.t
@@ -32,7 +32,12 @@ my $line = (Foo->funk())[1];
is $DB::sub{'Foo::funk'}, sprintf "%s:%d-%d", __FILE__, $line, $line,
'... got the right %DB::sub value for funk default args';
-$foo_stash->add_package_symbol('&dunk' => sub { "Foo::dunk" }, "FileName", 100, 199);
+$foo_stash->add_package_symbol(
+ '&dunk' => sub { "Foo::dunk" },
+ filename => "FileName",
+ first_line_num => 100,
+ last_line_num => 199
+);
is $DB::sub{'Foo::dunk'}, sprintf "%s:%d-%d", "FileName", 100, 199,
'... got the right %DB::sub value for dunk with specified args';