summaryrefslogtreecommitdiff
path: root/devel/p5-Perl-Metrics-Simple/files/patch-TestData.pm
blob: 780a9a7a02dbcd090a230bbb1f028c4f1a86325a (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
--- t/lib/Perl/Metrics/Simple/TestData.pm.orig	2021-03-21 15:14:01 UTC
+++ t/lib/Perl/Metrics/Simple/TestData.pm
@@ -121,12 +121,14 @@ sub make_test_data {
                     name              => 'foo',
                     lines             => 1,
                     mccabe_complexity => 1,
+                    line_number       => 10,
                     path              => "$test_directory/subs_no_package.pl",
                 },
                 {
                     name              => 'bar',
                     lines             => 2,
                     mccabe_complexity => 1,
+                    line_number       => 11,
                     path              => "$test_directory/subs_no_package.pl",
                 }
             ],
@@ -146,18 +148,21 @@ sub make_test_data {
                     name              => 'new',
                     lines             => 5,
                     mccabe_complexity => 1,
+                    line_number       => 8,
                     path => "$test_directory/Perl/Code/Analyze/Test/Module.pm",
                 },
                 {
                     name              => 'foo',
                     lines             => 9,
                     mccabe_complexity => 8,
+                    line_number       => 14,
                     path => "$test_directory/Perl/Code/Analyze/Test/Module.pm",
                 },
                 {
                     name              => 'say_hello',
                     lines             => 9,
                     mccabe_complexity => 5,
+                    line_number       => 26,
                     path => "$test_directory/Perl/Code/Analyze/Test/Module.pm",
                 },
             ],