Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add plugin file for test.

  • Loading branch information...
commit 429cfdc00d392db14afa8125c1b3c64fc338a634 1 parent 00a9e21
@ktat ktat authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 t/lib/Teng/Plugin/ArgsTest.pm
View
27 t/lib/Teng/Plugin/ArgsTest.pm
@@ -0,0 +1,27 @@
+package
+ Teng::Plugin::ArgsTest;
+
+use strict;
+use warnings;
+
+our @EXPORT = qw/args_class args_opt/;
+my %args;
+
+sub init {
+ my ($pkg, $class, $opt) = @_;
+ $args{class} = $class;
+ $args{opt} = $opt;
+}
+
+sub args_class {
+ my ($self) = @_;
+ return $args{class};
+}
+
+sub args_opt {
+ my ($self) = @_;
+ return $args{opt};
+}
+
+1;
+
Please sign in to comment.
Something went wrong with that request. Please try again.