1 package Test::Valgrind::Command::Aggregate;
8 Test::Valgrind::Command::Aggregate - A Test::Valgrind command that aggregates several other commands.
16 our $VERSION = '1.12';
20 This command groups several commands together, which the session will run under the same action.
26 use base qw/Test::Valgrind::Command Test::Valgrind::Carp/;
30 This class inherits L<Test::Valgrind::Command>.
32 =head2 C<< new commands => \@commands, ... >>
38 return 0 unless Scalar::Util::blessed($_)
39 and $_->isa('Test::Valgrind::Command');
46 $class = ref($class) || $class;
50 my $cmds = delete $args{commands};
51 $class->_croak('Invalid commands list')
52 unless $cmds and ref $cmds eq 'ARRAY' and $all_cmds->($cmds);
54 my $self = bless $class->SUPER::new(), $class;
56 $self->{commands} = [ @$cmds ];
63 Read-only accessor for the C<commands> option.
67 sub commands { @{$_[0]->{commands} || []} }
71 L<Test::Valgrind>, L<Test::Valgrind::Command>.
75 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
77 You can contact me by mail or on C<irc.perl.org> (vincent).
81 Please report any bugs or feature requests to C<bug-test-valgrind at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.
82 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
86 You can find documentation for this module with the perldoc command.
88 perldoc Test::Valgrind::Command::Aggregate
90 =head1 COPYRIGHT & LICENSE
92 Copyright 2009,2010 Vincent Pit, all rights reserved.
94 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
98 1; # End of Test::Valgrind::Command::Aggregate