We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fef68f commit 8c4039aCopy full SHA for 8c4039a
t/pp_pod.t
@@ -142,6 +142,19 @@ subtest a_b => sub {
142
ok all_seen($obj, 'foo'), 'all seen';
143
};
144
145
+subtest a_bl => sub {
146
+ my $obj = call_pp_def(foo =>
147
+ Pars => 'a(n); [o]b(n)',
148
+ Lvalue => 1,
149
+ );
150
+ ok find_usage($obj, '$b = foo($a)'), 'function call w/ arg';
151
+ ok find_usage($obj, 'foo($a, $b)'), 'all arguments given';
152
+ ok find_usage($obj, '$b = $a->foo'), 'method call';
153
+ ok find_usage($obj, '$a->foo($b)'), 'method call, arg';
154
+ ok find_usage($obj, '$a->foo .= $data'), 'method call, lvalue';
155
+ ok all_seen($obj, 'foo'), 'all seen';
156
+};
157
+
158
subtest a_b_k => sub {
159
my $obj = call_pp_def(foo =>
160
Pars => 'a(n); [o]b(n)',
0 commit comments