1Test2::EventFacet::CoveUrsaegre(C3o)ntributed Perl DocumTeenstta2t:i:oEnventFacet::Coverage(3)
2
3
4
6 Test2::EventFacet::Coverage - File coverage information.
7
9 This facet has a list of files covered by the test run.
10
12 $string = $about->{details}
13 $string = $about->details()
14 Summary of files run.
15
16 $arrayref = $about->{files}
17 $arrayref = $about->files()
18 Arrayref of files touched during testing. This includes modules
19 that were loaded or had subroutines called. This also includes
20 files opened via "open()".
21
22 $hashref = $about->{submap}
23 $hashref = $about->submap()
24 {
25 'SomeModule.pm' => {
26 # The wildcard is used when a proper sub name cannot be determined
27 '*' => { ... },
28
29 'subroutine' => [
30 '*', # The wildcard is used when no 'called by' can be determined
31 $FROM_A,
32 $FROM_B,
33 ...
34 ],
35 },
36 ...
37 }
38
39 $hashref = $about->{openmap}
40 $hashref = $about->openmap()
41 {
42 # The items in this list can be anything, strings, numbers,
43 # data structures, etc.
44 # A naive attempt is made to avoid duplicates in this list,
45 # so the same string or reference will not appear twice, but 2
46 # different references with identical contents may appear.
47 "some_file.ext" => [
48 '*', # The wildcard is used when no 'called by' can be determined
49 $FROM_A,
50 $FROM_b,
51 ],
52 }
53
55 The source code repository for Test2-Plugin-Cover can be found at
56 https://github.com/Test-More/Test2-Plugin-Cover.
57
59 Chad Granum <exodist@cpan.org>
60
62 Chad Granum <exodist@cpan.org>
63
65 Copyright 2020 Chad Granum <exodist@cpan.org>.
66
67 This program is free software; you can redistribute it and/or modify it
68 under the same terms as Perl itself.
69
70 See http://dev.perl.org/licenses/
71
72
73
74perl v5.34.0 2021-11-05 Test2::EventFacet::Coverage(3)