X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FComponent.pm;h=739845ff04f8e8512fe830bb22713bb7a01969d8;hp=9a7ba2bb69ed3bb75c4cc2559533c15564542be0;hb=d83358595540f8645467c2d1a2f658fa74b14c72;hpb=254ae9b36d4bdcc79ab4a2dacd3d717b5cea1f9e diff --git a/lib/Test/Valgrind/Component.pm b/lib/Test/Valgrind/Component.pm index 9a7ba2b..739845f 100644 --- a/lib/Test/Valgrind/Component.pm +++ b/lib/Test/Valgrind/Component.pm @@ -29,6 +29,8 @@ use base qw; =head2 C + my $tvc = Test::Valgrind::Component->new; + Basic constructor. =cut @@ -50,7 +52,9 @@ sub new { }, $class; } -=head2 C +=head2 C + + $tvc->started($bool); Specifies whether the component is running (C<1>), stopped (C<0>) or was never started (C). @@ -60,6 +64,8 @@ sub started { @_ <= 1 ? $_[0]->{started} : ($_[0]->{started} = $_[1] ? 1 : 0) } =head2 C + $tvc->start; + Marks the component as started, and throws an exception if it was already. Returns its self object. @@ -76,6 +82,8 @@ sub start { =head2 C + $tvc->finish; + Marks the component as stopped, and throws an exception if it wasn't started. Returns its self object.