![]() |
![]()
| ![]() |
![]()
NAMETest2::Harness::Runner::DepTracer - Tool for tracing module dependencies as they are loaded. DESCRIPTIONThis tool is used by Test2::Harness to build a graph of dependancies which can then be used to blacklist modified modules (and anything thatuses them) when they change under a preloaded runner. SYNOPSISuse Test2::Harness::Runner::DepTracer; my $dt = Test2::Harness::Runner::DepTracer->new(); $dt->start(); require Some::Thing; # You can always check for and retrieve an active DepTrace this way: my $dt_reference = Test2::Harness::Runner::DepTracer->ACTIVE; $dt->stop(); my $dep_map = $dt->dep_map; my $loaded_by = $dep_map->{'Some/Thing.pm'}; print "Some::Thing was directly or indirectly loaded by:\n" . join("\n" => @$loaded_by) . "\n"; ATTRIBUTESThese can be specified at construction, and will be populated during use.
METHODS
CLASS METHODS
SOURCEThe source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/. MAINTAINERSAUTHORSCOPYRIGHTCopyright 2020 Chad Granum <exodist7@gmail.com>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
|