1Test2::EventFacet::CoveUrsaegre(C3o)ntributed Perl DocumTeenstta2t:i:oEnventFacet::Coverage(3)
2
3
4

NAME

6       Test2::EventFacet::Coverage - File coverage information.
7

DESCRIPTION

9       This facet has a list of files covered by the test run.
10

FIELDS

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

SOURCE

55       The source code repository for Test2-Plugin-Cover can be found at
56       https://github.com/Test-More/Test2-Plugin-Cover.
57

MAINTAINERS

59       Chad Granum <exodist@cpan.org>
60

AUTHORS

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.36.0                      2022-07-22    Test2::EventFacet::Coverage(3)
Impressum