41
# $info is a hashref with the importer, runner, and importer meta
42
# object, and some other fun things.
44
# Example of adding cases to any Fennec test that uses this subclass:
45
# The first arg to add case should be an array matching the return of
46
# caller. The idea is to give us the start and end line, as well as
47
# file name where the case is defined. normally the exports from
48
# Test::Workflow provide that for you, but at this low-level we need to
49
# provide it ourselfs. Since we define the subs here, we give current
50
# line/file. Use the importer for package name.
51
$info->{layer}->add_case([$info->{importer}, __FILE__, __LINE__], case_a => sub { $main::CASE_A = 1 });
52
$info->{layer}->add_case([$info->{importer}, __FILE__, __LINE__], case_b => sub { $main::CASE_B = 1 });
40
57
=head1 CUSTOM COLLECTOR