1Test2::Harness::Runner:U:sDeerpTCroancterri(b3u)ted PerlTeDsotc2u:m:eHnatranteisosn::Runner::DepTracer(3)
2
3
4

NAME

6       Test2::Harness::Runner::DepTracer - Tool for tracing module
7       dependencies as they are loaded.
8

DESCRIPTION

10       This tool is used by Test2::Harness to build a graph of dependancies
11       which can then be used to blacklist modified modules (and anything
12       thatuses them) when they change under a preloaded runner.
13

SYNOPSIS

15           use Test2::Harness::Runner::DepTracer;
16
17           my $dt = Test2::Harness::Runner::DepTracer->new();
18
19           $dt->start();
20
21           require Some::Thing;
22
23           $dt->stop();
24
25           my $dep_map = $dt->dep_map;
26
27           my $loaded_by = $dep_map->{'Some/Thing.pm'};
28           print "Some::Thing was directly or indirectly loaded by:\n" . join("\n" => @$loaded_by) . "\n";
29

ATTRIBUTES

31       These can be specified at construction, and will be populated during
32       use.
33
34       $hashref = $dt->exclude
35           A hashref of files/modules to exclude from dep tracking. By default
36           "strict" and "warnings" are excluded.
37
38       $hashref = $dt->dep_map
39           Every file which is loaded while the tool is started will have an
40           entry in this hash, each value is an array of all files which
41           loaded the key file directly or indirectly.
42
43       $hashref = $dt->loaded
44           How many times each file was directly loaded.
45

METHODS

47       $dt->start
48           Start tracking modules which are loaded.
49
50       $dt->stop
51           Stop tracking moduels that are loaded.
52

SOURCE

54       The source code repository for Test2-Harness can be found at
55       http://github.com/Test-More/Test2-Harness/.
56

MAINTAINERS

58       Chad Granum <exodist@cpan.org>
59

AUTHORS

61       Chad Granum <exodist@cpan.org>
62
64       Copyright 2020 Chad Granum <exodist7@gmail.com>.
65
66       This program is free software; you can redistribute it and/or modify it
67       under the same terms as Perl itself.
68
69       See http://dev.perl.org/licenses/
70
71
72
73perl v5.32.1                      2021-03-1T2est2::Harness::Runner::DepTracer(3)
Impressum