Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Test2::Harness::RunnerUserpContributed PerTest2::Harness::Runner::DepTracer(3)

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

DESCRIPTION
       This 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.

SYNOPSIS
	   use Test2::Harness::Runner::DepTracer;

	   my $dt = Test2::Harness::Runner::DepTracer->new();

	   $dt->start();

	   require Some::Thing;

	   $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";

ATTRIBUTES
       These can be specified at construction, and will	be populated during
       use.

       $hashref	= $dt->exclude
	   A hashref of	files/modules to exclude from dep tracking. By default
	   "strict" and	"warnings" are excluded.

       $hashref	= $dt->dep_map
	   Every file which is loaded while the	tool is	started	will have an
	   entry in this hash, each value is an	array of all files which
	   loaded the key file directly	or indirectly.

       $hashref	= $dt->loaded
	   How many times each file was	directly loaded.

METHODS
       $dt->start
	   Start tracking modules which	are loaded.

       $dt->stop
	   Stop	tracking moduels that are loaded.

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

MAINTAINERS
       Chad Granum <exodist@cpan.org>

AUTHORS
       Chad Granum <exodist@cpan.org>

COPYRIGHT
       Copyright 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/

perl v5.32.0			  2020-08-Test2::Harness::Runner::DepTracer(3)

NAME | DESCRIPTION | SYNOPSIS | ATTRIBUTES | METHODS | SOURCE | MAINTAINERS | AUTHORS | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Test2::Harness::Runner::DepTracer&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help